|
|
|
|
|
SftPrintPreviewPrinter.Media Method |
Returns the names of supported media types.
Syntax
|
VB.NET |
Name = object.Media(ByVal Index As Integer) As String |
||
|
VB |
Name = object.Media(ByVal Index As Integer) As String |
||
|
C#.NET |
string Name = object.Media(int Index); |
||
|
VC++ |
_bstr_t* Name = object->Media(int Index); |
||
|
C |
HRESULT object->raw_Media(int Index, BSTR* Name); |
||
|
Delphi |
Name := object.Media(Index : Integer) : WideString; |
object
A SftPrintPreviewPrinter object.
Index
The zero-based index of the requested media.
Name
Returns the names of supported media types.
Comments
The Media method returns the names of supported media types.
This method is only functional on Windows XP and better.
The total number of supported media types for the current printer can be retrieved using the Printer.MediaCount property.
The Printer.MediaValue property can be used to retrieve the equivalent media type value.