DrawingAttributeIds 類別

定義

包含一組可識別 DrawingAttributes 類別中之屬性的 GUID。

public ref class DrawingAttributeIds abstract sealed
public static class DrawingAttributeIds
type DrawingAttributeIds = class
Public Class DrawingAttributeIds
繼承
DrawingAttributeIds

範例

下列範例示範如何使用 DrawingAttributeIds 類別來偵測事件內 PropertyDataChanged 變更的屬性。

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

欄位

Color

識別 Color 屬性。

DrawingFlags

識別內部 DrawingFlags 屬性。

IsHighlighter

識別 IsHighlighter 屬性。

StylusHeight

識別 Height 屬性。

StylusTip

識別 StylusTip 屬性。

StylusTipTransform

識別 StylusTipTransform 屬性。

StylusWidth

識別 Width 屬性。

適用於