語言

GridLength.IsAuto 屬性

定義

會得到一個值,表示 是否 GridLength 持有一個大小由內容物件大小屬性決定的值。

public:
 property bool IsAuto { bool get(); };
public bool IsAuto { get; }
member this.IsAuto : bool
Public ReadOnly Property IsAuto As Boolean

屬性值

true 若性質 GridUnitType 為 Auto;否則,則 false。

備註

預設GridUnitType值為 GridUnitType.Auto。因此,若建立實例時未指定 atrue,此屬性會回傳GridUnitType。

適用於

另請參閱