This documentation is archived and is not being maintained.

VisualCollection Methods

The VisualCollection type exposes the following members.

Public method Add Appends a Visual to the end of the VisualCollection.
Public method Clear Removes all elements from the VisualCollection.
Public method Contains Returns a Boolean value that indicates whether the specified Visual is contained in the collection.
Public method CopyTo(Array, Int32) Copies the items in the collection to an array, starting at a specific array index.
Public method CopyTo(Visual[], Int32) Copies the current collection into the passed Visual array.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetEnumerator Retrieves an enumerator that can iterate through the VisualCollection.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Public method IndexOf Returns the zero-based index of the Visual.
Public method Insert Inserts an element into the VisualCollection at the specified index.
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method Remove Removes the specified Visual object from the VisualCollection.
Public method RemoveAt Removes the visual object at the specified index in the VisualCollection.
Public method RemoveRange Removes a range of visual objects from the VisualCollection.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Public Extension Method AsParallel Enables parallelization of a query. (Defined by ParallelEnumerable.)
Public Extension Method AsQueryable Converts an IEnumerable to an IQueryable. (Defined by Queryable.)
Public Extension Method Cast<TResult> Casts the elements of an IEnumerable to the specified type. (Defined by Enumerable.)
Public Extension Method OfType<TResult> Filters the elements of an IEnumerable based on a specified type. (Defined by Enumerable.)

Explicit interface implemetation Private method IEnumerable.GetEnumerator This member supports the WPF infrastructure and is not intended to be used directly from your code. For a description of this member, see GetEnumerator.