Share via


WebPartDisplayMode.AssociatedWithToolZone 属性

定义

获取一个值,该值指示某种显示模式是否与一个从 ToolZone 类中派生的类关联。

public:
 virtual property bool AssociatedWithToolZone { bool get(); };
public virtual bool AssociatedWithToolZone { get; }
member this.AssociatedWithToolZone : bool
Public Overridable ReadOnly Property AssociatedWithToolZone As Boolean

属性值

如果显示模式与一个 ToolZone 类关联,则为 true;否则为 false。 默认值为 false

注解

当 Web 部件页进入其属性设置为 trueAssociatedWithToolZone显示模式时,控件WebPartManager将解释为表示关联的类派生自 ToolZone 类,并且需要显示 UI) 元素 (其他用户界面。 例如,当页面进入编辑模式时,页面上会显示包含用于编辑 Web 部件控件的 UI 元素的特殊区域。 此行为之所以可行, AssociatedWithToolZone 是因为 字段上的 EditDisplayMode 属性值设置为 true

继承者说明

派生自 WebPartDisplayMode 基类以创建自定义显示模式的类必须重写 AssociatedWithToolZone 属性才能设置其值。

适用于

另请参阅