BulletedListDesigner.UsePreviewControl 属性

定义

获取一个值,指示设计器是否应使用临时副本取代与设计器关联的实际控件来生成设计时标记。

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包含关联BulletedList控件的临时副本的控件来生成设计时标记。 控件 View 不会影响 的任何 BulletedList持久性。 UsePreviewControl如果该属性返回 false,设计器将使用关联的 BulletedList 本身来生成设计时标记。

继承者说明

可以重写 UsePreviewControl 属性以返回 false 或 ,以便根据控件是否使用类级 SupportsPreviewControlAttribute 对象标记来确定其值。 UsePreviewControl如果未重写 属性,则 BulletedListDesigner 对象将SupportsPreviewControlAttribute忽略 。

适用于

另请参阅