ClassBorder
Represents a border.
Definition
Namespace:Telerik.Windows.Documents.Model
Assembly:Telerik.Windows.Controls.RichTextBox.dll
Syntax:
public class Border : IComparable<Border>
Inheritance: objectBorder
Implements:
Constructors
Border()
Initializes a new instance of the Border class.
Declaration
public Border()
Border(Border)
Initializes a new instance of the Border class.
Declaration
public Border(Border border)
Parameters
border
A border to copy the properties from.
Border(BorderStyle)
Initializes a new instance of the Border class.
Declaration
public Border(BorderStyle style)
Parameters
style
The border style.
Border(BorderStyle, Color)
Initializes a new instance of the Border class.
Declaration
public Border(BorderStyle style, Color color)
Parameters
style
The border style.
color
Color
The border color.
Border(float, BorderStyle, Color)
Initializes a new instance of the Border class.
Declaration
public Border(float thickness, BorderStyle style, Color color)
Parameters
thickness
The border thickness.
style
The border style.
color
Color
The border color.
Border(float, BorderStyle, Color, ThemeColorsEnum, string, string)
Initializes a new instance of the Border class.
Declaration
public Border(float thickness, BorderStyle style, Color color, ThemeColorsEnum themeColor, string themeColorShade, string themeColorTint)
Parameters
thickness
The thickness.
style
The style.
color
Color
The color.
themeColor
The theme color.
themeColorShade
The theme color shade.
themeColorTint
The theme color tint.
Properties
Color
Gets the color.
Declaration
public Color Color { get; }
Property Value
Color
The color.
Style
Gets the style.
Declaration
public BorderStyle Style { get; }
Property Value
The style.
ThemeColor
Gets the theme color.
Declaration
public ThemeColorsEnum ThemeColor { get; }
Property Value
The theme color.
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
public int CompareTo(Border other)
Parameters
other
An object to compare with this instance.
Returns
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
Equals(object)
Determines whether the specified object, is equal to this instance.
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.
Overrides
ToString()
Converts to string.
Operators
operator !=(Border, Border)
Implements the operator !=.
operator ==(Border, Border)
Implements the operator ==.