Class
Border

Represents a border.

Definition

Namespace:Telerik.Windows.Documents.Model

Assembly:Telerik.Windows.Controls.RichTextBox.dll

Syntax:

cs-api-definition
public class Border : IComparable<Border>

Inheritance: objectBorder

Implements: IComparable<Border>

Constructors

Border()

Initializes a new instance of the Border class.

Declaration

cs-api-definition
public Border()

Border(Border)

Initializes a new instance of the Border class.

Declaration

cs-api-definition
public Border(Border border)

Parameters

border

Border

A border to copy the properties from.

Border(BorderStyle)

Initializes a new instance of the Border class.

Declaration

cs-api-definition
public Border(BorderStyle style)

Parameters

style

BorderStyle

The border style.

Border(BorderStyle, Color)

Initializes a new instance of the Border class.

Declaration

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

Parameters

style

BorderStyle

The border style.

color

Color

The border color.

Border(float, BorderStyle, Color)

Initializes a new instance of the Border class.

Declaration

cs-api-definition
public Border(float thickness, BorderStyle style, Color color)

Parameters

thickness

float

The border thickness.

style

BorderStyle

The border style.

color

Color

The border color.

Border(float, BorderStyle, Color, ThemeColorsEnum, string, string)

Initializes a new instance of the Border class.

Declaration

cs-api-definition
public Border(float thickness, BorderStyle style, Color color, ThemeColorsEnum themeColor, string themeColorShade, string themeColorTint)

Parameters

thickness

float

The thickness.

style

BorderStyle

The style.

color

Color

The color.

themeColor

ThemeColorsEnum

The theme color.

themeColorShade

string

The theme color shade.

themeColorTint

string

The theme color tint.

Properties

Color

Gets the color.

Declaration

cs-api-definition
public Color Color { get; }

Property Value

Color

The color.

Style

Gets the style.

Declaration

cs-api-definition
public BorderStyle Style { get; }

Property Value

BorderStyle

The style.

ThemeColor

Gets the theme color.

Declaration

cs-api-definition
public ThemeColorsEnum ThemeColor { get; }

Property Value

ThemeColorsEnum

The theme color.

Thickness

Gets the thickness.

Declaration

cs-api-definition
public float Thickness { get; }

Property Value

float

The thickness.

Methods

CompareTo(Border)

Compares the current instance with another object of the same type and returns an integer that indicates whether the current instance precedes, follows, or occurs in the same position in the sort order as the other object.

Declaration

cs-api-definition
public int CompareTo(Border other)

Parameters

other

Border

An object to compare with this instance.

Returns

int

A value that indicates the relative order of the objects being compared. The return value has these meanings: Value Meaning Less than zero This instance precedes other in the sort order. Zero This instance occurs in the same position in the sort order as other. Greater than zero This instance follows other in the sort order.

Implements IComparable<Border>.CompareTo(Border)

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()

ToString()

Converts to string.

Declaration

cs-api-definition
public override string ToString()

Returns

string

A string that represents this instance.

Overrides object.ToString()

Operators

operator !=(Border, Border)

Implements the operator !=.

Declaration

cs-api-definition
public static bool operator !=(Border first, Border second)

Parameters

first

Border

The first.

second

Border

The second.

Returns

bool

The result of the operator.

operator ==(Border, Border)

Implements the operator ==.

Declaration

cs-api-definition
public static bool operator ==(Border first, Border second)

Parameters

first

Border

The first.

second

Border

The second.

Returns

bool

The result of the operator.