CreateUserWizardDesigner.UsePreviewControl 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得值,指出設計工具是否會利用 CreateUserWizard 控制項本身或暫時建立的複本,產生設計階段的 HTML。
protected:
virtual property bool UsePreviewControl { bool get(); };
protected override bool UsePreviewControl { get; }
member this.UsePreviewControl : bool
Protected Overrides ReadOnly Property UsePreviewControl As Boolean
屬性值
一定是 true
。
備註
當 屬性的值 UsePreviewControl 是 true
時,設計工具會使用精靈控制項的暫存複本來產生設計階段 HTML;當 值為 UsePreviewControl false
時,設計工具會使用精靈控制項本身來產生設計階段 HTML。
的值 UsePreviewControl 會修改設計工具屬性的 ViewControl 傳回值。 當 為 true
時 UsePreviewControl , ViewControl 會傳回精靈控制項的複本。 當 為 false
時 UsePreviewControl , ViewControl 會傳回精靈控制項本身。
如果精靈控制項標示為類別層級 SupportsPreviewControlAttribute 屬性, SupportsPreviewControlAttribute 則會忽略 ,因為 的值 UsePreviewControl 一律 true
為 。
給繼承者的注意事項
您可以覆寫 UsePreviewControl 屬性以傳回 false
或根據精靈控制項是否以類別層級 SupportsPreviewControlAttribute 標記來判斷其值。 UsePreviewControl如果未覆寫 ,設計工具會 SupportsPreviewControlAttribute 忽略 。