DesignerActionUIService Class

 

Manages the user interface (UI) for a smart tag panel. This class cannot be inherited.

Namespace:   System.ComponentModel.Design
Assembly:  System.Design (in System.Design.dll)

System.Object
  System.ComponentModel.Design.DesignerActionUIService

public sealed class DesignerActionUIService : IDisposable

NameDescription
System_CAPS_pubmethodDispose()

Releases all resources used by the DesignerActionUIService class.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodHideUI(IComponent)

Hides the smart tag panel for a component.

System_CAPS_pubmethodRefresh(IComponent)

Updates the smart tag panel.

System_CAPS_pubmethodShouldAutoShow(IComponent)

Indicates whether to automatically show the smart tag panel.

System_CAPS_pubmethodShowUI(IComponent)

Displays the smart tag panel for a component.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

NameDescription
System_CAPS_pubeventDesignerActionUIStateChange

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

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.

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);
    }
}

.NET Framework
Available since 2.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: