Class Borders
Represents the Borders class
Namespace: Syncfusion.Windows.Controls.RichTextBoxAdv
Assembly: Syncfusion.SfRichTextBoxAdv.WPF.dll
Syntax
public sealed class Borders : BaseNodeConstructors
Borders()
Initializes a new instance of the Borders class.
Declaration
public Borders()Borders(BaseNode)
Declaration
public Borders(BaseNode baseNode)Parameters
| Type | Name | Description | 
|---|---|---|
| BaseNode | baseNode | The owner of the Borders. It can be an instance of TableFormat, RowFormat or  | 
Fields
BottomProperty
Identifies the Bottom dependency property.
Declaration
public static readonly DependencyProperty BottomPropertyField Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | The identifier for the Bottom dependency property. | 
DiagonalDownProperty
Identifies the Diagonal down dependency property.
Declaration
public static readonly DependencyProperty DiagonalDownPropertyField Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | The identifier for the Diagonal down dependency property. | 
DiagonalUpProperty
Identifies the Diagonal up dependency property.
Declaration
public static readonly DependencyProperty DiagonalUpPropertyField Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | The identifier for the Diagonal up dependency property. | 
HorizontalProperty
Identifies the Horizontal dependency property.
Declaration
public static readonly DependencyProperty HorizontalPropertyField Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | The identifier for the Horizontal dependency property. | 
LeftProperty
Identifies the Left dependency property.
Declaration
public static readonly DependencyProperty LeftPropertyField Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | The identifier for the Left dependency property. | 
RightProperty
Identifies the Right dependency property.
Declaration
public static readonly DependencyProperty RightPropertyField Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | The identifier for the Right dependency property. | 
TopProperty
Identifies the Top dependency property.
Declaration
public static readonly DependencyProperty TopPropertyField Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | The identifier for the Top dependency property. | 
VerticalProperty
Identifies the Vertical dependency property.
Declaration
public static readonly DependencyProperty VerticalPropertyField Value
| Type | Description | 
|---|---|
| System.Windows.DependencyProperty | The identifier for the Vertical dependency property. | 
Properties
Bottom
Gets or sets the bottom Bottom.
Declaration
public Border Bottom { get; set; }Property Value
| Type | Description | 
|---|---|
| Border | The bottomBorder. | 
Examples
The following code example demonstrates how to define the bottom border.
<!-- Defines the bottom border. --> 
        <RichTextBoxAdv:Borders>
        <RichTextBoxAdv:Borders.bottom>
        <RichTextBoxAdv:Border LineStyle="Single"/>
        </RichTextBoxAdv:Borders.bottom>
        </RichTextBoxAdv:Borders>
    <!-- Define the bottom border. --> // Defines the bottom border.
 Borders borders = new Borders();
 Border bottom = new Border();
 bottom.LineStyle = LineStyle.Single;
 borders.Bottom = bottom;
 // Defines the bottom border.' Defines the bottom border.
 Dim border As New Borders()
 Dim bottom As New Border()
 bottom.LineStyle = LineStyle.Single
 borders.Bottom = bottom
 'Defines the bottom border.DiagonalDown
Gets or sets the diagonal down Border.
Declaration
public Border DiagonalDown { get; set; }Property Value
| Type | Description | 
|---|---|
| Border | The diagonal down Border. | 
Examples
The following code example demonstrates how to define the diagonal down border.
<!-- Defines the diagonal down border. --> 
        <RichTextBoxAdv:Borders>
        <RichTextBoxAdv:Borders.diagonalDown>
        <RichTextBoxAdv:Border LineStyle="Single"/>
        </RichTextBoxAdv:Borders.diagonalDown>
        </RichTextBoxAdv:Borders>
    <!-- Define the diagonal down border. --> // Defines the diagonal down border.
 Borders borders = new Borders();
 Border diagonalDown = new Border();
 diagonalDown.LineStyle = LineStyle.Single;
 borders.DiagonalDown = diagonalDown;
 // Defines the diagonal down border.' Defines the diagonal down border.
 Dim borders As New Borders()
 Dim diagonalDown As New Border()
 diagonalDown.LineStyle = LineStyle.Single
 borders.DiagonalDown = diagonalDown
 'Defines the diagonal down  border.DiagonalUp
Gets or sets the diagonal up Border.
Declaration
public Border DiagonalUp { get; set; }Property Value
| Type | Description | 
|---|---|
| Border | The diagonal up Border. | 
Examples
The following code example demonstrates how to define the diagonal up border.
<!-- Defines the diagonal up border. --> 
        <RichTextBoxAdv:Borders>
        <RichTextBoxAdv:Borders.diagonalUp>
        <RichTextBoxAdv:Border LineStyle="Single"/>
        </RichTextBoxAdv:Borders.diagonalUp>
        </RichTextBoxAdv:Borders>
    <!-- Define the diagonal up border. --> // Defines the diagonal up  border.
 Borders borders = new Borders();
 Border diagonalUp = new Border();
 diagonalUp.LineStyle = LineStyle.Single;
 borders.DiagonalUp = diagonalUp;
 // Defines the diagonal up border.' Defines the diagonal up border.
 Dim borders As New Borders()
 Dim diagonalUp As New Border()
 diagonalUp.LineStyle = LineStyle.Single
 borders.DiagonalUp = diagonalUp
 'Defines the diagonal up  border.Horizontal
Gets or sets the horizontal Border.
Declaration
public Border Horizontal { get; set; }Property Value
| Type | Description | 
|---|---|
| Border | The horizontal Border. | 
Examples
The following code example demonstrates how to define the horizontal border.
<!-- Defines the horizontal border. --> 
        <RichTextBoxAdv:Borders>
        <RichTextBoxAdv:Borders.horizontal>
        <RichTextBoxAdv:Border LineStyle="Single"/>
        </RichTextBoxAdv:Borders.horizontal>
        </RichTextBoxAdv:Borders>
    <!-- Define the horizontal border. --> // Defines the horizontal border.
 Borders borders = new Borders();
 Border horizontal = new Border();
 horizontal.LineStyle = LineStyle.Single;
 borders.Horizontal = horizontal;
 // Defines the horizontal border.' Defines the horizontal border.
 Dim borders As New Borders()
 Dim horizontal As New Border()
 horizontal.LineStyle = LineStyle.Single
 borders.Horizontal = horizontal
 'Defines the horizontal border.Left
Gets or sets the left Border.
Declaration
public Border Left { get; set; }Property Value
| Type | Description | 
|---|---|
| Border | The left Border.. | 
Examples
The following code example demonstrates how to define the left border.
<!-- Defines the left border. --> 
        <RichTextBoxAdv:Borders>
        <RichTextBoxAdv:Borders.Left>
        <RichTextBoxAdv:Border LineStyle="Single"/>
        </RichTextBoxAdv:Borders.Left>
        </RichTextBoxAdv:Borders>
    <!-- Define the left border. --> // Defines the left border.
 Borders borders = new Borders();
 Border left = new Border();
 left.LineStyle = LineStyle.Single;
 borders.Left = left;
 // Defines the left border.' Defines the left border.
 Dim borders As New Borders()
 Dim left As New Border()
 left.LineStyle = LineStyle.Single
 borders.Left = left
 'Defines the left border.Right
Gets or sets the right Border.
Declaration
public Border Right { get; set; }Property Value
| Type | Description | 
|---|---|
| Border | The right Border. | 
Examples
The following code example demonstrates how to define the right border.
<!-- Defines the right border. --> 
        <RichTextBoxAdv:Borders>
        <RichTextBoxAdv:Borders.right>
        <RichTextBoxAdv:Border LineStyle="Single"/>
        </RichTextBoxAdv:Borders.right>
        </RichTextBoxAdv:Borders>
    <!-- Define the right borders. --> // Defines the right border.
 Borders borders = new Borders();
 Border right = new Border();
 right.LineStyle = LineStyle.Single;
 borders.Right = right;
 // Defines the right border.' Defines the right border.
 Dim borders As New Borders()
 Dim right As New Border()
 right.LineStyle = LineStyle.Single
 borders.Right = right
 'Defines the right border .Top
Gets or sets the top Border.
Declaration
public Border Top { get; set; }Property Value
| Type | Description | 
|---|---|
| Border | The top Border. | 
Examples
The following code example demonstrates how to define the top border.
<!-- Defines the top border. --> 
        <RichTextBoxAdv:Borders>
        <RichTextBoxAdv:Borders.top>
        <RichTextBoxAdv:Border LineStyle="Single"/>
        </RichTextBoxAdv:Borders.top>
        </RichTextBoxAdv:Borders>
    <!-- Define the top border. --> // Defines the top border.
 Borders borders = new Borders();
 Border top = new Border();
 top.LineStyle = LineStyle.Single;
 borders.Top = top;
 // Defines the top border.' Defines the top border.
 Dim borders As New Borders()
 Dim top As New Border()
 top.LineStyle = LineStyle.Single
 borders.Top = top
 'Defines the top border.Vertical
Gets or sets the vertical Border.
Declaration
public Border Vertical { get; set; }Property Value
| Type | Description | 
|---|---|
| Border | The vertical Border. | 
Examples
The following code example demonstrates how to define the vertical border.
<!-- Defines the vertical border. --> 
        <RichTextBoxAdv:Borders>
        <RichTextBoxAdv:Borders.vertical>
        <RichTextBoxAdv:Border LineStyle="Single"/>
        </RichTextBoxAdv:Borders.vertical>
        </RichTextBoxAdv:Borders>
    <!-- Define the vertical border. --> // Defines the vertical border.
 Borders borders = new Borders();
 Border vertical = new Border();
 vertical.LineStyle = LineStyle.Single;
 borders.Vertical = vertical;
 // Defines the vertical border.' Defines the vertical border.
 Dim borders As New Borders()
 Dim vertical As New Border()
 vertical.LineStyle = LineStyle.Single
 borders.Vertical = vertical
 'Defines the vertical border.