DrawingAttributeIds Klasse

Definition

Enthält einen Satz von GUIDs, die die Eigenschaften in der DrawingAttributes Klasse identifizieren.

public ref class DrawingAttributeIds abstract sealed
public static class DrawingAttributeIds
type DrawingAttributeIds = class
Public Class DrawingAttributeIds
Vererbung
DrawingAttributeIds

Beispiele

Im folgenden Beispiel wird veranschaulicht, wie die DrawingAttributeIds Klasse verwendet wird, um die Eigenschaft zu erkennen, die sich innerhalb eines PropertyDataChanged Ereignisses geändert hat.

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

Felder

Name Beschreibung
Color

Identifies the Color property.

DrawingFlags

Identifies the internal DrawingFlags property.

IsHighlighter

Identifies the IsHighlighter property.

StylusHeight

Identifies the Height property.

StylusTip

Identifies the StylusTip property.

StylusTipTransform

Identifies the StylusTipTransform property.

StylusWidth

Identifies the Width property.

Gilt für: