Compartilhar via


DiagramItemCollection.IndexOf(DiagramItem) Method

Definition

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

public:
 virtual int IndexOf(Microsoft::VisualStudio::Modeling::Diagrams::DiagramItem ^ diagramItem);
public virtual int IndexOf (Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem diagramItem);
abstract member IndexOf : Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem -> int
override this.IndexOf : Microsoft.VisualStudio.Modeling.Diagrams.DiagramItem -> int
Public Overridable Function IndexOf (diagramItem As DiagramItem) As Integer

Parameters

diagramItem
DiagramItem

The DiagramItem to search for.

Returns

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

Applies to