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
Gets the height of the paper size, in twips. The value of this property is the height (y-dimension) of the paper size as if the paper were in the portrait orientation.
Syntax
public int Height { get; }Public ReadOnly Property Height As IntegerExamples
The following example uses the A4 paper height when configuring the first document section.
PaperSize paperSize = textControl.GetSupportedPaperSizes()
.First(size => size.Name.Contains("A4", StringComparison.OrdinalIgnoreCase));
textControl.Sections[1].Format.PageSize.Height = paperSize.Height;Dim paperSize As PaperSize = textControl.GetSupportedPaperSizes().
First(Function(size) size.Name.IndexOf("A4", StringComparison.OrdinalIgnoreCase) >= 0)
textControl.Sections(1).Format.PageSize.Height = paperSize.HeightLimitations
Read only.