Click or drag to resize

LayerCollection Class

This class is used to hold a collection of LayerAnnotation objects.
Inheritance Hierarchy

Namespace:  Atalasoft.Annotate.UI
Assembly:  Atalasoft.dotImage (in Atalasoft.dotImage.dll) Version: 11.4.0.9.0.377 (.NET 4.5.2, x86)
Syntax
[SerializableAttribute]
public class LayerCollection : CollectionBase, 
	ISerializable, IDisposable, IDeserializationCallback

The LayerCollection type exposes the following members.

Constructors
  NameDescription
Public methodLayerCollection
Creates a new instance of LayerCollection.
Public methodLayerCollection(SerializationInfo, StreamingContext)
Creates a new instance of LayerCollection from serialized information.
Top
Properties
  NameDescription
Public propertyCapacity
Gets or sets the number of elements that the CollectionBase can contain.
(Inherited from CollectionBase.)
Public propertyController
Gets the AnnotationController for this LayerCollection.
Public propertyCount
Gets the number of elements contained in the CollectionBase instance. This property cannot be overridden.
(Inherited from CollectionBase.)
Protected propertyInnerList
Gets an ArrayList containing the list of elements in the CollectionBase instance.
(Inherited from CollectionBase.)
Public propertyItem
Gets the LayerAnnotation at the specified index in the collection.
Protected propertyList
Gets an IList containing the list of elements in the CollectionBase instance.
(Inherited from CollectionBase.)
Top
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
Events
  NameDescription
Public eventAnnotationControllerNotification
Raised after this collection or an item in the collection has been changed.
Public eventCollectionChanged
Raised when there has been a change in the collection.
Public eventPropertyChanging
Raised before this collection or an item in the collection has been changed.
Top
Remarks
The order of the layers in the LayerCollection determines the stacking (z-order) used when rendering. For instance, the layer at index 1 is rendered on top of the layer at index 0. The order can be changed using the ChangeAnnotationPosition(ChangePositionMethod) method; this is because a LayerAnnotation derives from AnnotationUI.
See Also