語言

WebControlAdapter.IsEnabled 屬性

定義

會獲得一個值,表示網頁控制項及其所有父控制項是否已啟用。

protected:
 property bool IsEnabled { bool get(); };
protected bool IsEnabled { get; }
member this.IsEnabled : bool
Protected ReadOnly Property IsEnabled As Boolean

屬性值

true 若 WebControl 相關且所有父控制項皆啟用;否則, false。

備註

該 IsEnabled 屬性提供介面卡及其任何衍生類別對該 WebControl.IsEnabled 屬性的存取權限。 WebControl.IsEnabled 掃描父控制的階層,只有在 Web 控制項及其所有父控制項啟用時才回傳 true 。

適用於

另請參閱