Gets the width and height of the loaded document's pages. If the document does not contain a page size the Width and Height is set to 0.

Syntax

public System.Drawing.Size PageSize { get; }
Public ReadOnly Property PageSize() As System.Drawing.Size

Examples

This example demonstrates an easy use of the 'TXTextControl.LoadSettings.PageSize' property. Here, it is stored in a variable of the type 'TXTextControl.PageSize'.

TXTextControl.LoadSettings ls = new TXTextControl.LoadSettings();
TXTextControl.PageSize myPageSize = ls.PageSize; 

if (myPageSize.Height == 0 && myPageSize.Width == 0) {
    System.Windows.Forms.MessageBox.Show("This document does not contain any page size(s)!");
}//else....
Dim ls As TXTextControl.LoadSettings = New TXTextControl.LoadSettings()
Dim myPageSize As TXTextControl.PageSize = ls.PageSize

If myPageSize.Height = 0 AndAlso myPageSize.Width = 0 Then
    System.Windows.Forms.MessageBox.Show("This document does not contain any page size(s)!")
End If
'...

Limitations

Read only.