TX Text Control .NET for WPF

PageUnit Property

Property|Introduced in 16.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.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 configured value is checked before the workflow continues.

textControl.PageUnit = MeasuringUnit.CentiInch;
Console.WriteLine($"Page Unit used by Text Control: {textControl.PageUnit}");