Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Searches for the specified Web Part and, if found, returns the zero-based index of the first occurrence within the collection; otherwise returns -1.
Namespace: Microsoft.SharePoint.WebPartPages
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Syntax
'Declaration
Public Function IndexOf ( _
value As WebPart _
) As Integer
'Usage
Dim instance As SPLimitedWebPartCollection
Dim value As WebPart
Dim returnValue As Integer
returnValue = instance.IndexOf(value)
public int IndexOf(
WebPart value
)
Parameters
- value
Type: System.Web.UI.WebControls.WebParts.WebPart
Return Value
Type: System.Int32
See Also
Reference
SPLimitedWebPartCollection Class