DesignerActionUIService.Refresh(IComponent) Method

Definition

Updates the smart tag panel.

C#
public void Refresh(System.ComponentModel.IComponent component);
C#
public void Refresh(System.ComponentModel.IComponent? component);

Parameters

component
IComponent

The IComponent to refresh.

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.

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

Remarks

The Refresh method updates the internal DesignerAction Glyph, as well as the smart tag panel.

Applies to

Product Versions
.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, 10