DrawingAttributes.AttributeChanged 이벤트

정의

DrawingAttributes 개체의 속성이 변경될 때 발생합니다.

public:
 event System::Windows::Ink::PropertyDataChangedEventHandler ^ AttributeChanged;
public event System.Windows.Ink.PropertyDataChangedEventHandler AttributeChanged;
member this.AttributeChanged : System.Windows.Ink.PropertyDataChangedEventHandler 
Public Custom Event AttributeChanged As PropertyDataChangedEventHandler 
Public Event AttributeChanged As PropertyDataChangedEventHandler 

이벤트 유형

예제

다음 예제에서는 처리 된 AttributeChanged 이벤트입니다. 이 예제에서는 있다고 가정를 DrawingAttributes 라는 개체 inkDA 하 고는 AttributeChanged 이 예제에서 정의 된 이벤트 처리기에 연결 된 이벤트.

void inkDA_AttributeChanged(object sender, PropertyDataChangedEventArgs e)
{
    if (e.PropertyGuid == DrawingAttributeIds.Color)
    {
        this.Title = "The pen color is: " + e.NewValue.ToString();
    }
}
Private Sub inkDA_AttributeChanged(ByVal sender As Object, _
                                  ByVal e As PropertyDataChangedEventArgs)

    If (e.PropertyGuid = DrawingAttributeIds.Color) Then
        Me.Title = "The pen color is: " + e.NewValue.ToString()
    End If

End Sub

적용 대상