PageSize Constructor
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WPF. SDK TXTextControl.from the private NuGet feed or Text Control Offline Packagesdll
Description
Creates a new instance of the PageSize class. The measure for the width and height parameters depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property.
Syntax
PageSize()
Creates a new PageSize object representing an US Letter page size (8.5 x 11 inch).
public PageSize();Public Sub New()PageSize(double, double)
Creates a new PageSize object representing a page size with the specified width and height. The measure for the width and height parameters depends on the TextControl.PageUnit, WPF.TextControl.PageUnit or ServerTextControl.PageUnit property.
public PageSize(double width, double height);Public Sub New(width As Double, height As Double)| Parameter | Description |
|---|---|
| width | Specifies the width of the page. |
| height | Specifies the height of the page. |
PageSize(SerializationInfo, StreamingContext)
protected PageSize(SerializationInfo info, StreamingContext context);Protected Sub New(info As SerializationInfo, context As StreamingContext)Examples
The following example creates a Page Size instance and configures its width setting for a document workflow.
PageSize pageSize = new();
pageSize.Width = 1.0;Dim pageSize As New PageSize()
pageSize.Width = 1.0