Limitations
Read only.
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.
public System.Drawing.Size PageSize { get; }
Public ReadOnly Property PageSize() As System.Drawing.Size
This example demonstrates an easy use of the 'TXText
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
'...
Read only.