TX Text Control .NET for Windows Forms

PageUnit Property

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

Description

Gets or sets the measure used for page sizes and page margins.

Syntax

public MeasuringUnit PageUnit { get; set; }

Members

ValueDescription
MillimeterThe measure for page sizes and page margins is millimeter.
CentiInchThe measure for page sizes and page margins is 1/100th inch.
StandardWPFThe measure for page sizes and page margins is 1/96th inch.
TwipsThe measure for page sizes and page margins is Twips (1/1440th inch). This is the internally used TXTextControl measure.

Examples

The following example uses TextControl.PageUnit to configure page unit as part of the text control workflow. The change is then applied to the active document or user interface.

textControl.PageUnit = MeasuringUnit.CentiInch;
textControl.Update();