DesignerActionUIService DesignerActionUIService DesignerActionUIService DesignerActionUIService Class

Definition

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
Inheritance
DesignerActionUIServiceDesignerActionUIServiceDesignerActionUIServiceDesignerActionUIService
Implements

Examples

The following code example demonstrates how to use the Refresh method to update a smart tag panel. 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

Remarks

You can control the display of your designer's ActionLists with the DesignerActionUIService class. DesignerActionUIService provides a straightforward interface for displaying the items for each component, including the following methods and events:

Use the DesignerActionService to manage the DesignerActionList collections associated with your component.

Methods

Dispose() Dispose() Dispose() Dispose()

Releases all resources used by the DesignerActionUIService class.

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
HideUI(IComponent) HideUI(IComponent) HideUI(IComponent) HideUI(IComponent)

Hides the smart tag panel for a component.

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
Refresh(IComponent) Refresh(IComponent) Refresh(IComponent) Refresh(IComponent)

Updates the smart tag panel.

ShouldAutoShow(IComponent) ShouldAutoShow(IComponent) ShouldAutoShow(IComponent) ShouldAutoShow(IComponent)

Indicates whether to automatically show the smart tag panel.

ShowUI(IComponent) ShowUI(IComponent) ShowUI(IComponent) ShowUI(IComponent)

Displays the smart tag panel for a component.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Events

DesignerActionUIStateChange DesignerActionUIStateChange DesignerActionUIStateChange DesignerActionUIStateChange

Occurs when a request is made to show or hide a smart tag panel.

Applies to

See also