DefinitionCollection<T> Class
Definition
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.
A collection parameterized by an IDefinition. Base class for ColumnDefinitionCollection and RowDefinitionCollection.
public class DefinitionCollection<T> : System.Collections.Generic.ICollection<T>, System.Collections.Generic.IEnumerable<T>, System.Collections.Generic.IList<T> where T : IDefinition
type DefinitionCollection<'T (requires 'T :> IDefinition)> = class
interface IList<'T (requires 'T :> IDefinition)>
interface ICollection<'T (requires 'T :> IDefinition)>
interface seq<'T (requires 'T :> IDefinition)>
interface IEnumerable
Type Parameters
- T
- Inheritance
-
System.ObjectDefinitionCollection<T>
- Derived
- Implements
-
System.Collections.Generic.ICollection<T> System.Collections.Generic.IEnumerable<T> System.Collections.Generic.IList<T> System.Collections.IEnumerable
Remarks
Objects of type DefinitionCollection<T> are parameterized with a type of IDefinition.
Properties
Count |
Gets the number of IDefinition instances contained in this DefinitionCollection<T>. |
IsReadOnly |
|
Item[Int32] |
Gets or sets the value indexed by |
Methods
Add(T) |
Adds a IDefinition to the collection. |
Clear() |
Removes all values from this DefinitionCollection<T>. |
Contains(T) |
Returns a Boolean value that indicates whether or not this DefinitionCollection<T> contains the specified IDefinition. |
CopyTo(T[], Int32) |
Copies IDefinition instances from this DefinitionCollection<T> into an |
GetEnumerator() |
Returns an enumerator that iterates through the IDefinition instances in this DefinitionCollection<T>. |
IndexOf(T) |
Returns the index of the first occurrence of |
Insert(Int32, T) |
Inserts a IDefinition into this DefinitionCollection<T> at the location that is specified by |
Remove(T) |
Removes a IDefinition from this DefinitionCollection<T> and returns |
RemoveAt(Int32) |
Removes an item from this DefinitionCollection<T>. |
Events
ItemSizeChanged |
Event that is raised when the display size of item in the collection changes. |
Explicit Interface Implementations
IEnumerable.GetEnumerator() |
Gets an enumerator that can be used to iterate over the IDefinition instances in this DefinitionCollection<T>. |
Extension Methods
ForEach<T>(IEnumerable<T>, Action<T>) |
For internal use by the Xamarin.Forms platform. |
GroupToDictionary<TSource,TKey>(IEnumerable<TSource>, Func<TSource,TKey>) |
For internal use by the Xamarin.Forms platform. |
IndexOf<T>(IEnumerable<T>, T) |
For internal use by the Xamarin.Forms platform. |
IndexOf<T>(IEnumerable<T>, Func<T,Boolean>) |
For internal use by the Xamarin.Forms platform. |
Prepend<T>(IEnumerable<T>, T) |
For internal use by the Xamarin.Forms platform. |