FormViewDesigner.UsePreviewControl 屬性
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得值,指出設計工具是否應該使用暫存複本,而非與設計工具關聯的實際控制項,來產生設計階段標記。
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,因此設計工具會使用View包含相關聯FormView控件複本的控件來產生設計時間標記。 控件 View 不會影響的任何持續性 FormView。
UsePreviewControl如果已覆寫 屬性以傳回 false,設計工具會使用相關聯的FormView本身來產生設計時間標記。
給繼承者的注意事項
您可以覆寫 UsePreviewControl 屬性以傳回 false 或根據控件是否標示類別層級 SupportsPreviewControlAttribute 對象來判斷其值。
UsePreviewControl如果未覆寫 ,控制件FormView會SupportsPreviewControlAttribute忽略 。