DataControlField.DesignMode 屬性

定義

取得值,指示目前是否在設計階段環境中檢視資料控制項欄位。Gets a value indicating whether a data control field is currently viewed in a design-time environment.

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

屬性值

Boolean

如果目前在設計階段環境中檢視 DataControlField,則為 true,否則為 falsetrue if the DataControlField is currently viewed in a design-time environment; otherwise, false.

備註

DesignMode屬性會公開 Control.DesignMode 屬性。The DesignMode property exposes the Control.DesignMode property. Control使用傳遞給方法的實例 InitializeThe Control instance that is passed to the Initialize method is used.

適用於