Share via


OnInsert Method

Sets the object properties when adding a new object to the collection.

Syntax

Visual Basic Overrides  Protected   Sub 
OnInsert(
        ByVal index As int,
        ByVal oNode As object
)
C# protected   override void 
OnInsert(
        int index,
        object oNode
);
Managed C++ protected:  void 
OnInsert(
        int index,
        object oNode
);
JScript protected   override function
OnInsert(
        index : int,
        oNode : object
);

Parameters

index Required. int. The index of the node being inserted.
oNode Required. The object being inserted into the collection.

Return Value

No return value.

Applies To

ToolbarCheckButtonCollection, ToolbarItemCollection, TreeNodeCollection, TreeNodeTypeCollection

See Also

Internet Explorer WebControls, About the Toolbar WebControl, About the TreeView WebControl