Jaa


AnnotationCollection Class

Definition

Represents a collection of Annotation objects. This class cannot be inherited.

[System.Runtime.InteropServices.Guid("660FA3D1-97B1-4c33-86AF-8F4381D4317E")]
public sealed class AnnotationCollection : System.Collections.IList
[<System.Runtime.InteropServices.Guid("660FA3D1-97B1-4c33-86AF-8F4381D4317E")>]
type AnnotationCollection = class
    interface IList
    interface ICollection
    interface IEnumerable
Public NotInheritable Class AnnotationCollection
Implements IList
Inheritance
AnnotationCollection
Attributes
Implements

Constructors

AnnotationCollection()

Properties

Count

Gets the number of elements contained in the collection.

Item[Int32]

Gets the Annotation element at the specified index.

Item[String]

Gets the Annotation element with the specified name.

Methods

Add(Annotation)

Adds the specified Annotation to the end of the collection.

Add(String, String)

Creates a new Annotation object using the name and value provided, adds it to the collection and returns the new Annotation object created.

Clear()

Removes all items from the collection.

Contains(Annotation)

Determines whether the specified Annotation exists in the collection.

Contains(String)

Determines whether an Annotation with the specified Name exists in the collection.

CopyTo(AnnotationCollection)

Copies the elements from this collection to another.

CopyTo(Array, Int32)

Copies the elements of the collection to an Array, starting at a particular Array index.

Find(String)

Searches for the Annotation with the specified Name and returns it.

GetText(String)

Gets the value of the Annotation with the specified name.

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.

Insert(Int32, Annotation)

Inserts the specified Annotation to the collection at the specified index.

Insert(Int32, String, String)

Creates a new Annotation object using the name and value provided, inserts it to the collection at the specified index, and returns the new Annotation object created.

Remove(Annotation)

Removes the specified Annotation from this collection.

Remove(String)

Removes the Annotation with the specified Name from this collection.

RemoveAt(Int32)

Removes the Annotation at the specified index.

SetText(String, Boolean)

Sets the Annotation with the specified name, to the specified Boolean value.

SetText(String, Int32)

Sets the Annotation with the specified name, to the specified Int32 value.

SetText(String, String, Boolean)

Sets the Annotation with the specified name, to the specified String value. Can also be used to remove a named annotation if it is set to a null reference.

SetText(String, String)

Sets the Annotation with the specified name, to the specified String value.

Explicit Interface Implementations

ICollection.IsSynchronized
ICollection.SyncRoot
IEnumerable.GetEnumerator()
IList.Add(Object)
IList.Contains(Object)
IList.IndexOf(Object)
IList.Insert(Int32, Object)
IList.IsFixedSize
IList.IsReadOnly
IList.Item[Int32]
IList.Remove(Object)

Applies to