共用方式為


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.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Diagrams.10.0.dll)

Syntax

'宣告
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: System.Int32
The zero-based index of the DiagramItem in the collection.

.NET Framework Security

See Also

Reference

DiagramItemCollection Class

Microsoft.VisualStudio.Modeling.Diagrams Namespace