FrameLineWidth Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets or sets the line width, in twips, of the paragraph's or table's frame at the current input position. If text is selected, the property specifies the line width of the whole selected text.
Syntax
public int? FrameLineWidth { get; set; }Public Property FrameLineWidth As Integer?Examples
The following example changes the formatting applied to text entered at the end of a document by using InputFormat.FrameLineWidth.
textControl.Text = "Project summary";
textControl.InputPosition = new InputPosition(textControl.Text.Length);
InputFormat inputFormat = textControl.InputFormat;
inputFormat.FrameLineWidth = 100;
if (inputFormat.FrameLineWidth != null)
{
Console.WriteLine("Input Format: Frame Line Width is available.");
}textControl.Text = "Project summary"
textControl.InputPosition = New InputPosition(textControl.Text.Length)
Dim inputFormat As InputFormat = textControl.InputFormat
inputFormat.FrameLineWidth = 100
If inputFormat.FrameLineWidth IsNot Nothing Then
Console.WriteLine("Input Format: Frame Line Width is available.")
End IfRemarks
The property returns null when the text selection contains multiple paragraphs or table cells with different frames.
The WPF.MeasureConverter can be used to convert the property value to another measuring unit.