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 ref class ColumnDefinitionCollection sealed : Microsoft::Maui::Controls::DefinitionCollection<Microsoft::Maui::Controls::ColumnDefinition ^>
public sealed class ColumnDefinitionCollection : Microsoft.Maui.Controls.DefinitionCollection<Microsoft.Maui.Controls.ColumnDefinition>
type ColumnDefinitionCollection = class
inherit DefinitionCollection<ColumnDefinition>
Public NotInheritable Class ColumnDefinitionCollection
Inherits DefinitionCollection(Of 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() | |
ColumnDefinitionCollection(ColumnDefinition[]) |
Properties
Count | (Inherited from DefinitionCollection<T>) |
IsReadOnly | (Inherited from DefinitionCollection<T>) |
Item[Int32] | (Inherited from DefinitionCollection<T>) |
Methods
Add(T) | (Inherited from DefinitionCollection<T>) |
Clear() | (Inherited from DefinitionCollection<T>) |
Contains(T) | (Inherited from DefinitionCollection<T>) |
CopyTo(T[], Int32) | (Inherited from DefinitionCollection<T>) |
GetEnumerator() | (Inherited from DefinitionCollection<T>) |
IndexOf(T) | (Inherited from DefinitionCollection<T>) |
Insert(Int32, T) | (Inherited from DefinitionCollection<T>) |
Remove(T) | (Inherited from DefinitionCollection<T>) |
RemoveAt(Int32) | (Inherited from DefinitionCollection<T>) |
Events
ItemSizeChanged | (Inherited from DefinitionCollection<T>) |
Explicit Interface Implementations
IEnumerable.GetEnumerator() | (Inherited from DefinitionCollection<T>) |
Applies to
Colaborar conosco no GitHub
A fonte deste conteúdo pode ser encontrada no GitHub, onde você também pode criar e revisar problemas e solicitações de pull. Para obter mais informações, confira o nosso guia para colaboradores.
Comentários
https://aka.ms/ContentUserFeedback.
Em breve: Ao longo de 2024, eliminaremos os problemas do GitHub como o mecanismo de comentários para conteúdo e o substituiremos por um novo sistema de comentários. Para obter mais informações, consulteEnviar e exibir comentários de