Hide

SftPrintPreview/OCX 1.0 - ActiveX Print Preview Control

Display
Print

SftPrintPreview.GetPageArea Method

Returns the area of the displayed page (in pixels).

Syntax

VB.NETobject.GetPageArea(ByVal PageNumber As Integer, ByRef left As Integer, ByRef top As Integer, ByRef width As Integer, ByRef height As Integer)
VBobject.GetPageArea(ByVal PageNumber As Long, left As Long, top As Long, width As Long, height As Long)
C#.NETvoid 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);
CHRESULT object->raw_GetPageArea(long PageNumber, long* left, long* top, long* width, long* height);

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.

See Also SftPrintPreview Object | Object Hierarchy


Last Updated 08/13/2020 - (email)
© 2024 Softel vdm, Inc.