DesignerActionUIService.Refresh(IComponent) Metodo

Definizione

Aggiorna il pannello smart tag.

public:
 void Refresh(System::ComponentModel::IComponent ^ component);
public void Refresh (System.ComponentModel.IComponent component);
member this.Refresh : System.ComponentModel.IComponent -> unit
Public Sub Refresh (component As IComponent)

Parametri

component
IComponent

Oggetto IComponent da aggiornare.

Esempio

Nell'esempio di codice seguente viene illustrato come usare il Refresh metodo per aggiornare un pannello smart tag. Questo esempio fa parte di un esempio più ampio disponibile nella panoramica della DesignerActionService classe.

// 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

Commenti

Il Refresh metodo aggiorna l'oggetto interno DesignerActionGlyph, nonché il pannello smart tag.

Si applica a