SftPrintPreview/OCX 1.0

SftPrintPreviewPrinter.Orientation Property

Softel vdm, Inc.

Defines the orientation of the paper.

Syntax       

Get

VB.NET

Style = object.Orientation  As SftPrintPreviewOrientationConstants

VB

Style = object.Orientation  As SftPrintPreviewOrientationConstants

C#.NET

SftPrintPreviewOrientationConstants Style = object.Orientation;

VC++

enum SftPrintPreviewOrientationConstants Style = object->Orientation;
enum SftPrintPreviewOrientationConstants Style = object->GetOrientation();

C

HRESULT object->get_Orientation(enum SftPrintPreviewOrientationConstants* Style);

Delphi

Style := object.Orientation  : TOleEnum;

Put

VB.NET

object.Orientation = Style  As SftPrintPreviewOrientationConstants

VB

object.Orientation = Style  As SftPrintPreviewOrientationConstants

C#.NET

SftPrintPreviewOrientationConstants object.Orientation = Style;

VC++

enum SftPrintPreviewOrientationConstants object->Orientation = Style;
void object->PutOrientation(enum SftPrintPreviewOrientationConstants Style);

C

HRESULT object->put_Orientation(enum SftPrintPreviewOrientationConstants Style);

Delphi

object.Orientation := Style  : TOleEnum;

object

A SftPrintPreviewPrinter object.

Style

Defines the orientation of the paper.

Name

Value

Description

orientationSftPrintPreviewPortrait

1

Portrait

orientationSftPrintPreviewLandscape

2

Landscape

Comments

The Orientation property defines the orientation of the paper.

The Printer.OrientationRotation property can be used to determine the direction of the rotation to produce landscape orientation.


Feedback / comments / error reports for this topic
© 2004 - Softel vdm, Inc. - www.windowscontrols.com