Class
CellBorders

Defines the border styling for all edges of a cell or cell range, including outline, inside, and diagonal borders.

Definition

Namespace:Telerik.Windows.Documents.Spreadsheet.Model

Assembly:Telerik.Windows.Documents.Spreadsheet.dll

Syntax:

cs-api-definition
public class CellBorders

Inheritance: objectCellBorders

Constructors

CellBorders()

Initializes a new instance of the CellBorders class.

Declaration

cs-api-definition
public CellBorders()

CellBorders(CellBorder)

Initializes a new CellBorders applying the same border to all edges.

Declaration

cs-api-definition
public CellBorders(CellBorder all)

Parameters

all

CellBorder

The cell border to be applied on all sides of the cell.

CellBorders(CellBorder, CellBorder, CellBorder, CellBorder, CellBorder, CellBorder, CellBorder, CellBorder)

Initializes a new CellBorders with individual borders for each edge and diagonal.

Declaration

cs-api-definition
public CellBorders(CellBorder left, CellBorder top, CellBorder right, CellBorder bottom, CellBorder insideHorizontal, CellBorder insideVertical, CellBorder diagonalUp, CellBorder diagonalDown)

Parameters

left

CellBorder

The left border.

top

CellBorder

The top border.

right

CellBorder

The right border.

bottom

CellBorder

The bottom border.

insideHorizontal

CellBorder

The inside horizontal border.

insideVertical

CellBorder

The inside vertical border.

diagonalUp

CellBorder

The diagonal up border.

diagonalDown

CellBorder

The diagonal down border.

Fields

Default

The default borders of a cell.

Declaration

cs-api-definition
public static readonly CellBorders Default

Field Value

CellBorders

Properties

Bottom

Gets or sets the border on the bottom edge of the cell.

Declaration

cs-api-definition
public CellBorder Bottom { get; set; }

Property Value

CellBorder

The bottom border.

DiagonalDown

Gets or sets the border for the diagonal line from top-left to bottom-right.

Declaration

cs-api-definition
public CellBorder DiagonalDown { get; set; }

Property Value

CellBorder

The diagonal down border.

DiagonalUp

Gets or sets the border for the diagonal line from bottom-left to top-right.

Declaration

cs-api-definition
public CellBorder DiagonalUp { get; set; }

Property Value

CellBorder

The diagonal up border.

InsideHorizontal

Gets or sets the border for horizontal lines inside a cell range.

Declaration

cs-api-definition
public CellBorder InsideHorizontal { get; set; }

Property Value

CellBorder

The inside horizontal border.

InsideVertical

Gets or sets the border for vertical lines inside a cell range.

Declaration

cs-api-definition
public CellBorder InsideVertical { get; set; }

Property Value

CellBorder

The inside vertical border.

Left

Gets or sets the border on the left edge of the cell.

Declaration

cs-api-definition
public CellBorder Left { get; set; }

Property Value

CellBorder

The left border.

Right

Gets or sets the border on the right edge of the cell.

Declaration

cs-api-definition
public CellBorder Right { get; set; }

Property Value

CellBorder

The right border.

Top

Gets or sets the border on the top edge of the cell.

Declaration

cs-api-definition
public CellBorder Top { get; set; }

Property Value

CellBorder

The top border.

Methods

CreateInside(CellBorder)

Creates a border configuration with the specified border applied to inside horizontal and vertical lines.

Declaration

cs-api-definition
public static CellBorders CreateInside(CellBorder all)

Parameters

all

CellBorder

The border to be applied to the inner borders of a cell.

Returns

CellBorders

The inside group of borders.

CreateInside(CellBorder, CellBorder)

Creates a border configuration with separate borders for inside horizontal and vertical lines.

Declaration

cs-api-definition
public static CellBorders CreateInside(CellBorder insideHorizontal, CellBorder insideVertical)

Parameters

insideHorizontal

CellBorder

The inside horizontal border.

insideVertical

CellBorder

The inside vertical border.

Returns

CellBorders

The inside group of borders.

CreateOutline(CellBorder)

Creates a border configuration with the specified border applied to the outer edges only.

Declaration

cs-api-definition
public static CellBorders CreateOutline(CellBorder all)

Parameters

all

CellBorder

The border to be applied to the top, right, bottom and left sides of the cell.

Returns

CellBorders

The outline.

CreateOutline(CellBorder, CellBorder, CellBorder, CellBorder)

Creates a border configuration with individual borders applied to each outer edge.

Declaration

cs-api-definition
public static CellBorders CreateOutline(CellBorder left, CellBorder top, CellBorder right, CellBorder bottom)

Parameters

left

CellBorder

The left border.

top

CellBorder

The top border.

right

CellBorder

The right border.

bottom

CellBorder

The bottom border.

Returns

CellBorders

The outline.

Equals(object)

Determines whether the specified object is equal to the current object.

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

The object to compare with the current object.

Returns

bool

True if the specified object is equal to the current object; otherwise, false.

Overrides object.Equals(object)

GetHashCode()

Serves as a hash function for a particular type.

Declaration

cs-api-definition
public override int GetHashCode()

Returns

int

A hash code for the current object.

Overrides object.GetHashCode()

Operators

operator !=(CellBorders, CellBorders)

Implements the not equals operator.

Declaration

cs-api-definition
public static bool operator !=(CellBorders first, CellBorders second)

Parameters

first

CellBorders

The first value.

second

CellBorders

The second value.

Returns

bool

The result of the operator.

operator ==(CellBorders, CellBorders)

Implements the equals operator.

Declaration

cs-api-definition
public static bool operator ==(CellBorders first, CellBorders second)

Parameters

first

CellBorders

The first value.

second

CellBorders

The second value.

Returns

bool

The result of the operator.