Hide

SftOptions 1.0 - ActiveX Options Control

Display
Print

SftOptions.Direct Property

Returns an ISftOptionsVTable interface pointer.

Syntax

Get

VB.NETrefSftOptionsVObj = object.Direct As ISftOptionsVTable
VBSet refSftOptionsVObj = object.Direct As SftOptionsVTable
C#.NETISftOptionsVTable refSftOptionsVObj = object.Direct;
VC++ISftOptionsVTable* refSftOptionsVObj = object->Direct;
ISftOptionsVTable* refSftOptionsVObj = object->GetDirect();
CHRESULT object->get_Direct(ISftOptionsVTable** refSftOptionsVObj);

object

A SftOptions object.

refSftOptionsVObj

Defines optional product customization.

Comments

The Direct property returns an ISftOptionsVTable interface pointer.

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

Any SftOptions control that is used with Visual Basic should use the ISftOptionsVTable interface if performance is important. Visual Basic uses vtable binding for all other SftOptions objects (such as Header, IO, etc.). Visual Basic will however use dispatch interface binding for the control object (SftOptions class).

The ISftOptionsVTable interface exposes all properties and methods that are supported by the SftOptions object and is identical to the ISftOptions interface.

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

Example

With SftOptions1.Direct
	.BulkUpdate = True
	.Add "", "Topic1", "Sample Topic 1", entrySftOptionsTopic, "", "", _
		Nothing, "", "", "", ""
	.Add "", "Topic2", "Sample Topic 2", entrySftOptionsTopic, "", "", _
		Nothing, "", "", "", ""
	.BulkUpdate = False
	.InitializationComplete
End With

See Also SftOptions Object | Object Hierarchy


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