GridLength.IsAuto 屬性

定義

取得值,這個值表示 GridLength 所含值的大小是否由內容物件的大小屬性決定。

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

屬性值

Boolean

如果 GridUnitType 屬性是 Auto,則為 true,否則為 false

備註

預設值 GridUnitTypeGridUnitType.Auto 。 因此,如果您未在建立 實例時指定 , GridUnitType 這個屬性會 true 傳回 。

適用於

另請參閱