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; }

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);