Class Border
Describes the settings which are used to determine how the border will appear in the document. This class is immutable.
Inheritance
Inherited Members
Namespace: Telerik.Windows.Documents.Flow.Model.Styles
Assembly: Telerik.Windows.Documents.Flow.dll
Syntax
public class Border : IComparable<Border>
Constructors
Border(Double, BorderStyle, ThemableColor)
Initializes a new instance of the Border class.
Declaration
public Border(double thickness, BorderStyle style, ThemableColor color)
Parameters
System.Double
thickness
The thickness. |
BorderStyle
style
The style. |
ThemableColor
color
The color. |
Border(Double, BorderStyle, ThemableColor, Boolean, Boolean, Double)
Initializes a new instance of the Border class.
Declaration
public Border(double thickness, BorderStyle style, ThemableColor color, bool shadow, bool frame, double spacing)
Parameters
System.Double
thickness
The thickness. |
BorderStyle
style
The style. |
ThemableColor
color
The color. |
System.Boolean
shadow
The shadow. |
System.Boolean
frame
The frame. |
System.Double
spacing
The spacing. |
Border(Border)
Initializes a new instance of the Border class.
Declaration
public Border(Border border)
Parameters
Border
border
The border. |
Border(BorderStyle)
Initializes a new instance of the Border class.
Declaration
public Border(BorderStyle style)
Parameters
BorderStyle
style
The style. |
Properties
Color
Gets the color of the border.
Declaration
public ThemableColor Color { get; }
Property Value
ThemableColor
The color. |
Frame
Gets a value indicating whether the border should have frame effect.
Declaration
public bool Frame { get; }
Property Value
System.Boolean
The frame. |
Shadow
Gets a value indicating whether the border should have shadow effect.
Declaration
public bool Shadow { get; }
Property Value
System.Boolean
The shadow. |
Spacing
Gets the spacing of the border.
Declaration
public double Spacing { get; }
Property Value
System.Double
The spacing. |
Style
Gets the style of the border.
Declaration
public BorderStyle Style { get; }
Property Value
BorderStyle
The style. |
Thickness
Gets the thickness of the border.
Declaration
public double Thickness { get; }
Property Value
System.Double
The thickness. |
Methods
CompareTo(Border)
Compares a borders to another.
Declaration
public int CompareTo(Border other)
Parameters
Border
other
The other. |
Returns
System.Int32
|
Implements
Equals(Object)
Determines whether the specified System.Object is equal to the current System.Object.
Declaration
public override bool Equals(object obj)
Parameters
System.Object
obj
The System.Object to compare with the current System.Object. |
Returns
System.Boolean
Returns true if the specified System.Object is equal to the current System.Object; otherwise, false. |
Overrides
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
System.Int32
A hash code for the current System.Object. |
Overrides
Operators
Equality(Border, Border)
Determines whether the specified borders are equal.
Declaration
public static bool operator ==(Border first, Border second)
Parameters
Border
first
|
Border
second
|
Returns
System.Boolean
True if the borders are equal. |