[]
        
(Showing Draft Content)

ICornerFold

Interface ICornerFold

All Known Implementing Classes:
CornerFold

public interface ICornerFold
Indicates the corner fold of cell decoration.

An 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();
 
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the color of the corner fold.
    Gets the position of the corner fold.
    int
    Gets the size of the corner fold in pixels.
  • Method Details

    • getColor

      Color getColor()
      Gets the color of the corner fold.

      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();
       
      Returns:
      The Color object representing the corner fold color.
    • getPosition

      EnumSet<CornerPosition> getPosition()
      Gets the position of the corner fold.

      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();
       
      Returns:
      An EnumSet containing the corner positions of the fold. Returns an empty set if no position is set.
    • getSize

      int getSize()
      Gets the size of the corner fold in pixels.

      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();
       
      Returns:
      The size of the corner fold, in pixels.