DrawingAttributes.RemovePropertyData(Guid) Methode

Definition

Entfernt die benutzerdefinierte Eigenschaft, die der angegebenen Guid zugeordnet ist.

public:
 void RemovePropertyData(Guid propertyDataId);
public void RemovePropertyData (Guid propertyDataId);
member this.RemovePropertyData : Guid -> unit
Public Sub RemovePropertyData (propertyDataId As Guid)

Parameter

propertyDataId
Guid

Die Guid, die der zu entfernenden benutzerdefinierten Eigenschaft zugeordnet ist.

Ausnahmen

propertyDataId ist keiner benutzerdefinierten Eigenschaft des DrawingAttributes-Objekts zugeordnet.

Beispiele

Im folgenden Beispiel wird veranschaulicht, wie eine benutzerdefinierte Eigenschaft aus einem DrawingAttributes -Objekt entfernt wird.

       Guid customProperty = new Guid("12345678-9012-3456-7890-123456789012");

       void RemovePropertyDataId(DrawingAttributes attributes)
       {
           if (attributes.ContainsPropertyData(customProperty))
           {
               attributes.RemovePropertyData(customProperty);
           }
       }
Private customProperty As New Guid("12345678-9012-3456-7890-123456789012")

Sub RemovePropertyDataId(ByVal attributes As Ink.DrawingAttributes)

    If attributes.ContainsPropertyData(customProperty) Then
        attributes.RemovePropertyData(customProperty)
    End If

End Sub

Gilt für:

Weitere Informationen