Class CliFrameArea
Describes a rectangular frame region owned by a CliGrid.
public class CliFrameArea
- Inheritance
-
CliFrameArea
- Inherited Members
Remarks
App code normally obtains a frame area through AddFrameArea(CliFrameJoinStyle, int, int, int, int, CliCharStyle?) and then adds
horizontal, vertical, or outer frame segments before the grid is measured/rendered. Frame segments
cannot be added after the grid's frame layout has been initialized.
Properties
CharStyle
Optional default character style for frame segments that do not specify one.
public CliCharStyle? CharStyle { get; init; }
Property Value
ColumnCount
The number of columns in this area.
public int ColumnCount { get; }
Property Value
FirstColumn
The first grid column included in this area.
public int FirstColumn { get; init; }
Property Value
FirstRow
The first grid row included in this area.
public int FirstRow { get; init; }
Property Value
Grid
The grid that owns this frame area.
public CliGrid Grid { get; init; }
Property Value
JoinStyle
How mixed single/double junctions are resolved.
public CliFrameJoinStyle JoinStyle { get; init; }
Property Value
LastColumn
The last grid column included in this area.
public int LastColumn { get; init; }
Property Value
LastRow
The last grid row included in this area.
public int LastRow { get; init; }
Property Value
Lines
The frame line segments that will be applied during frame layout initialization.
public List<CliFrameLine> Lines { get; init; }
Property Value
RowCount
The number of rows in this area.
public int RowCount { get; }
Property Value
Methods
AddBottomFrame(CliFrameSegment, CliCharStyle?)
Adds a bottom horizontal frame segment spanning the full area width.
public void AddBottomFrame(CliFrameSegment segmentStyle, CliCharStyle? charStyle = null)
Parameters
segmentStyleCliFrameSegmentcharStyleCliCharStyle?
AddHorizontalFrame(int, int, int, CliFrameSegment, CliCharStyle?)
Adds a horizontal frame segment inside this area.
public void AddHorizontalFrame(int column, int row, int length, CliFrameSegment segmentStyle, CliCharStyle? charStyle = null)
Parameters
columnintrowintlengthintsegmentStyleCliFrameSegmentcharStyleCliCharStyle?
Exceptions
- ArgumentOutOfRangeException
- The segment is outside this frame area or has a non-positive length.
- TigerCliException
- The frame layout has already been initialized.
AddLeftFrame(CliFrameSegment, CliCharStyle?)
Adds a left vertical frame segment spanning the full area height.
public void AddLeftFrame(CliFrameSegment segmentStyle, CliCharStyle? charStyle = null)
Parameters
segmentStyleCliFrameSegmentcharStyleCliCharStyle?
AddOuterFrame(CliFrameSegment, CliCharStyle?)
Adds top, left, right, and bottom frame segments around the full area.
public void AddOuterFrame(CliFrameSegment segmentStyle, CliCharStyle? charStyle = null)
Parameters
segmentStyleCliFrameSegmentcharStyleCliCharStyle?
AddRightFrame(CliFrameSegment, CliCharStyle?)
Adds a right vertical frame segment spanning the full area height.
public void AddRightFrame(CliFrameSegment segmentStyle, CliCharStyle? charStyle = null)
Parameters
segmentStyleCliFrameSegmentcharStyleCliCharStyle?
AddTopFrame(CliFrameSegment, CliCharStyle?)
Adds a top horizontal frame segment spanning the full area width.
public void AddTopFrame(CliFrameSegment segmentStyle, CliCharStyle? charStyle = null)
Parameters
segmentStyleCliFrameSegmentcharStyleCliCharStyle?
AddVerticalFrame(int, int, int, CliFrameSegment, CliCharStyle?)
Adds a vertical frame segment inside this area.
public void AddVerticalFrame(int column, int row, int length, CliFrameSegment segmentStyle, CliCharStyle? charStyle = null)
Parameters
columnintrowintlengthintsegmentStyleCliFrameSegmentcharStyleCliCharStyle?
Exceptions
- ArgumentOutOfRangeException
- The segment is outside this frame area or has a non-positive length.
- TigerCliException
- The frame layout has already been initialized.