WebPartAdder.SelectorCollection.InsertItem Method

Inserts a WebPartAdder.Selector object in the WebPartAdder.SelectorCollection at the specified index.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Protected Overrides Sub InsertItem ( _
    index As Integer, _
    item As WebPartAdder.Selector _
)
'Usage
Dim index As Integer
Dim item As WebPartAdder.Selector

Me.InsertItem(index, item)
protected override void InsertItem(
    int index,
    WebPartAdder.Selector item
)

Parameters

  • index
    Type: System.Int32

    The zero-based index at which item should be inserted.

Remarks

This override ensures that item is valid, and then calls the corresponding method of the base class to insert it into the WebPartAdder.SelectorCollection.

See Also

Reference

WebPartAdder.SelectorCollection Class

WebPartAdder.SelectorCollection Members

Microsoft.SharePoint.WebPartPages Namespace