Class Border
Represents the Border class.
Namespace: Syncfusion.Windows.Controls.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.WPF.dll
Syntax
public sealed class Border : BaseNodeConstructors
Border()
Initializes a new instance of the Border class.
Declaration
public Border()Border(BaseNode)
Declaration
public Border(BaseNode baseNode)Parameters
| Type | Name | Description | 
|---|---|---|
| BaseNode | baseNode | It can be an instance of Borders. | 
Fields
ColorProperty
Identifies the Color dependency property.
Declaration
public static readonly DependencyProperty ColorPropertyField Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | The identifier for the Color dependency property. | 
LineStyleProperty
Identifies the LineStyle dependency property.
Declaration
public static readonly DependencyProperty LineStylePropertyField Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | The identifier for the LineStyle dependency property. | 
LineWidthProperty
Identifies the LineWidth dependency property.
Declaration
public static readonly DependencyProperty LineWidthPropertyField Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | The identifier for the LineWidth dependency property. | 
Properties
Color
Gets or sets the Color
Declaration
public Color Color { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Windows.Media.Color | The color for the border. | 
Examples
The following code example demonstrates how to define the color for the border.
<!-- Defines the color of the border. --> 
        <RichTextBoxAdv:Borders>
        <RichTextBoxAdv:Borders.Left>
        <RichTextBoxAdv:Border Color="#FF000000"/>
        </RichTextBoxAdv:Borders.Left>
        </RichTextBoxAdv:Borders>
    <!-- Define the color for the border. --> // Defines the color for the border.
 Borders borders = new Borders();
 Border left = new Border();
 left.Color = Color.FromRgb(0xFF, 0x90, 0xEE);
 borders.Left = left;
 // Defines the color for the border.' Defines the color for the border.
 Dim borders As New Borders()
 Dim left As New Border()
 left.Color = Color.FromRgb(0xFF, 0x90, 0xEE)
 borders.Left = left
 'Defines the color for the border.LineStyle
Gets or sets the LineStyle.
Declaration
public LineStyle LineStyle { get; set; }Property Value
| Type | Description | 
|---|---|
| LineStyle | The line style for the border. | 
Examples
The following code example demonstrates how to define the line style for the border.
<!-- Defines the line style for the border. --> 
        <RichTextBoxAdv:Borders>
        <RichTextBoxAdv:Borders.Left>
        <RichTextBoxAdv:Border LineStyle="Single"/>
        </RichTextBoxAdv:Borders.Left>
        </RichTextBoxAdv:Borders>
    <!-- Define the line style for the border. --> // Defines the line style for the border.
 Borders borders = new Borders();
 Border left = new Border();
 left.LineStyle = LineStyle.Single;
 borders.Left = left;
 // Defines the line style for the border.' Defines the line style for the border.
 Dim borders As New Borders()
 Dim left As New Border()
 left.LineStyle = LineStyle.Single
 borders.Left = left
 'Defines line style for the border.LineWidth
Gets or sets the line width.
Declaration
public double LineWidth { get; set; }Property Value
| Type | Description | 
|---|---|
| System.Double | The line width for the border. | 
Examples
The following code example demonstrates how to define the line width for the border.
<!-- Defines the line width for the border. --> 
        <RichTextBoxAdv:Borders>
        <RichTextBoxAdv:Borders.Left>
        <RichTextBoxAdv:Border LineWidth="0.5"/>
        </RichTextBoxAdv:Borders.Left>
        </RichTextBoxAdv:Borders>
    <!-- Define the line width for the border. --> // Defines the line width for the border;
 Borders borders = new Borders();
 Border left = new Border();
 left.LineWidth = 0.5;
 borders.Left = left;
 // Defines the line  width for the border.' Defines the line width for the border.
 Dim borders As New Borders()
 Dim left As New Border()
 left.LineWidth = 0.5
 borders.Left = left
 'Defines line width for the border.