Click or drag to resize

LayerCollection Methods

The LayerCollection type exposes the following members.

Methods
  NameDescription
Public methodAdd
Adds a layer to the collection.
Public methodAddRange
Adds an array of layers to the collection.
Public methodClear
Removes all objects from the CollectionBase instance. This method cannot be overridden.
(Inherited from CollectionBase.)
Public methodContains
Returns a value indicating whether a layer is contains within the collection.
Public methodCopyTo
Copies items into the specified array.
Public methodDispose
Releases memory used by this collection and all of its annotations.
Protected methodDispose(Boolean)
Releases resources used by the collection and all of its LayerAnnotation objects.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Finalizes an instance of the LayerCollection class.
(Overrides ObjectFinalize.)
Public methodGetEnumerator
Returns an enumerator that iterates through the CollectionBase instance.
(Inherited from CollectionBase.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetObjectData
Fills a SerializationInfo object with information about this collection.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf
Returns the position of a layer within the collection or -1 if the layer is not in the collection.
Public methodInsert
Inserts a layer into the collection at the specified index.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnAnnotationControllerNotification
Called when a change has been made to the collection or an object in the collection.
Protected methodOnClear
Called when the Clear method is invoked.
(Overrides CollectionBaseOnClear.)
Protected methodOnClearComplete
Called when the Clear method has completed.
(Overrides CollectionBaseOnClearComplete.)
Protected methodOnCollectionChanged
Called when there is any change to the collection.
Protected methodOnControllerChanged
Called when the AnnotationController using this LayerCollection has changed.
Public methodOnDeserialization
Called after an object has been fully deserialized by a serialization formatter.
Protected methodOnInsert
Performs additional custom processes before inserting a new element into the CollectionBase instance.
(Inherited from CollectionBase.)
Protected methodOnInsertComplete
Called when an item has been added or inserted into the collection.
(Overrides CollectionBaseOnInsertComplete(Int32, Object).)
Protected methodOnPropertyChanging
Called before this collection or an object in the collection has been changed.
Protected methodOnRemove
Performs additional custom processes when removing an element from the CollectionBase instance.
(Inherited from CollectionBase.)
Protected methodOnRemoveComplete
Called when a remove method has completed.
(Overrides CollectionBaseOnRemoveComplete(Int32, Object).)
Protected methodOnSet
Performs additional custom processes before setting a value in the CollectionBase instance.
(Inherited from CollectionBase.)
Protected methodOnSetComplete
Called when an item in the collection has been changed.
(Overrides CollectionBaseOnSetComplete(Int32, Object, Object).)
Protected methodOnValidate
Performs additional custom processes when validating a value.
(Inherited from CollectionBase.)
Public methodRemove(LayerAnnotation)
Removes a layer from the collection.
Public methodRemove(LayerAnnotation)
Removes an array of LayerAnnotation objects from the collection.
Public methodRemoveAt
Removes the element at the specified index of the CollectionBase instance. This method is not overridable.
(Inherited from CollectionBase.)
Public methodReplace(Int32, LayerAnnotation)
Replaces a layer at the specified index with the provided layer.
Public methodReplace(LayerAnnotation, LayerAnnotation)
Replaces an existing layer with another one.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also