Class
TableBorders

Represents collection of Table borders. This class is immutable.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(TableBordersConverter))]
public class TableBorders

Inheritance: objectTableBorders

Constructors

TableBorders()

Initializes a new instance of the TableBorders class.

Declaration

cs-api-definition
public TableBorders()

TableBorders(Border)

Initializes a new instance of the TableBorders class.

Declaration

cs-api-definition
public TableBorders(Border all)

Parameters

all

Border

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

TableBorders(Border, Border, Border, Border, Border, Border)

Initializes a new instance of the TableBorders class.

Declaration

cs-api-definition
public TableBorders(Border leftBorder, Border topBorder, Border rightBorder, Border bottomBorder, Border insideHorizontalBorder = null, Border insideVerticalBorder = null)

Parameters

leftBorder

Border

The left border.

topBorder

Border

The top border.

rightBorder

Border

The right border.

bottomBorder

Border

The bottom border.

insideHorizontalBorder

Border

The inside horizontal border.

insideVerticalBorder

Border

The inside vertical border.

TableBorders(TableBorders)

Initializes a new instance of the TableBorders class.

Declaration

cs-api-definition
public TableBorders(TableBorders other)

Parameters

other

TableBorders

A TableBorders instance to copy the properties from.

Properties

All

Gets all borders if they are equal.

Declaration

cs-api-definition
public Border All { get; }

Property Value

Border

The border.

Bottom

Gets the bottom border.

Declaration

cs-api-definition
public Border Bottom { get; }

Property Value

Border

The border.

InsideHorizontal

Gets the inside horizontal border.

Declaration

cs-api-definition
public Border InsideHorizontal { get; }

Property Value

Border

The border.

InsideVertical

Gets the inside vertical border.

Declaration

cs-api-definition
public Border InsideVertical { get; }

Property Value

Border

The border.

Left

Gets the left border.

Declaration

cs-api-definition
public Border Left { get; }

Property Value

Border

The border.

Right

Gets the right border.

Declaration

cs-api-definition
public Border Right { get; }

Property Value

Border

The border.

Top

Gets the top border.

Declaration

cs-api-definition
public Border Top { get; }

Property Value

Border

The border.

Methods

Equals(object)

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

Declaration

cs-api-definition
public override bool Equals(object obj)

Parameters

obj

object

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)

GetHashCode()

Returns a hash code for this instance.

Declaration

cs-api-definition
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()

SetBottom(Border)

Returns new TableBorders object with the specified bottom border.

Declaration

cs-api-definition
public TableBorders SetBottom(Border newBottomBorder)

Parameters

newBottomBorder

Border

The new bottom border.

Returns

TableBorders

SetInsideHorizontal(Border)

Returns new TableBorders object with the specified inside horizontal border.

Declaration

cs-api-definition
public TableBorders SetInsideHorizontal(Border newInsideHorizontalBorder)

Parameters

newInsideHorizontalBorder

Border

The new inside horizontal border.

Returns

TableBorders

A new TableBorders instance keeping the new borders.

SetInsideVertical(Border)

Returns new TableBorders object with the specified inside vertical border.

Declaration

cs-api-definition
public TableBorders SetInsideVertical(Border newInsideVerticalBorder)

Parameters

newInsideVerticalBorder

Border

The new inside vertical border.

Returns

TableBorders

A new TableBorders instance keeping the new borders.

SetLeft(Border)

Returns new TableBorders object with the specified left border.

Declaration

cs-api-definition
public TableBorders SetLeft(Border newLeftBorder)

Parameters

newLeftBorder

Border

The new left border.

Returns

TableBorders

A new TableBorders instance keeping the new borders.

SetRight(Border)

Returns new TableBorders object with the specified right border.

Declaration

cs-api-definition
public TableBorders SetRight(Border newRightBorder)

Parameters

newRightBorder

Border

The new right border.

Returns

TableBorders

A new TableBorders instance keeping the new borders.

SetTop(Border)

Returns new TableBorders object with the specified top border.

Declaration

cs-api-definition
public TableBorders SetTop(Border newTopBorder)

Parameters

newTopBorder

Border

The new top border.

Returns

TableBorders

ToString()

Converts to string.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents this instance.

Overrides object.ToString()