Share via


AnnotationCollection.IndexOf Method

Definition

Overloads

IndexOf(Annotation)

Searches for the specified Annotation and returns its zero-based index within the collection.

IndexOf(String)

Searches for the specified Annotation with the specified Name and returns its zero-based index within the collection.

IndexOf(Annotation)

Searches for the specified Annotation and returns its zero-based index within the collection.

public int IndexOf (Microsoft.AnalysisServices.Annotation item);
member this.IndexOf : Microsoft.AnalysisServices.Annotation -> int
Public Function IndexOf (item As Annotation) As Integer

Parameters

item
Annotation

The Annotation to locate.

Returns

The zero-based index of the Annotation in the collection, if found; otherwise, -1.

Applies to

IndexOf(String)

Searches for the specified Annotation with the specified Name and returns its zero-based index within the collection.

public int IndexOf (string name);
member this.IndexOf : string -> int
Public Function IndexOf (name As String) As Integer

Parameters

name
String

The Name of the Annotation to locate.

Returns

The zero-based index of the Annotation in the collection, if found; otherwise, -1.

Applies to