• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class Border

Represents the border formatting for a single edge of a cell.

Inheritance
object
AbstractBorder
Border
Inherited Members
AbstractBorder.Equals(object)
AbstractBorder.GetHashCode()
AbstractBorder.ToString()
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetType()
object.MemberwiseClone()
Namespace: DRIT.Spreadsheet
Assembly: DRIT.Spreadsheet.dll
Syntax
public class Border : AbstractBorder
Remarks

A Border defines the style, color, and appearance of a cell border edge. Borders can be combined to create complete cell border formatting.

Use the Borders class to manage all four edges of a cell.

Examples
// Create a border with specific style and color
var border = new Border(BorderStyle.Thin, Color.Black);

Constructors

Border()

Initializes a new Border for the supplied workbook data.

Declaration
public Border()
Remarks

A Border defines the style, color, and appearance of a cell border edge. Borders can be combined to create complete cell border formatting.

Use the Borders class to manage all four edges of a cell.

Border(Border)

Initializes a new Border for the supplied workbook data.

Declaration
public Border(Border border)
Parameters
Type Name Description
Border border
Remarks

A Border defines the style, color, and appearance of a cell border edge. Borders can be combined to create complete cell border formatting.

Use the Borders class to manage all four edges of a cell.

Border(BorderStyle)

Initializes a new Border for the supplied workbook data.

Declaration
public Border(BorderStyle style)
Parameters
Type Name Description
BorderStyle style
Remarks

A Border defines the style, color, and appearance of a cell border edge. Borders can be combined to create complete cell border formatting.

Use the Borders class to manage all four edges of a cell.

Border(BorderStyle, SpreadsheetColor)

Initializes a new Border for the supplied workbook data.

Declaration
public Border(BorderStyle style, SpreadsheetColor color)
Parameters
Type Name Description
BorderStyle style
SpreadsheetColor color
Remarks

A Border defines the style, color, and appearance of a cell border edge. Borders can be combined to create complete cell border formatting.

Use the Borders class to manage all four edges of a cell.

Border(BorderStyle, Color)

Initializes a new Border for the supplied workbook data.

Declaration
public Border(BorderStyle style, Color color)
Parameters
Type Name Description
BorderStyle style
Color color
Remarks

A Border defines the style, color, and appearance of a cell border edge. Borders can be combined to create complete cell border formatting.

Use the Borders class to manage all four edges of a cell.

Border(SpreadsheetColor)

Initializes a new Border for the supplied workbook data.

Declaration
public Border(SpreadsheetColor color)
Parameters
Type Name Description
SpreadsheetColor color
Remarks

A Border defines the style, color, and appearance of a cell border edge. Borders can be combined to create complete cell border formatting.

Use the Borders class to manage all four edges of a cell.

Border(Color)

Initializes a new Border for the supplied workbook data.

Declaration
public Border(Color color)
Parameters
Type Name Description
Color color
Remarks

A Border defines the style, color, and appearance of a cell border edge. Borders can be combined to create complete cell border formatting.

Use the Borders class to manage all four edges of a cell.

Properties

SpreadsheetColor

Gets the border color.

Declaration
public override SpreadsheetColor SpreadsheetColor { get; }
Property Value
Type Description
SpreadsheetColor
Overrides
AbstractBorder.SpreadsheetColor
Remarks

A Border defines the style, color, and appearance of a cell border edge. Borders can be combined to create complete cell border formatting.

Use the Borders class to manage all four edges of a cell.

Style

Gets the border line style (Thin, Medium, Dashed, etc.).

Declaration
public override BorderStyle Style { get; }
Property Value
Type Description
BorderStyle
Overrides
AbstractBorder.Style
Remarks

A Border defines the style, color, and appearance of a cell border edge. Borders can be combined to create complete cell border formatting.

Use the Borders class to manage all four edges of a cell.

Methods

IsDefault()

Determines whether this border is the default (no border).

Declaration
public bool IsDefault()
Returns
Type Description
bool
Remarks

A Border defines the style, color, and appearance of a cell border edge. Borders can be combined to create complete cell border formatting.

Use the Borders class to manage all four edges of a cell.

Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX