Class
TableCellBorders

Represents collection of TableCell borders. This class is immutable.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
[TypeConverter(typeof(TableCellBordersConverter))]
public class TableCellBorders

Inheritance: objectTableCellBorders

Constructors

TableCellBorders()

Initializes a new instance of the TableCellBorders class.

Declaration

cs-api-definition
public TableCellBorders()

TableCellBorders(Border)

Initializes a new instance of the TableCellBorders class.

Declaration

cs-api-definition
public TableCellBorders(Border all)

Parameters

all

Border

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

TableCellBorders(Border, Border, Border, Border)

Initializes a new instance of the TableCellBorders class.

Declaration

cs-api-definition
public TableCellBorders(Border leftBorder, Border topBorder, Border rightBorder, Border bottomBorder)

Parameters

leftBorder

Border

The left border.

topBorder

Border

The top border.

rightBorder

Border

The right border.

bottomBorder

Border

The bottom border.

TableCellBorders(Border, Border, Border, Border, Border, Border)

Initializes a new instance of the TableCellBorders class.

Declaration

cs-api-definition
public TableCellBorders(Border leftBorder, Border topBorder, Border rightBorder, Border bottomBorder, Border insideHorizontalBorder, Border insideVerticalBorder)

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.

TableCellBorders(BorderStyle, Color)

Initializes a new instance of the TableCellBorders class.

Declaration

cs-api-definition
public TableCellBorders(BorderStyle style, Color color)

Parameters

style

BorderStyle

The style which will be used for all borders.

color

Color

The color which will be used for all borders.

TableCellBorders(TableCellBorders)

Initializes a new instance of the TableCellBorders class.

Declaration

cs-api-definition
public TableCellBorders(TableCellBorders other)

Parameters

other

TableCellBorders

A TableCellBorders instance to copy the properties from.

TableCellBorders(float, BorderStyle, Color)

Initializes a new instance of the TableCellBorders class.

Declaration

cs-api-definition
public TableCellBorders(float all, BorderStyle style, Color color)

Parameters

all

float

The thickness of the borders.

style

BorderStyle

The style which will be used for all borders.

color

Color

The color which will be used for all borders.

TableCellBorders(float, float, float, float, BorderStyle, Color)

Initializes a new instance of the TableCellBorders class.

Declaration

cs-api-definition
public TableCellBorders(float left, float top, float right, float bottom, BorderStyle style, Color color)

Parameters

left

float

The left.

top

float

The top.

right

float

The right.

bottom

float

The bottom.

style

BorderStyle

The style which will be used for all borders.

color

Color

The color which will be used for all borders.

Properties

All

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

Declaration

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

Property Value

Border

All borders without inside borders.

AllIncludingInside

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

Declaration

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

Property Value

Border

All borders.

Bottom

Gets the bottom border.

Declaration

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

Property Value

Border

The bottom border.

InsideHorizontal

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

Declaration

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

Property Value

Border

The inside horizontal border.

InsideVertical

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

Declaration

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

Property Value

Border

The inside vertical border.

Left

Gets the left border.

Declaration

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

Property Value

Border

The left border.

Right

Gets the right border.

Declaration

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

Property Value

Border

The right border.

Top

Gets the top border.

Declaration

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

Property Value

Border

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

Declaration

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

Parameters

newBottomBorder

Border

The new bottom border.

Returns

TableCellBorders

SetInsideHorizontal(Border)

Returns new TableCellBorders object with the specified horizontal border.

Declaration

cs-api-definition
public TableCellBorders SetInsideHorizontal(Border newInsideHorizontal)

Parameters

newInsideHorizontal

Border

The new inside horizontal.

Returns

TableCellBorders

SetInsideVertical(Border)

Returns new TableCellBorders object with the specified vertical border.

Declaration

cs-api-definition
public TableCellBorders SetInsideVertical(Border newInsideVertical)

Parameters

newInsideVertical

Border

The new inside vertical.

Returns

TableCellBorders

SetLeft(Border)

Returns new TableCellBorders object with the specified left border.

Declaration

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

Parameters

newLeftBorder

Border

The new left border.

Returns

TableCellBorders

SetRight(Border)

Returns new TableCellBorders object with the specified right border.

Declaration

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

Parameters

newRightBorder

Border

The new right border.

Returns

TableCellBorders

SetTop(Border)

Returns new TableCellBorders object with the specified top border.

Declaration

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

Parameters

newTopBorder

Border

The new top border.

Returns

TableCellBorders