DrawingAttributes.RemovePropertyData(Guid) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定した Guidに関連付けられているカスタム プロパティを削除します。
public:
void RemovePropertyData(Guid propertyDataId);
public void RemovePropertyData(Guid propertyDataId);
member this.RemovePropertyData : Guid -> unit
Public Sub RemovePropertyData (propertyDataId As 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