PageSize 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 or sets the section's page size. The width and height are always the values in portrait orientation.
Syntax
public PageSize PageSize { get; set; }Public Property PageSize As PageSizeExamples
The following example configures the layout of the first document section by using SectionFormat.PageSize.
SectionFormat sectionFormat = textControl.Sections[1].Format;
sectionFormat.PageSize = new PageSize();
if (sectionFormat.PageSize != null)
{
Console.WriteLine("Section Format: Page Size is available.");
}Dim sectionFormat As SectionFormat = textControl.Sections(1).Format
sectionFormat.PageSize = New PageSize()
If sectionFormat.PageSize IsNot Nothing Then
Console.WriteLine("Section Format: Page Size is available.")
End IfRemarks
The property returns a width and a height of zero when the text selection contains multiple sections with mixed sizes. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.