New to Telerik Document ProcessingStart a free 30-day trial

Defines an immutable set of borders for tables including all outer edges and inside dividers between rows and columns.

Definition

Namespace:Telerik.Windows.Documents.Flow.Model.Styles

Assembly:Telerik.Windows.Documents.Flow.dll

Syntax:

C#
public class TableBorders

Inheritance: objectTableBorders

Constructors

Initializes a new instance with all borders set to the default border style.

C#
public TableBorders()

Initializes a new instance with all borders including outer edges, inside dividers, and bidirectional text borders set individually.

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

startBorderBorder

The start border.

endBorderBorder

The end border.

Initializes a new instance with outer edges and inside divider borders set individually.

C#
public TableBorders(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 with the four outer edge borders set individually.

C#
public TableBorders(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 with all borders set to the specified style.

C#
public TableBorders(Border all)
Parameters:allBorder

All.

Initializes a new instance by copying source borders and replacing only the specified borders with new values.

C#
public TableBorders(TableBorders source, Border leftBorder = null, Border topBorder = null, Border rightBorder = null, Border bottomBorder = null, Border insideHorizontalBorder = null, Border insideVerticalBorder = null, Border startBorder = null, Border endBorder = null)
Parameters:sourceTableBorders

The table borders source.

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.

startBorderBorder

The start border.

endBorderBorder

The end border.

Methods

Determines whether the specified object is equal to the current object.

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

The object to compare with the current object.

Returns:

bool

Returns true if the specified object is equal to the current object; otherwise, false.

Overrides: object.Equals(object)

Serves as a hash function for a particular type.

C#
public override int GetHashCode()
Returns:

int

A hash code for the current object.

Overrides: object.GetHashCode()

Operators

Compares two table border sets for inequality.

C#
public static bool operator !=(TableBorders a, TableBorders b)
Parameters:aTableBordersbTableBordersReturns:

bool

True if the table borders are different.

Compares two table border sets for equality.

C#
public static bool operator ==(TableBorders a, TableBorders b)
Parameters:aTableBordersbTableBordersReturns:

bool

True if the table borders are equal.

Properties

Bottom border of the table.

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

The bottom border.

End edge border for bidirectional text support.

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

The end border.

Inner horizontal border dividing table rows.

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

The inner horizontal border.

Inner vertical border dividing table columns.

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

The inner vertical border.

Left border of the table.

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

The left border.

Right border of the table.

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

The right border.

Start edge border for bidirectional text support.

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

The start border.

Top border of the table.

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

The top border.