Width 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 width of a document or document section. The measure depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property.
Syntax
public double Width { get; set; }Public Property Width As DoubleExamples
The following example configures page size for the current document by using PageSize.Width.
PageSize pageSize = textControl.PageSize;
pageSize.Width = 1.0;
Console.WriteLine($"Width used by Page Size: {pageSize.Width}");
pageSize.Width = 12240;
pageSize.Height = 15840;Dim pageSize As PageSize = textControl.PageSize
pageSize.Width = 1.0
Console.WriteLine($"Width used by Page Size: {pageSize.Width}")
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 width's default value is 8.5 inch.
The property returns its default value when the text selection contains multiple sections with mixed page widths. The Selection.IsCommonValueSelected method can be used to check for mixed attributes.