DesignerActionUIService 类  
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
管理智能标记面板的用户界面 (UI)。 此类不能被继承。
public ref class DesignerActionUIService sealed : IDisposable
	public sealed class DesignerActionUIService : IDisposable
	type DesignerActionUIService = class
    interface IDisposable
	Public NotInheritable Class DesignerActionUIService
Implements IDisposable
		- 继承
 - 
				DesignerActionUIService
 
- 实现
 
示例
下面的代码示例演示如何使用 Refresh 方法更新智能标记面板。 此示例是类概述中提供的更大示例的一 DesignerActionService 部分。
// 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) | 
        	
| GetHashCode() | 
		 作为默认哈希函数。 (继承自 Object) | 
        	
| GetType() | 
		 获取当前实例的 Type。 (继承自 Object) | 
        	
| HideUI(IComponent) | 
		 隐藏组件的智能标记面板。  | 
        	
| MemberwiseClone() | 
		 创建当前 Object 的浅表副本。 (继承自 Object) | 
        	
| Refresh(IComponent) | 
		 更新智能标记面板。  | 
        	
| ShouldAutoShow(IComponent) | 
		 指示是否自动显示智能标记面板。  | 
        	
| ShowUI(IComponent) | 
		 显示组件的智能标记面板。  | 
        	
| ToString() | 
		 返回表示当前对象的字符串。 (继承自 Object) | 
        	
事件
| DesignerActionUIStateChange | 
		 当请求显示或隐藏智能标记面板时发生。  |