Border
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.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
Initializes a new instance of the Border class with the specified style and default thickness and color.
Initializes a new instance of the Border class with full appearance control including optional shadow, frame, and spacing effects.
public Border(double thickness, BorderStyle style, ThemableColor color, bool shadow, bool frame, double spacing)
The thickness.
styleBorderStyleThe style.
colorThemableColorThe color.
shadowboolThe shadow.
frameboolThe frame.
spacingdoubleThe spacing.
Initializes a new instance of the Border class with the specified thickness, style, and color.
public Border(double thickness, BorderStyle style, ThemableColor color)
The thickness.
styleBorderStyleThe style.
colorThemableColorThe color.
Properties
Gets the border color, which may reference a document theme color.
public ThemableColor Color { get; }
The color.
Gets a value indicating whether a frame effect is applied to the border.
public bool Frame { get; }
The frame.
Gets a value indicating whether a shadow effect is applied to the border.
public bool Shadow { get; }
The shadow.
Gets the spacing between the border and the content it surrounds, in device independent pixels.
public double Spacing { get; }
The spacing.
Gets the visual pattern of the border line.
public BorderStyle Style { get; }
The style.