[]
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.
public class CornerFold : ICornerFold
Public Class CornerFold
Implements ICornerFold
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;
| 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. |
| 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. |