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

Represents collection of Table borders. This class is immutable.

Definition

Namespace:Telerik.WinForms.Documents.Model

Assembly:Telerik.WinControls.RichTextEditor.dll

Syntax:

C#
[TypeConverter(typeof(TableBordersConverter))]
public class TableBorders

Inheritance: objectTableBorders

Constructors

Initializes a new instance of the TableBorders class.

C#
public TableBorders()

Initializes a new instance of the TableBorders class.

C#
public TableBorders(Border leftBorder, Border topBorder, Border rightBorder, Border bottomBorder, Border insideHorizontalBorder = null, Border insideVerticalBorder = null)
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 TableBorders class.

C#
public TableBorders(Border all)
Parameters:allBorder

A Border instance which will be applied to all borders of the table.

Initializes a new instance of the TableBorders class.

C#
public TableBorders(TableBorders other)
Parameters:otherTableBorders

A TableBorders instance to copy the properties from.

Properties

Gets all borders if they are equal.

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

The border.

Gets the bottom border.

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

The border.

Gets the inside horizontal border.

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

The border.

Gets the inside vertical border.

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

The border.

Gets the left border.

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

The border.

Gets the right border.

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

The border.

Gets the top border.

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

The 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 TableBorders object with the specified bottom border.

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

The new bottom border.

Returns:

TableBorders

Returns new TableBorders object with the specified inside horizontal border.

C#
public TableBorders SetInsideHorizontal(Border newInsideHorizontalBorder)
Parameters:newInsideHorizontalBorderBorder

The new inside horizontal border.

Returns:

TableBorders

A new TableBorders instance keeping the new borders.

Returns new TableBorders object with the specified inside vertical border.

C#
public TableBorders SetInsideVertical(Border newInsideVerticalBorder)
Parameters:newInsideVerticalBorderBorder

The new inside vertical border.

Returns:

TableBorders

A new TableBorders instance keeping the new borders.

Returns new TableBorders object with the specified left border.

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

The new left border.

Returns:

TableBorders

A new TableBorders instance keeping the new borders.

Returns new TableBorders object with the specified right border.

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

The new right border.

Returns:

TableBorders

A new TableBorders instance keeping the new borders.

Returns new TableBorders object with the specified top border.

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

The new top border.

Returns:

TableBorders

Converts to string.

C#
public override string ToString()
Returns:

string

A string that represents this instance.

Overrides: object.ToString()