DrawingAttributes.RemovePropertyData(Guid) Methode

Definitie

Hiermee verwijdert u de aangepaste eigenschap die aan de opgegeven Guideigenschap is gekoppeld.

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

Parameters

propertyDataId
Guid

De Guid gekoppelde eigenschap die moet worden verwijderd.

Uitzonderingen

propertyDataId is niet gekoppeld aan een aangepaste eigenschap van het DrawingAttributes object.

Voorbeelden

In het volgende voorbeeld ziet u hoe u een aangepaste eigenschap uit een DrawingAttributes object verwijdert.

       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

Van toepassing op

Zie ook