Width Property
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Gets the width of the paper size, in twips. The value of this property is the width (x-dimension) of the paper size as if the paper were in the portrait orientation.
Syntax
public int Width { get; }Public ReadOnly Property Width As IntegerExamples
The following example uses the A4 paper width when configuring the first document section.
PaperSize paperSize = textControl.GetSupportedPaperSizes()
.First(size => size.Name.Contains("A4", StringComparison.OrdinalIgnoreCase));
textControl.Sections[1].Format.PageSize.Width = paperSize.Width;Dim paperSize As PaperSize = textControl.GetSupportedPaperSizes().
First(Function(size) size.Name.IndexOf("A4", StringComparison.OrdinalIgnoreCase) >= 0)
textControl.Sections(1).Format.PageSize.Width = paperSize.WidthLimitations
Read only.