TX Text Control .NET for WPF

Width Property

Property|Introduced in 24.0
Namespace
TXTextControl
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.dll from the private NuGet feed or Text Control Offline Packages

Description

Gets the width of the paper size, in twips. The value of this property is the width (x-dimension) of the paper size as if the paper were in the portrait orientation.

Syntax

public int Width { get; }

Examples

The following example uses the A4 paper width when configuring the first document section.

PaperSize paperSize = textControl.GetSupportedPaperSizes()
    .First(size => size.Name.Contains("A4", StringComparison.OrdinalIgnoreCase));
textControl.Sections[1].Format.PageSize.Width = paperSize.Width;

Limitations

Read only.