DesignerActionUIService.Refresh(IComponent) Méthode

Définition

Met à jour le panneau des balises actives.

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)

Paramètres

component
IComponent

IComponent à actualiser.

Exemples

L’exemple de code suivant montre comment utiliser la Refresh méthode pour mettre à jour un panneau de balise active. Cet exemple fait partie d’un exemple plus large disponible dans la vue d’ensemble de la 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

Remarques

La Refresh méthode met à jour le panneau interne DesignerActionGlyph, ainsi que le panneau de balise active.

S’applique à