New to Telerik Document ProcessingStart a free 30-day trial

Border

Class

Border settings for drawing outlines around elements, controlling line style, thickness, and color in document coordinates. Use to render frames consistently across pages and containers.

Definition

Namespace:Telerik.Windows.Documents.Fixed.Model.Editing

Assembly:Telerik.Windows.Documents.Fixed.dll

Syntax:

C#
public class Border

Inheritance: objectBorder

Constructors

Initializes a new instance of the Border class.

C#
public Border()

Initializes a new instance of the Border class.

C#
public Border(BorderStyle borderStyle)
Parameters:borderStyleBorderStyle

The border style.

Initializes a new instance of the Border class with the specified thickness, style, and color.

C#
public Border(double thickness, BorderStyle borderStyle, ColorBase color)
Parameters:thicknessdouble

The thickness of the border in device-independent units.

borderStyleBorderStyle

The visual style of the border (such as solid, dashed, dotted).

colorColorBase

The color of the border.

Initializes a new instance of the Border class.

C#
public Border(double thickness, ColorBase color)
Parameters:thicknessdouble

The thickness.

colorColorBase

The color.

Properties

Gets the visual style of the border.

C#
public BorderStyle BorderStyle { get; }
Property Value:

An enumeration value that specifies how the border is rendered (None, Single, Dotted, Dashed, etc.).

Gets the color of the border.

C#
public ColorBase Color { get; }
Property Value:

A ColorBase object that represents the color used to render the border.

Gets the border thickness in device-independent units.

C#
public double Thickness { get; }
Property Value:

A double value that represents the thickness of the border.