ColumnDefinitionCollection Class

Definition

public sealed class ColumnDefinitionCollection : Xamarin.Forms.DefinitionCollection<Xamarin.Forms.ColumnDefinition>
type ColumnDefinitionCollection = class
    inherit DefinitionCollection<ColumnDefinition>
Inheritance
System.Object
ColumnDefinitionCollection

Remarks

App developers can specify GridUnitType values for the Width property in XAML by nesting ColumnDefinition tags inside tags for the ColumnDefinitions collection property. The following example demonstrates setting three column widths to each of the three valid GridUnitType values:

<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="100" />
</Grid.ColumnDefinitions>

Constructors

ColumnDefinitionCollection()

Creates a new empty ColumnDefinitionCollection collection.

Properties

Count

Gets the number of IDefinition instances contained in this DefinitionCollection<T>.

(Inherited from DefinitionCollection<T>)
IsReadOnly

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

(Inherited from DefinitionCollection<T>)
Item[Int32]

Gets or sets the value indexed by index.

(Inherited from DefinitionCollection<T>)

Methods

Add(T)

Adds a IDefinition to the collection.

(Inherited from DefinitionCollection<T>)
Clear()

Removes all values from this DefinitionCollection<T>.

(Inherited from DefinitionCollection<T>)
Contains(T)

Returns a Boolean value that indicates whether or not this DefinitionCollection<T> contains the specified IDefinition.

(Inherited from DefinitionCollection<T>)
CopyTo(T[], Int32)

Copies IDefinition instances from this DefinitionCollection<T> into an array, starting at the specified arrayIndex into array.

(Inherited from DefinitionCollection<T>)
GetEnumerator()

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

(Inherited from DefinitionCollection<T>)
IndexOf(T)

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

(Inherited from DefinitionCollection<T>)
Insert(Int32, T)

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

(Inherited from DefinitionCollection<T>)
Remove(T)

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

(Inherited from DefinitionCollection<T>)
RemoveAt(Int32)

Removes an item from this DefinitionCollection<T>.

(Inherited from DefinitionCollection<T>)

Events

ItemSizeChanged

Event that is raised when the display size of item in the collection changes.

(Inherited from DefinitionCollection<T>)

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Gets an enumerator that can be used to iterate over the IDefinition instances in this DefinitionCollection<T>.

(Inherited from 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