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 frame.
Syntax
public int FrameLineWidth { get; set; }Public Property FrameLineWidth As IntegerExamples
The following example applies paragraph layout to selected report text by using ParagraphFormat.FrameLineWidth.
textControl.Text = "First item\nSecond item\nThird item";
textControl.Select(0, textControl.Text.Length);
ParagraphFormat paragraphFormat = textControl.Selection.ParagraphFormat;
paragraphFormat.FrameLineWidth = 100;
Console.WriteLine($"Frame Line Width used by Paragraph Format: {paragraphFormat.FrameLineWidth}");
textControl.Selection.ParagraphFormat = paragraphFormat;textControl.Text = "First item" & vbCrLf & "Second item" & vbCrLf & "Third item"
textControl.Select(0, textControl.Text.Length)
Dim paragraphFormat As ParagraphFormat = textControl.Selection.ParagraphFormat
paragraphFormat.FrameLineWidth = 100
Console.WriteLine($"Frame Line Width used by Paragraph Format: {paragraphFormat.FrameLineWidth}")
textControl.Selection.ParagraphFormat = paragraphFormatRemarks
The property's default value is 15 twips (0.75 pt).
The property returns its default value when the text selection contains multiple paragraphs with mixed widths. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.