ArrangedElementCollection Class
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Represents a collection of objects.
public ref class ArrangedElementCollection : System::Collections::IList
public class ArrangedElementCollection : System.Collections.IList
type ArrangedElementCollection = class
interface IList
interface ICollection
interface IEnumerable
Public Class ArrangedElementCollection
Implements IList
- Inheritance
-
ArrangedElementCollection
- Derived
- Implements
The ArrangedElementCollection class represents a collection of objects arranged on a design surface or inside a parent System.Windows.Forms.ContainerControl.
There are no publicly defined constructors in ArrangedElementCollection because it is designed to be used only internally within the .NET Framework. However, classes derived from ArrangedElementCollection, such as System.Windows.Forms.Control.ControlCollection, are available to the developer.
Count |
Gets the number of elements in the collection. |
Is |
Gets a value indicating whether the collection is read-only. |
Copy |
Copies the entire contents of this collection to a compatible one-dimensional Array, starting at the specified index of the target array. |
Equals(Object) |
Determines whether two ArrangedElementCollection instances are equal. |
Get |
Returns an enumerator for the entire collection. |
Get |
Returns the hash code for this instance. |
Get |
Gets the Type of the current instance. (Inherited from Object) |
Memberwise |
Creates a shallow copy of the current Object. (Inherited from Object) |
To |
Returns a string that represents the current object. (Inherited from Object) |
ICollection. |
For a description of this member, see the IsSynchronized property. |
ICollection. |
For a description of this member, see the SyncRoot property. |
IList. |
For a description of this member, see the Add(Object) method. |
IList. |
For a description of this member, see the Clear() method. |
IList. |
For a description of this member, see the Contains(Object) method. |
IList. |
For a description of this member, see the IndexOf(Object) method. |
IList. |
For a description of this member, see the Insert(Int32, Object) method. |
IList. |
For a description of this member, see the IsFixedSize property. |
IList. |
For a description of this member, see the Item[Int32] property. |
IList. |
For a description of this member, see the Remove(Object) method. |
IList. |
For a description of this member, see the RemoveAt(Int32) method. |
Cast<TResult>(IEnumerable) |
Casts the elements of an IEnumerable to the specified type. |
Of |
Filters the elements of an IEnumerable based on a specified type. |
As |
Enables parallelization of a query. |
As |
Converts an IEnumerable to an IQueryable. |
Produto | Versões |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
Public static
(Shared
in Visual Basic) members of this type are thread safe. Instance members are not guaranteed to be thread safe.
An ArrangedElementCollection can support multiple readers concurrently, as long as the collection is not modified. The GetEnumerator() method returns an IEnumerator that can be used to access elements.
Enumerating through a collection is intrinsically not a thread-safe procedure. Even when a collection is synchronized, other threads could still modify the collection, which causes the enumerator to throw an exception. To guarantee thread safety during enumeration, you can either lock the collection during the entire enumeration or catch the exceptions resulting from changes made by other threads.
Comentários do .NET
O .NET é um projeto código aberto. Selecione um link para fornecer comentários: