Partager via


AccelTables.AddAtID Method

Visio Automation Reference

Creates a new object with a specified ID in a collection.

Version Information
 Version Added:  Visio 4.0

Syntax

expression.AddAtID(lID)

expression   A variable that represents an AccelTables object.

Parameters

Name Required/Optional Data Type Description
lID Required Long The window context for the new object.

Return Value
AccelTable

Remarks

The ID corresponds to a window or context menu. If the collection already contains an object at the specified ID, the AddAtID method returns an error.

Valid IDs are declared by the Visio type library in member VisUIObjSets. Not all collections include an object for every possible ID.

See Also