|
|
|
|
|
SftPrintPreview.GetPageArea Method |
Returns the area of the displayed page (in pixels).
Syntax
|
VB.NET |
object.GetPageArea(ByVal PageNumber As Integer, ByRef left As Integer, ByRef top As Integer, ByRef width As Integer, ByRef height As Integer) |
||
|
VB |
object.GetPageArea(ByVal PageNumber As Long, left As Long, top As Long, width As Long, height As Long) |
||
|
C#.NET |
void object.GetPageArea(int PageNumber, out int left, out int top, out int width, out int height); |
||
|
VC++ |
HRESULT object->GetPageArea(long PageNumber, long* left, long* top, long* width, long* height); |
||
|
C |
HRESULT object->raw_GetPageArea(long PageNumber, long* left, long* top, long* width, long* height); |
||
|
Delphi |
procedure object.GetPageArea(PageNumber : Integer, out left : Integer, out top : Integer, out width : Integer, out height : Integer); |
object
A SftPrintPreview object.
PageNumber
The zero-based, relative page number of a multi-page preview display or 0 for a single-page display.
left
Returns the horizontal starting position in pixels of the requested page relative to the top, left corner of the control client area.
top
Returns the vertical starting position in pixels of the requested page relative to the top, left corner of the control client area.
width
Returns the width in pixels of the requested page.
height
Returns the height in pixels of the requested page.
Comments
The GetPageArea method returns the area of the displayed page (in pixels).
The GetPageArea method is used to retrieve the position and size of pages in preview mode. To determine the page at a specific location, use the HitTest method instead.