ClassTableCellBorders
Represents collection of TableCell borders. This class is immutable.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
[TypeConverter(typeof(TableCellBordersConverter))]
public class TableCellBorders
Inheritance: objectTableCellBorders
Constructors
TableCellBorders()
Initializes a new instance of the TableCellBorders class.
Declaration
public TableCellBorders()
TableCellBorders(Border)
Initializes a new instance of the TableCellBorders class.
Declaration
public TableCellBorders(Border all)
Parameters
all
The border which will be used for all cell borders, excluding inside borders.
TableCellBorders(Border, Border, Border, Border)
Initializes a new instance of the TableCellBorders class.
TableCellBorders(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)
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.
TableCellBorders(BorderStyle, Color)
Initializes a new instance of the TableCellBorders class.
Declaration
public TableCellBorders(BorderStyle style, Color color)
Parameters
style
The style which will be used for all borders.
color
Color
The color which will be used for all borders.
TableCellBorders(TableCellBorders)
Initializes a new instance of the TableCellBorders class.
Declaration
public TableCellBorders(TableCellBorders other)
Parameters
other
A TableCellBorders instance to copy the properties from.
TableCellBorders(float, BorderStyle, Color)
Initializes a new instance of the TableCellBorders class.
Declaration
public TableCellBorders(float all, BorderStyle style, Color color)
Parameters
all
The thickness of the borders.
style
The style which will be used for all borders.
color
Color
The color which will be used for all borders.
TableCellBorders(float, float, float, float, BorderStyle, Color)
Initializes a new instance of the TableCellBorders class.
Declaration
public TableCellBorders(float left, float top, float right, float bottom, BorderStyle style, Color color)
Parameters
left
The left.
top
The top.
right
The right.
bottom
The bottom.
style
The style which will be used for all borders.
color
Color
The color which will be used for all borders.
Properties
All
Gets all border if they are equal. Does not take into account the inside borders.
Declaration
public Border All { get; }
Property Value
All borders without inside borders.
AllIncludingInside
Gets all border if they are equal. This property does take into account the inside borders.
Declaration
public Border AllIncludingInside { get; }
Property Value
All borders.
Bottom
Gets the bottom border.
Declaration
public Border Bottom { get; }
Property Value
The bottom border.
InsideHorizontal
Gets the inside horizontal border. This border is only used with conditional styles.
Declaration
public Border InsideHorizontal { get; }
Property Value
The inside horizontal border.
InsideVertical
Gets the inside vertical border. This border is only used with conditional styles.
Declaration
public Border InsideVertical { get; }
Property Value
The inside vertical border.
Left
Gets the left border.
Right
Gets the right border.
Methods
Equals(object)
Determines whether the specified object, is equal to this instance.
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Overrides
SetBottom(Border)
Returns new TableCellBorders object with the specified bottom border.
Declaration
public TableCellBorders SetBottom(Border newBottomBorder)
Parameters
newBottomBorder
The new bottom border.
Returns
SetInsideHorizontal(Border)
Returns new TableCellBorders object with the specified horizontal border.
Declaration
public TableCellBorders SetInsideHorizontal(Border newInsideHorizontal)
Parameters
newInsideHorizontal
The new inside horizontal.
Returns
SetInsideVertical(Border)
Returns new TableCellBorders object with the specified vertical border.
Declaration
public TableCellBorders SetInsideVertical(Border newInsideVertical)
Parameters
newInsideVertical
The new inside vertical.
Returns
SetLeft(Border)
Returns new TableCellBorders object with the specified left border.
Declaration
public TableCellBorders SetLeft(Border newLeftBorder)
Parameters
newLeftBorder
The new left border.
Returns
SetRight(Border)
Returns new TableCellBorders object with the specified right border.
Declaration
public TableCellBorders SetRight(Border newRightBorder)
Parameters
newRightBorder
The new right border.
Returns
SetTop(Border)
Returns new TableCellBorders object with the specified top border.
Declaration
public TableCellBorders SetTop(Border newTopBorder)
Parameters
newTopBorder
The new top border.
Returns