WebControlAdapter.IsEnabled 屬性

定義

取得值,表示 Web 控制器及其所有父控制項是否都已啟用。

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

屬性值

Boolean

如果關聯的 WebControl 及其所有父控制項都已啟用,則為 true,否則為 false

備註

IsEnabled屬性可將介面卡及其任何衍生類別的存取權提供給 WebControl.IsEnabled 屬性。 WebControl.IsEnabled 掃描父控制項的階層,而且 true 只有在 Web 控制項及其所有父系都已啟用時才會傳回。

適用於

另請參閱