GetSupportedPaperSizes Method
- Namespace
TXTextControl
- Package
TXTextControl.asTextControl. WinForms. SDK TXTextControl.from the private NuGet feed or Text Control Offline PackagesWindows. Forms. dll
Description
Gets an array of PaperSize structures specifying the names and the size of all currently supported paper sizes. These paper sizes depend on the formatting device set with the TextControl.FormattingPrinter property. The method returns null, if the TextControl has not been completely initialized.
Syntax
public PaperSize[] GetSupportedPaperSizes();Public Function GetSupportedPaperSizes() As PaperSize()Examples
The following example retrieves supported paper sizes from the text control.
PaperSize[] results = textControl.GetSupportedPaperSizes();
foreach (PaperSize paperSize in results)
{
Console.WriteLine(paperSize);
}Dim results As PaperSize() = textControl.GetSupportedPaperSizes()
For Each paperSize As PaperSize In results
Console.WriteLine(paperSize)
Next