TX Text Control .NET Server

Left 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

Specifies the left margin of a TX Text Control document or document section. The measure depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property.

Syntax

public double Left { get; set; }

Examples

The following example configures page margins for the current document by using PageMargins.Left.

PageMargins pageMargins = textControl.PageMargins;

pageMargins.Left = 1.0;
Console.WriteLine($"Left used by Page Margins: {pageMargins.Left}");

pageMargins.Left = 1440;
pageMargins.Right = 1440;

Remarks

The margin's default value is 1 inch.

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

Further Reading

  • Inserting Columns Programmatically Using TX Text Control .NET –
  • Landscape Printing with a PrintDocument –
  • Printing into a PrintDocument –