DependencyObject.DesignMode DependencyObject.DesignMode DependencyObject.DesignMode DependencyObject.DesignMode Property

定義

取得值,這個值會指出這個執行個體是在設計模式或執行階段模式中。Gets the value that indicates whether this instance is in design or run-time mode.

protected public:
 property bool DesignMode { bool get(); };
[System.ComponentModel.Browsable(false)]
protected internal bool DesignMode { get; }
member this.DesignMode : bool
Protected Friend ReadOnly Property DesignMode As Boolean

屬性值

如果這個執行個體處於設計模式,則為 true,否則為 falsetrue if this instance is in design mode; otherwise, false.

適用於