|
|
|
|
|
SftPrintPreviewPrinter.FormWidth Method |
Returns the width of the paper.
Syntax
|
VB.NET |
Value = object.FormWidth(ByVal Index As Integer) As Integer |
||
|
VB |
Value = object.FormWidth(ByVal Index As Integer) As Integer |
||
|
C#.NET |
int Value = object.FormWidth(int Index); |
||
|
VC++ |
int* Value = object->FormWidth(int Index); |
||
|
C |
HRESULT object->raw_FormWidth(int Index, int* Value); |
||
|
Delphi |
Value := object.FormWidth(Index : Integer) : Integer; |
object
A SftPrintPreviewPrinter object.
Index
The zero-based index of the requested paper size.
Value
Returns the width of the paper in pixels (printer units, based on current printer resolution Printer.GetPrintResolution).
Comments
The FormWidth method returns the width of the paper.
The total number of available paper sizes for the current printer can be retrieved using the Printer.FormCount property.
The Printer.Form property can be used to retrieve the name of the form specified by Index.
The Printer.PaperSize and Printer.PaperSizeValue properties are used to define the paper size for the current printer.