DesignerActionUIService 类
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
管理智能标记面板的用户界面 (UI)。 此类不能被继承。
public ref class DesignerActionUIService sealed : IDisposable
C#
public sealed class DesignerActionUIService : IDisposable
type DesignerActionUIService = class
interface IDisposable
Public NotInheritable Class DesignerActionUIService
Implements IDisposable
- 继承
-
DesignerActionUIService
- 实现
下面的代码示例演示如何使用 Refresh 方法更新智能标记面板。 此示例是类概述中提供的更大示例的一 DesignerActionService 部分。
C#
// Boolean properties are automatically displayed with binary
// UI (such as a checkbox).
public bool LockColors
{
get
{
return colLabel.ColorLocked;
}
set
{
GetPropertyByName("ColorLocked").SetValue(colLabel, value);
// Refresh the list.
this.designerActionUISvc.Refresh(this.Component);
}
}
'Boolean properties are automatically displayed with binary
' UI (such as a checkbox).
Public Property LockColors() As Boolean
Get
Return colLabel.ColorLocked
End Get
Set(ByVal value As Boolean)
GetPropertyByName("ColorLocked").SetValue(colLabel, value)
' Refresh the list.
Me.designerActionUISvc.Refresh(Me.Component)
End Set
End Property
可以使用 类控制设计器的 ActionListsDesignerActionUIService 显示。 DesignerActionUIService 提供了一个用于显示每个组件的项的简单界面,包括以下方法和事件:
事件 DesignerActionUIStateChange 指示组件的 UI 更改时间。
DesignerActionService使用 管理与DesignerActionList组件关联的集合。
Dispose() |
释放 DesignerActionUIService 类使用的所有资源。 |
Equals(Object) |
确定指定对象是否等于当前对象。 (继承自 Object) |
Get |
作为默认哈希函数。 (继承自 Object) |
Get |
获取当前实例的 Type。 (继承自 Object) |
HideUI(IComponent) |
隐藏组件的智能标记面板。 |
Memberwise |
创建当前 Object 的浅表副本。 (继承自 Object) |
Refresh(IComponent) |
更新智能标记面板。 |
Should |
指示是否自动显示智能标记面板。 |
ShowUI(IComponent) |
显示组件的智能标记面板。 |
To |
返回表示当前对象的字符串。 (继承自 Object) |
Designer |
当请求显示或隐藏智能标记面板时发生。 |
产品 | 版本 |
---|---|
.NET Framework | 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |