TX Text Control .NET for Windows Forms

LeftLineWidth Property

Property|Introduced in 17.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 width of the left border line. If this property's value is zero, there is no left border line. Otherwise it is a value in twips.

Syntax

public int LeftLineWidth { get; set; }

Examples

The following example configures the page border of the first document section by using PageBorder.LeftLineWidth.

PageBorder pageBorder = textControl.Sections[1].Format.PageBorder;

pageBorder.LeftLineWidth = 100;
Console.WriteLine($"Left Line Width used by Page Border: {pageBorder.LeftLineWidth}");

Remarks

The property's default value is 0.

The property returns its default value when the text selection contains multiple sections with mixed setting. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.