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