|
|
|
|
|
SftPrintPreviewPrinter.Form Method |
Returns the name of the paper size.
Syntax
|
VB.NET |
Name = object.Form(ByVal Index As Integer) As String |
||
|
VB |
Name = object.Form(ByVal Index As Integer) As String |
||
|
C#.NET |
string Name = object.Form(int Index); |
||
|
VC++ |
_bstr_t* Name = object->Form(int Index); |
||
|
C |
HRESULT object->raw_Form(int Index, BSTR* Name); |
||
|
Delphi |
Name := object.Form(Index : Integer) : WideString; |
object
A SftPrintPreviewPrinter object.
Index
The zero-based index of the requested paper size.
Name
Returns the name of the paper size.
Comments
The Form method returns the name of the paper size.
The total number of available paper sizes for the current printer can be retrieved using the Printer.FormCount property.
The Printer.FormValue property can be used to retrieve the equivalent form value as used by the device driver and the Windows DEVMODE structure.
The Printer.FormHeight and Printer.FormWidth can be used to determine the actual paper size.
The Printer.PaperSize and Printer.PaperSizeValue properties can be used to define the paper size used for the current printer.