Class FormattingCellBorders
Represents border formatting for a cell style.
Inherited Members
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class FormattingCellBorders : AbstractBorders
Remarks
FormattingCellBorders is used internally for style-based border formatting,
supporting inheritance from parent styles.
Properties
Borders
Specifies the border collection for all four edges.
Declaration
public AbstractBorders Borders { get; set; }
Property Value
| Type | Description |
|---|---|
| AbstractBorders |
Remarks
FormattingCellBorders is used internally for style-based border formatting,
supporting inheritance from parent styles.
Bottom
Get the bottom border
Declaration
public override Border Bottom { get; set; }
Property Value
| Type | Description |
|---|---|
| Border |
Overrides
Remarks
FormattingCellBorders is used internally for style-based border formatting,
supporting inheritance from parent styles.
Diagonal
Specifies the diagonal border (appears from top-left to bottom-right).
Declaration
public override Border Diagonal { get; set; }
Property Value
| Type | Description |
|---|---|
| Border |
Overrides
Remarks
FormattingCellBorders is used internally for style-based border formatting,
supporting inheritance from parent styles.
DiagonalDown
Gets or sets whether the diagonal border runs from bottom-left to top-right.
Declaration
public override bool DiagonalDown { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Remarks
FormattingCellBorders is used internally for style-based border formatting,
supporting inheritance from parent styles.
DiagonalUp
Gets or sets whether the diagonal border runs from top-left to bottom-right.
Declaration
public override bool DiagonalUp { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Overrides
Remarks
FormattingCellBorders is used internally for style-based border formatting,
supporting inheritance from parent styles.
Horizontal
Get the horizontal border
Declaration
public override Border Horizontal { get; set; }
Property Value
| Type | Description |
|---|---|
| Border |
Overrides
Remarks
FormattingCellBorders is used internally for style-based border formatting,
supporting inheritance from parent styles.
Left
Specifies the left border.
Declaration
public override Border Left { get; set; }
Property Value
| Type | Description |
|---|---|
| Border |
Overrides
Remarks
FormattingCellBorders is used internally for style-based border formatting,
supporting inheritance from parent styles.
Right
Specifies the right border.
Declaration
public override Border Right { get; set; }
Property Value
| Type | Description |
|---|---|
| Border |
Overrides
Remarks
FormattingCellBorders is used internally for style-based border formatting,
supporting inheritance from parent styles.
Top
Specifies the top border.
Declaration
public override Border Top { get; set; }
Property Value
| Type | Description |
|---|---|
| Border |
Overrides
Remarks
FormattingCellBorders is used internally for style-based border formatting,
supporting inheritance from parent styles.
Vertical
Specifies the vertical border (between cells in the same row).
Declaration
public override Border Vertical { get; set; }
Property Value
| Type | Description |
|---|---|
| Border |
Overrides
Remarks
FormattingCellBorders is used internally for style-based border formatting,
supporting inheritance from parent styles.
Methods
SetBoxBorder(BorderStyle)
Updates the box border held by the FormattingCellBorders.
Declaration
public override void SetBoxBorder(BorderStyle borderStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| BorderStyle | borderStyle | The border style used by the operation. |
Overrides
Remarks
FormattingCellBorders is used internally for style-based border formatting,
supporting inheritance from parent styles.
SetDiagonalCrossBorder(BorderStyle)
Updates the diagonal cross border held by the FormattingCellBorders.
Declaration
public override void SetDiagonalCrossBorder(BorderStyle borderStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| BorderStyle | borderStyle | The border style used by the operation. |
Overrides
Remarks
FormattingCellBorders is used internally for style-based border formatting,
supporting inheritance from parent styles.
SetDiagonalCrossBorder(BorderStyle, Color)
Updates the diagonal cross border held by the FormattingCellBorders.
Declaration
public override void SetDiagonalCrossBorder(BorderStyle borderStyle, Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| BorderStyle | borderStyle | The border style used by the operation. |
| Color | color | The color used by the operation. |
Overrides
Remarks
FormattingCellBorders is used internally for style-based border formatting,
supporting inheritance from parent styles.
SetDiagonalDownBorder(BorderStyle)
Updates the diagonal down border held by the FormattingCellBorders.
Declaration
public override void SetDiagonalDownBorder(BorderStyle borderStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| BorderStyle | borderStyle | The border style used by the operation. |
Overrides
Remarks
FormattingCellBorders is used internally for style-based border formatting,
supporting inheritance from parent styles.
SetDiagonalUpBorder(BorderStyle)
Updates the diagonal up border held by the FormattingCellBorders.
Declaration
public override void SetDiagonalUpBorder(BorderStyle borderStyle)
Parameters
| Type | Name | Description |
|---|---|---|
| BorderStyle | borderStyle | The border style used by the operation. |
Overrides
Remarks
FormattingCellBorders is used internally for style-based border formatting,
supporting inheritance from parent styles.