Class CellBorders
Represents all the borders of a cell.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Spreadsheet.Model
Assembly: Telerik.Windows.Documents.Spreadsheet.dll
Syntax
public class CellBorders
Constructors
CellBorders()
CellBorders(CellBorder)
Initializes a new instance of the Cell
Declaration
public CellBorders(CellBorder all)
Parameters
Cell The cell border to be applied on all sides of the cell. |
CellBorders(CellBorder, CellBorder, CellBorder, CellBorder, CellBorder, CellBorder, CellBorder, CellBorder)
Initializes a new instance of the Cell
Declaration
public CellBorders(CellBorder left, CellBorder top, CellBorder right, CellBorder bottom, CellBorder insideHorizontal, CellBorder insideVertical, CellBorder diagonalUp, CellBorder diagonalDown)
Parameters
Cell The left border. |
Cell The top border. |
Cell The right border. |
Cell The bottom border. |
Cell The inside horizontal border. |
Cell The inside vertical border. |
Cell The diagonal up border. |
Cell The diagonal down border. |
Fields
Default
The default borders of a cell.
Declaration
public static readonly CellBorders Default
Field Value
Properties
Bottom
Gets or sets the bottom border.
Declaration
public CellBorder Bottom { get; set; }
Property Value
Cell The bottom border. |
DiagonalDown
Gets or sets the diagonal down border.
Declaration
public CellBorder DiagonalDown { get; set; }
Property Value
Cell The diagonal down border. |
DiagonalUp
Gets or sets the diagonal up border.
Declaration
public CellBorder DiagonalUp { get; set; }
Property Value
Cell The diagonal up border. |
InsideHorizontal
Gets or sets the inside horizontal border.
Declaration
public CellBorder InsideHorizontal { get; set; }
Property Value
Cell The inside horizontal border. |
InsideVertical
Gets or sets the inside vertical border.
Declaration
public CellBorder InsideVertical { get; set; }
Property Value
Cell The inside vertical border. |
Left
Gets or sets the left border.
Declaration
public CellBorder Left { get; set; }
Property Value
Cell The left border. |
Right
Gets or sets the right border.
Declaration
public CellBorder Right { get; set; }
Property Value
Cell The right border. |
Top
Gets or sets the top border.
Declaration
public CellBorder Top { get; set; }
Property Value
Cell The top border. |
Methods
CreateInside(CellBorder)
Creates an inside group of borders.
Declaration
public static CellBorders CreateInside(CellBorder all)
Parameters
Cell The border to be applied to the inner borders of a cell. |
Returns
Cell The inside group of borders. |
CreateInside(CellBorder, CellBorder)
Creates an inside group of borders.
Declaration
public static CellBorders CreateInside(CellBorder insideHorizontal, CellBorder insideVertical)
Parameters
Cell The inside horizontal border. |
Cell The inside vertical border. |
Returns
Cell The inside group of borders. |
CreateOutline(CellBorder)
Creates an outline.
Declaration
public static CellBorders CreateOutline(CellBorder all)
Parameters
Cell The border to be applied to the top, right, bottom and left sides of the cell. |
Returns
Cell The outline. |
CreateOutline(CellBorder, CellBorder, CellBorder, CellBorder)
Creates an outline.
Declaration
public static CellBorders CreateOutline(CellBorder left, CellBorder top, CellBorder right, CellBorder bottom)
Parameters
Cell The left border. |
Cell The top border. |
Cell The right border. |
Cell The bottom border. |
Returns
Cell The outline. |
Equals(Object)
Determines whether the specified System.
Declaration
public override bool Equals(object obj)
Parameters
System. The System. |
Returns
System. True if the specified System. |
Overrides
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
System. A hash code for the current System. |
Overrides
Operators
Equality(CellBorders, CellBorders)
Implements the equals operator.
Declaration
public static bool operator ==(CellBorders first, CellBorders second)
Parameters
Cell The first value. |
Cell The second value. |
Returns
System. The result of the operator. |
Inequality(CellBorders, CellBorders)
Implements the not equals operator.
Declaration
public static bool operator !=(CellBorders first, CellBorders second)
Parameters
Cell The first value. |
Cell The second value. |
Returns
System. The result of the operator. |