DesignerActionUIService.Refresh(IComponent) Método

Definição

Atualiza o painel de marcações inteligentes.

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)

Parâmetros

component
IComponent

O IComponent a atualizar.

Exemplos

O exemplo de código a seguir demonstra como usar o Refresh método para atualizar um painel de marcas inteligentes. Este exemplo faz parte de um exemplo maior disponível na visão geral da 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

Comentários

O Refresh método atualiza o interno DesignerActionGlyph, bem como o painel de marcas inteligentes.

Aplica-se a