ClassTableCellBorders
Defines an immutable set of borders for table cells including all outer edges, inside dividers, and diagonal borders.
Definition
Namespace:Telerik.Windows.Documents.Flow.Model.Styles
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
public class TableCellBorders
Inheritance: objectTableCellBorders
Constructors
TableCellBorders()
Initializes a new instance with all borders set to the default border style.
Declaration
public TableCellBorders()
TableCellBorders(Border)
Initializes a new instance with all outer borders set to the specified style.
TableCellBorders(Border, Border, Border, Border)
Initializes a new instance with the four outer edge borders set individually.
TableCellBorders(Border, Border, Border, Border, Border, Border, Border, Border)
Initializes a new instance with outer edges, inside dividers, and diagonal borders set individually.
Declaration
public TableCellBorders(Border leftBorder, Border topBorder, Border rightBorder, Border bottomBorder, Border insideHorizontalBorder, Border insideVerticalBorder, Border diagonalDownBorder, Border diagonalUpBorder)
Parameters
leftBorder
The left border.
topBorder
The top border.
rightBorder
The right border.
bottomBorder
The bottom border.
insideHorizontalBorder
The inside horizontal border.
insideVerticalBorder
The inside vertical border.
diagonalDownBorder
The diagonal down border.
diagonalUpBorder
The diagonal up border.
TableCellBorders(Border, Border, Border, Border, Border, Border, Border, Border, Border, Border)
Initializes a new instance of the TableCellBorders class.
Declaration
public TableCellBorders(Border leftBorder, Border topBorder, Border rightBorder, Border bottomBorder, Border insideHorizontalBorder, Border insideVerticalBorder, Border diagonalDownBorder, Border diagonalUpBorder, Border start, Border end)
Parameters
leftBorder
The left border.
topBorder
The top border.
rightBorder
The right border.
bottomBorder
The bottom border.
insideHorizontalBorder
The inside horizontal border.
insideVerticalBorder
The inside vertical border.
diagonalDownBorder
The diagonal down border.
diagonalUpBorder
The diagonal up border.
start
The start border.
end
The end border.
TableCellBorders(TableCellBorders, Border, Border, Border, Border, Border, Border, Border, Border, Border, Border)
Initializes a new instance by copying source borders and replacing only the specified borders with new values.
Declaration
public TableCellBorders(TableCellBorders source, Border leftBorder = null, Border topBorder = null, Border rightBorder = null, Border bottomBorder = null, Border insideHorizontalBorder = null, Border insideVerticalBorder = null, Border diagonalDownBorder = null, Border diagonalUpBorder = null, Border startBorder = null, Border endBorder = null)
Parameters
source
The source.
leftBorder
The left border.
topBorder
The top border.
rightBorder
The right border.
bottomBorder
The bottom border.
insideHorizontalBorder
The inside horizontal border.
insideVerticalBorder
The inside vertical border.
diagonalDownBorder
The diagonal down border.
diagonalUpBorder
The diagonal up border.
startBorder
The start border.
endBorder
The end border.
Properties
Bottom
Bottom border of the cell.
Declaration
public Border Bottom { get; }
Property Value
The bottom border.
DiagonalDown
Diagonal border from top-left to bottom-right corner of the cell.
Declaration
public Border DiagonalDown { get; }
Property Value
The diagonal down.
DiagonalUp
Diagonal border from bottom-left to top-right corner of the cell.
Declaration
public Border DiagonalUp { get; }
Property Value
The diagonal up.
End
End edge border for bidirectional text support.
InsideHorizontal
Inner horizontal border dividing content within the cell.
Declaration
public Border InsideHorizontal { get; }
Property Value
The inner horizontal border.
InsideVertical
Inner vertical border dividing content within the cell.
Declaration
public Border InsideVertical { get; }
Property Value
The inner vertical border.
Left
Left border of the cell.
Right
Right border of the cell.
Start
Start edge border for bidirectional text support.
Methods
GetHashCode()
Serves as a hash function for a particular type.
Operators
operator !=(TableCellBorders, TableCellBorders)
Compares two table cell border sets for inequality.
Declaration
public static bool operator !=(TableCellBorders a, TableCellBorders b)
Parameters
a
b
Returns
True if the table cell borders are different.
operator ==(TableCellBorders, TableCellBorders)
Compares two table cell border sets for equality.
Declaration
public static bool operator ==(TableCellBorders a, TableCellBorders b)
Parameters
a
b
Returns
True if the table cell borders are equal.