Hide

SftPrintPreview/OCX 1.0 - ActiveX Print Preview Control

Display
Print

SftPrintPreview.Direct Property

Returns an ISftPrintPreviewVTable interface pointer.

Syntax

Get

VB.NETrefSftPrintPreviewVObj = object.Direct As ISftPrintPreviewVTable
VBSet refSftPrintPreviewVObj = object.Direct As SftPrintPreviewVTable
C#.NETISftPrintPreviewVTable refSftPrintPreviewVObj = object.Direct;
VC++ISftPrintPreviewVTable* refSftPrintPreviewVObj = object->Direct;
ISftPrintPreviewVTable* refSftPrintPreviewVObj = object->GetDirect();
CHRESULT object->get_Direct(ISftPrintPreviewVTable** refSftPrintPreviewVObj);

object

A SftPrintPreview object.

refSftPrintPreviewVObj

Returns an ISftPrintPreviewVTable interface pointer.

Comments

The Direct property returns an ISftPrintPreviewVTable interface pointer.

The ISftPrintPreviewVTable interface describes a SftPrintPreview object (i.e. the control itself). It is used in Visual Basic to insure that vtable binding is used. Visual Basic uses dispatch interface (early and late) binding when a SftPrintPreview object is used (i.e. the control). By retrieving the ISftPrintPreviewVTable interface, Visual Basic can use vtable binding which is significantly faster than any form of dispatch interface binding.

Any SftPrintPreview/OCX control that is used with Visual Basic should use the ISftPrintPreviewVTable interface if performance is important. Visual Basic uses vtable binding for all other SftPrintPreview objects (such as SftPrintPreviewPrinter, etc.). Visual Basic will however use dispatch interface binding for the control object (SftPrintPreview).

The ISftPrintPreviewVTable interface exposes all properties and methods that are supported by the SftPrintPreview object.

Other languages (such as C++) can use the SftPrintPreview object directly and do not need to retrieve the ISftPrintPreviewVTable interface. The ISftPrintPreview interface which implements the SftPrintPreview object is a dual interface.

See Also SftPrintPreview Object | Object Hierarchy


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