ColumnDefinitionCollection ColumnDefinitionCollection Class

Definition

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

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() ColumnDefinitionCollection()

Creates a new empty ColumnDefinitionCollection collection.

Methods

Add(T) Add(T)

Adds a IDefinition to the collection.

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

Removes all values from this DefinitionCollection<T>.

(Inherited from DefinitionCollection<T>)
Contains(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) 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() GetEnumerator()

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

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

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

(Inherited from DefinitionCollection<T>)
Insert(Int32, 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) Remove(T)

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

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

Removes an item from this DefinitionCollection<T>.

(Inherited from DefinitionCollection<T>)

Properties

Count Count

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

(Inherited from DefinitionCollection<T>)
IsReadOnly IsReadOnly

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

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

Gets or sets the value indexed by index.

(Inherited from DefinitionCollection<T>)

Events

ItemSizeChanged ItemSizeChanged

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

(Inherited from DefinitionCollection<T>)

Explicit Interface Implementations

IEnumerable.GetEnumerator() 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>) ForEach<T>(IEnumerable<T>, Action<T>)

For internal use by the Xamarin.Forms platform.

GetGesturesFor<T>(IEnumerable<IGestureRecognizer>, Func<T,Boolean>) GetGesturesFor<T>(IEnumerable<IGestureRecognizer>, Func<T,Boolean>)

For internal use by the Xamarin.Forms platform.

IndexOf<T>(IEnumerable<T>, T) IndexOf<T>(IEnumerable<T>, T)

For internal use by the Xamarin.Forms platform.

IndexOf<T>(IEnumerable<T>, Func<T,Boolean>) IndexOf<T>(IEnumerable<T>, Func<T,Boolean>)

For internal use by the Xamarin.Forms platform.

Prepend<T>(IEnumerable<T>, T) Prepend<T>(IEnumerable<T>, T)

For internal use by the Xamarin.Forms platform.

Add(IList<Setter>, BindableProperty, Object) Add(IList<Setter>, BindableProperty, Object)

Add a Setter with a value to the IList<Setter>

AddBinding(IList<Setter>, BindableProperty, Binding) AddBinding(IList<Setter>, BindableProperty, Binding)

Add a Setter with a Binding to the IList<Setter>

AddDynamicResource(IList<Setter>, BindableProperty, String) AddDynamicResource(IList<Setter>, BindableProperty, String)

Add a Setter with a DynamicResource to the IList<Setter>

LoadFromXaml<TXaml>(TXaml, String) LoadFromXaml<TXaml>(TXaml, String)

Returns an initialized view by loading the specified xaml.

LoadFromXaml<TXaml>(TXaml, Type) LoadFromXaml<TXaml>(TXaml, Type)

Returns a TXaml with the properties that are defined in the application manifest for callingType.

Applies to