TX Text Control .NET Server

FrameLineWidth Property

Property
Namespace
TXTextControl
Package
TXTextControl.TextControl.Core.SDK as TXTextControl.Core.dll from the private NuGet feed or Text Control Offline Packages
Also in
TXTextControl.TextControl.ASP.SDK as TXTextControl.dll

Description

Gets or sets the line width, in twips, of the paragraph's frame.

Syntax

public int FrameLineWidth { get; set; }

Examples

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;

Remarks

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.