[]
CornerFoldAn ICornerFold describes the visual fold shown at one or more corners of a decorated cell, including its color, position, and size in pixels. Use it with CellDecoration and IRange.setDecoration(ICellDecoration) to apply corner fold decoration to a cell or range.
ICornerFold fold = new CornerFold(Color.GetRed(), EnumSet.of(CornerPosition.LeftTop), 8);
worksheet.getRange("A1").setDecoration(new CellDecoration(fold));
ICornerFold cornerFold = worksheet.getRange("A1").getDecoration().getCornerFold();
Color color = cornerFold.getColor();
Use this property to retrieve the Color applied to the corner fold in a cell decoration.
ICornerFold cornerFold = new CornerFold(Color.GetRed(), EnumSet.of(CornerPosition.LeftTop), 8);
Color color = cornerFold.getColor();
Color object representing the corner fold color.Returns the set of CornerPosition flags that indicate which corners display the fold. If no corner position is set, this method returns an empty EnumSet.
ICornerFold cornerFold = new CornerFold(
Color.GetRed(),
EnumSet.of(CornerPosition.LeftTop, CornerPosition.RightTop),
8
);
EnumSet<CornerPosition> positions = cornerFold.getPosition();
EnumSet containing the corner positions of the fold. Returns an empty set if no position is set.This value specifies the fold size used when the corner fold is rendered.
ICornerFold cornerFold = new CornerFold(Color.GetRed(), EnumSet.of(CornerPosition.LeftTop), 8);
int size = cornerFold.getSize();