ClassBorder
Defines immutable border appearance settings including style, thickness, color, and optional effects for document elements. Use to configure borders on paragraphs, table cells, and other block-level content.
Definition
Namespace:Telerik.Windows.Documents.Flow.Model.Styles
Assembly:Telerik.Windows.Documents.Flow.dll
Syntax:
[SuppressMessage("Microsoft.Design", "CA1036:OverrideMethodsOnComparableTypes")]
public class Border : IComparable<Border>
Inheritance: objectBorder
Implements:
Constructors
Border(Border)
Initializes a new instance of the Border class by copying settings from an existing border.
Border(BorderStyle)
Initializes a new instance of the Border class with the specified style and default thickness and color.
Declaration
public Border(BorderStyle style)
Parameters
style
The style.
Border(double, BorderStyle, ThemableColor)
Initializes a new instance of the Border class with the specified thickness, style, and color.
Declaration
public Border(double thickness, BorderStyle style, ThemableColor color)
Parameters
thickness
The thickness.
style
The style.
color
The color.
Border(double, BorderStyle, ThemableColor, bool, bool, double)
Initializes a new instance of the Border class with full appearance control including optional shadow, frame, and spacing effects.
Declaration
public Border(double thickness, BorderStyle style, ThemableColor color, bool shadow, bool frame, double spacing)
Parameters
thickness
The thickness.
style
The style.
color
The color.
shadow
The shadow.
frame
The frame.
spacing
The spacing.
Properties
Color
Gets the border color, which may reference a document theme color.
Declaration
public ThemableColor Color { get; }
Property Value
The color.
Frame
Gets a value indicating whether a frame effect is applied to the border.
Shadow
Gets a value indicating whether a shadow effect is applied to the border.
Spacing
Gets the spacing between the border and the content it surrounds, in device independent pixels.
Style
Gets the visual pattern of the border line.
Declaration
public BorderStyle Style { get; }
Property Value
The style.
Methods
CompareTo(Border)
Compares a borders to another.
GetHashCode()
Serves as a hash function for a particular type.
Operators
operator !=(Border, Border)
Determines whether the specified borders are different.
operator ==(Border, Border)
Determines whether the specified borders are equal.