TableCellBorders
Represents collection of TableCell borders. This class is immutable.
Definition
Namespace:Telerik.WinForms.Documents.Model
Assembly:Telerik.WinControls.RichTextEditor.dll
Syntax:
[TypeConverter(typeof(TableCellBordersConverter))]
public class TableCellBorders
Inheritance: objectTableCellBorders
Constructors
Initializes a new instance of the TableCellBorders class.
public TableCellBorders()
Initializes a new instance of the TableCellBorders class.
public TableCellBorders(Border leftBorder, Border topBorder, Border rightBorder, Border bottomBorder, Border insideHorizontalBorder, Border insideVerticalBorder)
The left border.
topBorderBorderThe top border.
rightBorderBorderThe right border.
bottomBorderBorderThe bottom border.
insideHorizontalBorderBorderThe inside horizontal border.
insideVerticalBorderBorderThe inside vertical border.
Initializes a new instance of the TableCellBorders class.
Initializes a new instance of the TableCellBorders class.
public TableCellBorders(Border all)
The border which will be used for all cell borders, excluding inside borders.
Initializes a new instance of the TableCellBorders class.
public TableCellBorders(BorderStyle style, Color color)
The style which will be used for all borders.
colorColorThe color which will be used for all borders.
Initializes a new instance of the TableCellBorders class.
public TableCellBorders(float all, BorderStyle style, Color color)
The thickness of the borders.
styleBorderStyleThe style which will be used for all borders.
colorColorThe color which will be used for all borders.
Initializes a new instance of the TableCellBorders class.
public TableCellBorders(float left, float top, float right, float bottom, BorderStyle style, Color color)
The left.
topfloatThe top.
rightfloatThe right.
bottomfloatThe bottom.
styleBorderStyleThe style which will be used for all borders.
colorColorThe color which will be used for all borders.
Initializes a new instance of the TableCellBorders class.
public TableCellBorders(TableCellBorders other)
A TableCellBorders instance to copy the properties from.
Properties
Gets all border if they are equal. Does not take into account the inside borders.
public Border All { get; }
All borders without inside borders.
Gets all border if they are equal. This property does take into account the inside borders.
public Border AllIncludingInside { get; }
All borders.
Gets the bottom border.
public Border Bottom { get; }
The bottom border.
Gets the inside horizontal border. This border is only used with conditional styles.
public Border InsideHorizontal { get; }
The inside horizontal border.
Gets the inside vertical border. This border is only used with conditional styles.
public Border InsideVertical { get; }
The inside vertical border.
Methods
Returns a hash code for this instance.
public override int GetHashCode()
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Overrides:
Returns new TableCellBorders object with the specified bottom border.
public TableCellBorders SetBottom(Border newBottomBorder)
The new bottom border.
Returns:Returns new TableCellBorders object with the specified horizontal border.
public TableCellBorders SetInsideHorizontal(Border newInsideHorizontal)
The new inside horizontal.
Returns:Returns new TableCellBorders object with the specified vertical border.
public TableCellBorders SetInsideVertical(Border newInsideVertical)
The new inside vertical.
Returns:Returns new TableCellBorders object with the specified left border.
public TableCellBorders SetLeft(Border newLeftBorder)
The new left border.
Returns:Returns new TableCellBorders object with the specified right border.
public TableCellBorders SetRight(Border newRightBorder)
The new right border.
Returns:Returns new TableCellBorders object with the specified top border.
public TableCellBorders SetTop(Border newTopBorder)
The new top border.
Returns: