DrawingAttributes.RemovePropertyData(Guid) メソッド

定義

指定した Guid に関連付けられたカスタム プロパティを削除します。

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

パラメーター

propertyDataId
Guid

削除するカスタム プロパティに関連付けられた Guid

例外

propertyDataIdDrawingAttributes オブジェクトのカスタム プロパティに関連付けられていません。

次の例では、オブジェクトからカスタム プロパティを削除する方法を DrawingAttributes 示します。

       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

適用対象

こちらもご覧ください