BorderStyle Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the style of a text frame's border line.
Syntax
public FrameStyle BorderStyle { get; set; }Public Property BorderStyle As FrameStyleMembers
| Value | Description |
|---|---|
| Single | The text frame's border line is a single line. |
| Double | The text frame's border line is a double line. |
Examples
The following example applies bold formatting through the text frame's selection by using TextFrame.BorderStyle.
Selection formattedSelection = textFrame.Selection;
formattedSelection.Bold = true;
textFrame.Selection = formattedSelection;
textFrame.BorderStyle = TXTextControl.FrameStyle.Single;
Console.WriteLine($"Border Style used by Text Frame: {textFrame.BorderStyle}");Dim formattedSelection As Selection = textFrame.Selection
formattedSelection.Bold = True
textFrame.Selection = formattedSelection
textFrame.BorderStyle = TXTextControl.FrameStyle.Single
Console.WriteLine($"Border Style used by Text Frame: {textFrame.BorderStyle}")Remarks
The property's default value is FrameStyle.Single.