ColumnDefinitionCollection 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.
public sealed class ColumnDefinitionCollection : Xamarin.Forms.DefinitionCollection<Xamarin.Forms.ColumnDefinition>
type ColumnDefinitionCollection = class
inherit DefinitionCollection<ColumnDefinition>
- Inheritance
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 |
|
Item[Int32] |
Gets or sets the value indexed by |
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 |
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 |
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>. (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. |