Class Border
Represents a border.
Inheritance
Inherited Members
Namespace: Telerik.WinForms.Documents.Model
Assembly: Telerik.WinControls.RichTextEditor.dll
Syntax
public class Border : IComparable<Border>
Constructors
Border()
Border(Single, BorderStyle, Color)
Initializes a new instance of the Border class.
Declaration
public Border(float thickness, BorderStyle style, Color color)
Parameters
System.Single
thickness
The border thickness. |
BorderStyle
style
The border style. |
Color
color
The border color. |
Border(Single, 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
System.Single
thickness
The thickness. |
BorderStyle
style
The style. |
Color
color
The color. |
ThemeColorsEnum
themeColor
The theme color. |
System.String
themeColorShade
The theme color shade. |
System.String
themeColorTint
The theme color tint. |
Border(Border)
Initializes a new instance of the Border class.
Declaration
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
public Border(BorderStyle style)
Parameters
BorderStyle
style
The border style. |
Border(BorderStyle, Color)
Initializes a new instance of the Border class.
Declaration
public Border(BorderStyle style, Color color)
Parameters
BorderStyle
style
The border style. |
Color
color
The border color. |
Properties
Color
Style
ThemeColor
Gets the theme color.
Declaration
public ThemeColorsEnum ThemeColor { get; }
Property Value
ThemeColorsEnum
The theme color. |
Thickness
Gets the thickness.
Declaration
public float Thickness { get; }
Property Value
System.Single
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
public int CompareTo(Border other)
Parameters
Border
other
An object to compare with this instance. |
Returns
System.Int32
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 |
Implements
Equals(Object)
Determines whether the specified System.Object, is equal to this instance.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to compare with this instance. |
Returns
System.Boolean
|
Overrides
GetHashCode()
Returns a hash code for this instance.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. |
Overrides
ToString()
Converts to string.
Declaration
public override string ToString()
Returns
System.String
A System.String that represents this instance. |
Overrides
Operators
Equality(Border, Border)
Implements the operator ==.
Declaration
public static bool operator ==(Border first, Border second)
Parameters
Border
first
The first. |
Border
second
The second. |
Returns
System.Boolean
The result of the operator. |
Inequality(Border, Border)
Implements the operator !=.
Declaration
public static bool operator !=(Border first, Border second)
Parameters
Border
first
The first. |
Border
second
The second. |
Returns
System.Boolean
The result of the operator. |