DrawingAttributeIds Classe
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Contient un ensemble de GUID qui identifient les propriétés de la DrawingAttributes classe.
public ref class DrawingAttributeIds abstract sealed
public static class DrawingAttributeIds
type DrawingAttributeIds = class
Public Class DrawingAttributeIds
- Héritage
-
DrawingAttributeIds
Exemples
L’exemple suivant montre comment utiliser la DrawingAttributeIds classe pour détecter la propriété qui a changé dans un PropertyDataChanged événement.
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
Champs
| Nom | Description |
|---|---|
| Color |
Identifie la Color propriété. |
| DrawingFlags |
Identifie la propriété interne |
| IsHighlighter |
Identifie la IsHighlighter propriété. |
| StylusHeight |
Identifie la Height propriété. |
| StylusTip |
Identifie la StylusTip propriété. |
| StylusTipTransform |
Identifie la StylusTipTransform propriété. |
| StylusWidth |
Identifie la Width propriété. |