[]
        
(Showing Draft Content)

GrapeCity.Documents.Excel.CornerFold.-ctor

CornerFold Constructor

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.

Declaration
public CornerFold(Color color, CornerPosition position, int size)
Public Sub New(color As Color, position As CornerPosition, size As Integer)
Parameters
Type Name Description
Color color

The color of the corner fold.

CornerPosition position

The positions where the corner fold is displayed. Use None if no corner position is set.

int size

The size of the corner fold in pixels.

Examples
CornerFold cornerFold = new CornerFold(
    Color.Red,
    CornerPosition.LeftTop | CornerPosition.RightTop,
    8
);
Color color = cornerFold.Color;
CornerPosition position = cornerFold.Position;
int size = cornerFold.Size;