Share via


Grid.RowDefinitions 屬性

定義

提供繫結屬性的介面,該介面取得或設定控制每個資料列高度的 RowDefinition 物件集合。

public:
 property Microsoft::Maui::Controls::RowDefinitionCollection ^ RowDefinitions { Microsoft::Maui::Controls::RowDefinitionCollection ^ get(); void set(Microsoft::Maui::Controls::RowDefinitionCollection ^ value); };
[System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.RowDefinitionCollectionTypeConverter))]
public Microsoft.Maui.Controls.RowDefinitionCollection RowDefinitions { get; set; }
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Maui.Controls.RowDefinitionCollectionTypeConverter))>]
member this.RowDefinitions : Microsoft.Maui.Controls.RowDefinitionCollection with get, set
Public Property RowDefinitions As RowDefinitionCollection

屬性值

Grid 實例的 RowDefinitionCollection。

屬性

備註

RowDefinitions 是一組 RowDefinition 已排序的物件,可決定每個數據列的高度。 每個後續 RowDefintion 都會控制每個連續數據列的寬度。 如果 RowDefinitions 是空的,或者如果數據列數目超過定義,則沒有定義的數據列會轉譯為 ,就如同其 Height 屬性設定 Star為的 RowDefinition 物件所控制。

適用於