DesignerActionUIService.Refresh(IComponent) 메서드

정의

스마트 태그 패널을 업데이트합니다.

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)

매개 변수

component
IComponent

새로 고칠 IComponent입니다.

예제

다음 코드 예제에서는 사용 하는 방법을 보여 줍니다.는 Refresh 메서드는 스마트 태그 패널을 업데이트 합니다. 이 예제는에서 사용할 수 있는 보다 큰 예제의 일부는 DesignerActionService 클래스 개요입니다.

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

설명

Refresh 메서드를 사용 하면 내부 업데이트 DesignerActionGlyph, 스마트 태그 패널 뿐 아니라.

적용 대상