DiagramItemCollection.IndexOf Method

Returns the zero-based index of the DiagramItem in the collection.

Namespace:  Microsoft.VisualStudio.Modeling.Diagrams
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.11.0.dll)

Syntax

'Declaration
Public Overridable Function IndexOf ( _
    diagramItem As DiagramItem _
) As Integer
public virtual int IndexOf(
    DiagramItem diagramItem
)
public:
virtual int IndexOf(
    DiagramItem^ diagramItem
)
abstract IndexOf : 
        diagramItem:DiagramItem -> int  
override IndexOf : 
        diagramItem:DiagramItem -> int
public function IndexOf(
    diagramItem : DiagramItem
) : int

Parameters

Return Value

Type: Int32
The zero-based index of the DiagramItem in the collection.

.NET Framework Security

See Also

Reference

DiagramItemCollection Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace