DrawingAttributeIds Class

DrawingAttributeIds Class

 

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

Namespace:   System.Windows.Ink
Assembly:  PresentationCore (in PresentationCore.dll)

System.Object
  System.Windows.Ink.DrawingAttributeIds

public static class DrawingAttributeIds

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticColor

Identifies the Color property.

System_CAPS_pubfieldSystem_CAPS_staticDrawingFlags

Identifies the internal DrawingFlags property.

System_CAPS_pubfieldSystem_CAPS_staticIsHighlighter

Identifies the IsHighlighter property.

System_CAPS_pubfieldSystem_CAPS_staticStylusHeight

Identifies the Height property.

System_CAPS_pubfieldSystem_CAPS_staticStylusTip

Identifies the StylusTip property.

System_CAPS_pubfieldSystem_CAPS_staticStylusTipTransform

Identifies the StylusTipTransform property.

System_CAPS_pubfieldSystem_CAPS_staticStylusWidth

Identifies the Width property.

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();
    }
}

.NET Framework
Available since 3.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft