DrawingAttributeIds Třída

Definice

Obsahuje sadu identifikátorů GUID, které identifikují vlastnosti ve DrawingAttributes třídě.

public ref class DrawingAttributeIds abstract sealed
public static class DrawingAttributeIds
type DrawingAttributeIds = class
Public Class DrawingAttributeIds
Dědičnost
DrawingAttributeIds

Příklady

Následující příklad ukazuje, jak použít DrawingAttributeIds třídu k detekci vlastnosti, která se změnila PropertyDataChanged v rámci události.

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

Pole

Color

Identifikuje Color vlastnost.

DrawingFlags

Identifikuje interní DrawingFlags vlastnost.

IsHighlighter

Identifikuje IsHighlighter vlastnost.

StylusHeight

Identifikuje Height vlastnost.

StylusTip

Identifikuje StylusTip vlastnost.

StylusTipTransform

Identifikuje StylusTipTransform vlastnost.

StylusWidth

Identifikuje Width vlastnost.

Platí pro