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

例外

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

次の例では、 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

適用対象

こちらもご覧ください