Redigera

Dela via


DrawingAttributeIds Class

Definition

Contains a set of GUIDs that identify the properties in the DrawingAttributes class.

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

Examples

The following example demonstrates how to use the DrawingAttributeIds class to detect the property that changed within a PropertyDataChanged event.

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

Fields

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.

Applies to