Height Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. Core. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesCore. dll
- Also in
TXTextControl.asTextControl. ASP. SDK TXTextControl.dll
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; }Public Property Height As DoubleExamples
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;Dim pageSize As PageSize = textControl.PageSize
pageSize.Height = 1.0
Console.WriteLine($"Height used by Page Size: {pageSize.Height}")
pageSize.Width = 12240
pageSize.Height = 15840Limitations
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.