TX Text Control .NET for WPF

GetSupportedPaperSizes Method

Method|Introduced in 24.0
Namespace
TXTextControl.WPF
Package
TXTextControl.TextControl.WPF.SDK as TXTextControl.WPF.dll from the private NuGet feed or Text Control Offline Packages

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 WPF.TextControl.FormattingPrinter property.

Syntax

public PaperSize[] GetSupportedPaperSizes();

Examples

The following example retrieves supported paper sizes from the text control.

PaperSize[] results = textControl.GetSupportedPaperSizes();
foreach (PaperSize paperSize in results)
{
    Console.WriteLine(paperSize);
}