This documentation is for the old version. Go to the latest Graphics Mill docs

LayerCollection Members

The LayerCollection type exposes the following members.

Constructors

Name Description
Public method LayerCollection

Creates and initializes a new layer collection instance.

Methods

Name Description
Public method Add Overloaded.

Adds an object to the end of the layer collection.

Public method Clear

Removes all layers from the collection.

Public method Contains Overloaded.

Determines whether an object is in the layer collection.

Public method CopyTo

Copies the collection to a one-dimensional array, starting at the specified index of the target array.

Public method Deserialize

Deserializes a layer collection.

Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetEnumerator

Returns an enumerator for the layers allowing the collection to be used in foreach blocks.

Public method GetHashCode (Inherited from Object.)
Public method GetObjectData

Populates a SerializationInfo with the data needed to serialize the collection object.

Public method GetType (Inherited from Object.)
Public method IndexOf Overloaded.

Searches for the specified object and returns the zero-based index of the first occurrence within the entire layer collection.

Public method Insert Overloaded.

Inserts an object into the layer collection at the specified index.

Protected method MemberwiseClone (Inherited from Object.)
Public method Remove Overloaded.

Removes the first occurrence of a specific object from the layer collection.

Public method RemoveAt

Removes the layer at the specified index of the collection.

Public method Serialize

Serializes a layer collection.

Public method ToString (Inherited from Object.)

Properties

Name Description
Public property Count

Gets the number of layers actually contained in the collection.

Public property IsFixedSize

Gets a value indicating whether the collection has a fixed size.

Public property IsReadOnly

Gets a value indicating whether the collection is read-only.

Public property IsSynchronized

Gets a value indicating whether access to the collection is synchronized (thread-safe).

Public property Item

Gets/sets the layer at the specified index.

Public property SyncRoot

Gets an object that can be used to synchronize access to the collection.

Events

Name Description
Public event LayerAdded

Raised after a new layer is added.

Public event LayerChanged

Raised after a layer is modified.

Public event LayerRemoved

Raised after a new layer is removed.

Explicit Interface Implementations

Name Description
Explicit interface implemetation Private method ICollection.CopyTo
Explicit interface implemetation Private property IList.Item

See Also

Reference