DesignerActionUIService.Refresh Method

Updates the smart tag panel.

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

public void Refresh (
	IComponent component
)
public void Refresh (
	IComponent component
)
public function Refresh (
	component : IComponent
)
Not applicable.

Parameters

component

The IComponent to refresh.

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

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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0
Show: