New to Telerik UI for WinFormsStart a free 30-day trial

Represents collection of TableCell borders. This class is immutable.

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
[TypeConverter(typeof(TableCellBordersConverter))]
public class TableCellBorders

Inheritance: objectTableCellBorders

Constructors

Initializes a new instance of the TableCellBorders class.

C#
public TableCellBorders()

Initializes a new instance of the TableCellBorders class.

C#
public TableCellBorders(Border leftBorder, Border topBorder, Border rightBorder, Border bottomBorder, Border insideHorizontalBorder, Border insideVerticalBorder)
Parameters:leftBorderBorder

The left border.

topBorderBorder

The top border.

rightBorderBorder

The right border.

bottomBorderBorder

The bottom border.

insideHorizontalBorderBorder

The inside horizontal border.

insideVerticalBorderBorder

The inside vertical border.

Initializes a new instance of the TableCellBorders class.

C#
public TableCellBorders(Border leftBorder, Border topBorder, Border rightBorder, Border bottomBorder)
Parameters:leftBorderBorder

The left border.

topBorderBorder

The top border.

rightBorderBorder

The right border.

bottomBorderBorder

The bottom border.

Initializes a new instance of the TableCellBorders class.

C#
public TableCellBorders(Border all)
Parameters:allBorder

The border which will be used for all cell borders, excluding inside borders.

Initializes a new instance of the TableCellBorders class.

C#
public TableCellBorders(BorderStyle style, Color color)
Parameters:styleBorderStyle

The style which will be used for all borders.

colorColor

The color which will be used for all borders.

Initializes a new instance of the TableCellBorders class.

C#
public TableCellBorders(float all, BorderStyle style, Color color)
Parameters:allfloat

The thickness of the borders.

styleBorderStyle

The style which will be used for all borders.

colorColor

The color which will be used for all borders.

Initializes a new instance of the TableCellBorders class.

C#
public TableCellBorders(float left, float top, float right, float bottom, BorderStyle style, Color color)
Parameters:leftfloat

The left.

topfloat

The top.

rightfloat

The right.

bottomfloat

The bottom.

styleBorderStyle

The style which will be used for all borders.

colorColor

The color which will be used for all borders.

Initializes a new instance of the TableCellBorders class.

C#
public TableCellBorders(TableCellBorders other)
Parameters:otherTableCellBorders

A TableCellBorders instance to copy the properties from.

Properties

Gets all border if they are equal. Does not take into account the inside borders.

C#
public Border All { get; }
Property Value:

All borders without inside borders.

Gets all border if they are equal. This property does take into account the inside borders.

C#
public Border AllIncludingInside { get; }
Property Value:

All borders.

Gets the bottom border.

C#
public Border Bottom { get; }
Property Value:

The bottom border.

Gets the inside horizontal border. This border is only used with conditional styles.

C#
public Border InsideHorizontal { get; }
Property Value:

The inside horizontal border.

Gets the inside vertical border. This border is only used with conditional styles.

C#
public Border InsideVertical { get; }
Property Value:

The inside vertical border.

Gets the left border.

C#
public Border Left { get; }
Property Value:

The left border.

Gets the right border.

C#
public Border Right { get; }
Property Value:

The right border.

Gets the top border.

C#
public Border Top { get; }
Property Value:

The top border.

Methods

Determines whether the specified object, is equal to this instance.

C#
public override bool Equals(object obj)
Parameters:objobject

The object to compare with this instance.

Returns:

bool

true if the specified object is equal to this instance; otherwise, false.

Overrides: object.Equals(object)

Returns a hash code for this instance.

C#
public override int GetHashCode()
Returns:

int

A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

Overrides: object.GetHashCode()

Returns new TableCellBorders object with the specified bottom border.

C#
public TableCellBorders SetBottom(Border newBottomBorder)
Parameters:newBottomBorderBorder

The new bottom border.

Returns:

TableCellBorders

Returns new TableCellBorders object with the specified horizontal border.

C#
public TableCellBorders SetInsideHorizontal(Border newInsideHorizontal)
Parameters:newInsideHorizontalBorder

The new inside horizontal.

Returns:

TableCellBorders

Returns new TableCellBorders object with the specified vertical border.

C#
public TableCellBorders SetInsideVertical(Border newInsideVertical)
Parameters:newInsideVerticalBorder

The new inside vertical.

Returns:

TableCellBorders

Returns new TableCellBorders object with the specified left border.

C#
public TableCellBorders SetLeft(Border newLeftBorder)
Parameters:newLeftBorderBorder

The new left border.

Returns:

TableCellBorders

Returns new TableCellBorders object with the specified right border.

C#
public TableCellBorders SetRight(Border newRightBorder)
Parameters:newRightBorderBorder

The new right border.

Returns:

TableCellBorders

Returns new TableCellBorders object with the specified top border.

C#
public TableCellBorders SetTop(Border newTopBorder)
Parameters:newTopBorderBorder

The new top border.

Returns:

TableCellBorders