SftTree/OCX 7.0

SftTree.Direct Property

Softel vdm, Inc.

Returns an ISftTreeVTable interface pointer.

Syntax       

Get

VB.NET

refSftTreeVObj = object.Direct  As ISftTreeVTable

VB

Set refSftTreeVObj = object.Direct  As SftTreeVTable

C#.NET

ISftTreeVTable refSftTreeVObj = object.Direct;

VC++

ISftTreeVTable* refSftTreeVObj = object->Direct;
ISftTreeVTable* refSftTreeVObj = object->GetDirect();

C

HRESULT object->get_Direct(ISftTreeVTable** refSftTreeVObj);

Delphi

refSftTreeVObj := object.Direct  : ISftTreeVTable;

object

A SftTree object.

refSftTreeVObj

Returns an ISftTreeVTable interface pointer.

Comments

The Direct property returns an ISftTreeVTable interface pointer.

The ISftTreeVTable interface describes a SftTree 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 SftTree object is used (i.e. the control).  By retrieving the ISftTreeVTable interface, Visual Basic can use vtable binding which is significantly faster than any form of dispatch interface binding.

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

The ISftTreeVTable interface exposes all properties and methods that are supported by the SftTree object.

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

See Also  SftTree Object | Object Hierarchy


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