Aracılığıyla paylaş


DesignerActionUIService.Refresh(IComponent) Yöntem

Tanım

Akıllı etiket panelini güncelleştirir.

public:
 void Refresh(System::ComponentModel::IComponent ^ component);
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)

Parametreler

component
IComponent

Yenilenme IComponent.

Örnekler

Aşağıdaki kod örneği, akıllı etiket panelini güncelleştirmek için Refresh yönteminin nasıl kullanılacağını gösterir. Bu örnek, DesignerActionService sınıfına genel bakış bölümünde bulunan daha büyük bir örneğin parçasıdır.

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

Açıklamalar

Refresh yöntemi, hem iç DesignerActionGlyphhem de akıllı etiket panelini güncelleştirir.

Şunlara uygulanır