ClassCellBorders
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:
public class CellBorders
Inheritance: objectCellBorders
Constructors
CellBorders()
Initializes a new instance of the CellBorders class.
Declaration
public CellBorders()
CellBorders(CellBorder)
Initializes a new CellBorders applying the same border to all edges.
Declaration
public CellBorders(CellBorder all)
Parameters
all
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
public CellBorders(CellBorder left, CellBorder top, CellBorder right, CellBorder bottom, CellBorder insideHorizontal, CellBorder insideVertical, CellBorder diagonalUp, CellBorder diagonalDown)
Parameters
left
The left border.
top
The top border.
right
The right border.
bottom
The bottom border.
insideHorizontal
The inside horizontal border.
insideVertical
The inside vertical border.
diagonalUp
The diagonal up border.
diagonalDown
The diagonal down border.
Fields
Default
The default borders of a cell.
Properties
Bottom
Gets or sets the border on the bottom edge of the cell.
Declaration
public CellBorder Bottom { get; set; }
Property Value
The bottom border.
DiagonalDown
Gets or sets the border for the diagonal line from top-left to bottom-right.
Declaration
public CellBorder DiagonalDown { get; set; }
Property Value
The diagonal down border.
DiagonalUp
Gets or sets the border for the diagonal line from bottom-left to top-right.
Declaration
public CellBorder DiagonalUp { get; set; }
Property Value
The diagonal up border.
InsideHorizontal
Gets or sets the border for horizontal lines inside a cell range.
Declaration
public CellBorder InsideHorizontal { get; set; }
Property Value
The inside horizontal border.
InsideVertical
Gets or sets the border for vertical lines inside a cell range.
Declaration
public CellBorder InsideVertical { get; set; }
Property Value
The inside vertical border.
Left
Gets or sets the border on the left edge of the cell.
Declaration
public CellBorder Left { get; set; }
Property Value
The left border.
Right
Gets or sets the border on the right edge of the cell.
Declaration
public CellBorder Right { get; set; }
Property Value
The right border.
Top
Gets or sets the border on the top edge of the cell.
Declaration
public CellBorder Top { get; set; }
Property Value
The top border.
Methods
CreateInside(CellBorder)
Creates a border configuration with the specified border applied to inside horizontal and vertical lines.
Declaration
public static CellBorders CreateInside(CellBorder all)
Parameters
all
The border to be applied to the inner borders of a cell.
Returns
The inside group of borders.
CreateInside(CellBorder, CellBorder)
Creates a border configuration with separate borders for inside horizontal and vertical lines.
Declaration
public static CellBorders CreateInside(CellBorder insideHorizontal, CellBorder insideVertical)
Parameters
insideHorizontal
The inside horizontal border.
insideVertical
The inside vertical border.
Returns
The inside group of borders.
CreateOutline(CellBorder)
Creates a border configuration with the specified border applied to the outer edges only.
Declaration
public static CellBorders CreateOutline(CellBorder all)
Parameters
all
The border to be applied to the top, right, bottom and left sides of the cell.
Returns
The outline.
CreateOutline(CellBorder, CellBorder, CellBorder, CellBorder)
Creates a border configuration with individual borders applied to each outer edge.
Declaration
public static CellBorders CreateOutline(CellBorder left, CellBorder top, CellBorder right, CellBorder bottom)
Parameters
left
The left border.
top
The top border.
right
The right border.
bottom
The bottom border.
Returns
The outline.
GetHashCode()
Serves as a hash function for a particular type.
Operators
operator !=(CellBorders, CellBorders)
Implements the not equals operator.
Declaration
public static bool operator !=(CellBorders first, CellBorders second)
Parameters
first
The first value.
second
The second value.
Returns
The result of the operator.
operator ==(CellBorders, CellBorders)
Implements the equals operator.
Declaration
public static bool operator ==(CellBorders first, CellBorders second)
Parameters
first
The first value.
second
The second value.
Returns
The result of the operator.