Compartir a través de


DefinitionCollection<T> Class

Definition

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.Object
DefinitionCollection<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

false. DefinitionCollection<T> instances can have items added to them and removed from them.

Item[Int32]

Gets or sets the value indexed by index.

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 array, starting at the specified arrayIndex into array.

GetEnumerator()

Returns an enumerator that iterates through the IDefinition instances in this DefinitionCollection<T>.

IndexOf(T)

Returns the index of the first occurrence of item in this DefinitionCollection<T>.

Insert(Int32, T)

Inserts a IDefinition into this DefinitionCollection<T> at the location that is specified by index.

Remove(T)

Removes a IDefinition from this DefinitionCollection<T> and returns true if the item was removed.

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.

Applies to