TX Text Control .NET for Windows Forms

FrameLineWidth Property

Property|Introduced in 24.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WinForms.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

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

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.");
}

Remarks

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.