TX Text Control .NET for Windows Forms

Height Property

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

Description

Specifies the page height of a document or document section. The measure depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property.

Syntax

public double Height { get; set; }

Examples

The following example configures page size for the current document by using PageSize.Height.

PageSize pageSize = textControl.PageSize;

pageSize.Height = 1.0;
Console.WriteLine($"Height used by Page Size: {pageSize.Height}");

pageSize.Width = 12240;
pageSize.Height = 15840;

Limitations

The maximum value depends on the capabilities of the selected printer and must not exceed 22.75 inch.

Remarks

The height's default value is 11 inch.

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