Gets or sets the width, in twips, of a text frame's border line. To alter the distance between the border line and the text, use the InternalMargins property. If this property is set to zero, the text frame has no border line.

Syntax

public int BorderWidth { get; set; }
Public Property BorderWidth() As Integer

Examples

The following example uses the BorderWidth property and sets its value to 0 so that the text frame has no border line.

TXTextControl.TextFrame myFrame = new TXTextControl.TextFrame(new System.Drawing.Size(3000, 2000));
myFrame.BackColor   = System.Drawing.Color.Blue;
myFrame.BorderWidth = 0;

textControl1.TextFrames.Add(myFrame, -1);
Dim MyFrame As New TXTextControl.TextFrame(New System.Drawing.Size(3000, 2000))

MyFrame.BackColor   = System.Drawing.Color.Blue
MyFrame.BorderWidth = 0

TextControl1.TextFrames.Add(MyFrame, -1)