[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.CornerFold

CornerFold Class

Represents corner fold decoration settings that can be applied to a cell.

A corner fold defines the fold color, the corners where the fold is shown, and its size.

Inheritance
CornerFold
Implements
Namespace: GrapeCity.Documents.Excel
Assembly: DS.Documents.Excel.dll
Syntax
public class CornerFold : ICornerFold
Public Class CornerFold
    Implements ICornerFold
Examples
ICornerFold fold = new CornerFold(
    Color.Red,
    CornerPosition.LeftTop | CornerPosition.RightTop,
    8
);
worksheet.Range["A1"].Decoration = new CellDecoration(fold);
ICornerFold cornerFold = worksheet.Range["A1"].Decoration.CornerFold;
Color color = cornerFold.Color;

Constructors

Name Description
CornerFold(Color, CornerPosition, int)

Creates a new instance of the CornerFold class.

Initializes a corner fold with the specified color, corner positions, and size. Use None if no folded corner positions should be applied.

Properties

Name Description
Color

Gets the color of the corner fold.

Use this property to retrieve the Color applied to the corner fold in a cell decoration.

Position

Gets the position of the corner fold.

Returns the CornerPosition flags that indicate which corners display the fold. If no corner position is set, this property returns None.

Size

Gets the size of the corner fold in pixels.

This value specifies the fold size used when the corner fold is rendered.