DesignerActionUIService 類別

定義

管理智慧標籤面板的使用者介面 (UI)。Manages the user interface (UI) for a smart tag panel. 這個類別無法被繼承。This class cannot be inherited.

public ref class DesignerActionUIService sealed : IDisposable
public sealed class DesignerActionUIService : IDisposable
type DesignerActionUIService = class
    interface IDisposable
Public NotInheritable Class DesignerActionUIService
Implements IDisposable
繼承
DesignerActionUIService
實作

範例

下列程式碼範例示範如何使用Refresh方法來更新智慧標籤面板。The following code example demonstrates how to use the Refresh method to update a smart tag panel. 這個範例是DesignerActionService類別總覽中提供之較大範例的一部分。This example is part of a larger example available in the DesignerActionService class overview.

// 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

備註

您可以ActionLists DesignerActionUIService使用類別來控制設計工具的顯示。You can control the display of your designer's ActionLists with the DesignerActionUIService class. DesignerActionUIService提供簡單的介面, 以顯示每個元件的專案, 包括下列方法和事件:DesignerActionUIService provides a straightforward interface for displaying the items for each component, including the following methods and events:

使用來管理與您DesignerActionList的元件相關聯的集合。 DesignerActionServiceUse the DesignerActionService to manage the DesignerActionList collections associated with your component.

方法

Dispose()

釋放 DesignerActionUIService 類別所使用的所有資源。Releases all resources used by the DesignerActionUIService class.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
HideUI(IComponent)

隱藏元件的智慧標籤面板。Hides the smart tag panel for a component.

MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
Refresh(IComponent)

更新智慧標籤面板。Updates the smart tag panel.

ShouldAutoShow(IComponent)

指出是否自動顯示智慧標籤面板。Indicates whether to automatically show the smart tag panel.

ShowUI(IComponent)

顯示元件的智慧標籤面板。Displays the smart tag panel for a component.

ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

事件

DesignerActionUIStateChange

發生於要求顯示或隱藏智慧標籤面板時。Occurs when a request is made to show or hide a smart tag panel.

適用於

另請參閱