DesignerActionUIService 類別

定義

管理智慧標籤面板的使用者介面 (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 提供簡單的介面來顯示每個元件的專案,包括下列方法和事件:

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

發生於要求顯示或隱藏智慧標籤面板時。

適用於

另請參閱