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
您可以使用 類別控制設計工具 ActionLists 的 DesignerActionUIService 顯示。 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 |