StrokeCollection.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

範例

下列範例示範如何從 StrokeCollection 移除自訂屬性。 此範例假設有 一個 InkCanvas 稱為 inkCanvas1 ,且 Guid 稱為 timestamp

if (inkCanvas1.Strokes.ContainsPropertyData(timestamp))
{
    inkCanvas1.Strokes.RemovePropertyData(timestamp);
}
Private Sub RemovePropertyId()

    If inkCanvas1.Strokes.ContainsPropertyData(timestamp) Then
        inkCanvas1.Strokes.RemovePropertyData(timestamp)
    End If

End Sub

適用於