Поделиться через


Stroke.Deleted Property

Stroke.Deleted Property

Gets a value that indicates whether the Stroke object has been deleted from its parent Ink object.

Definition

Visual Basic .NET Public ReadOnly Property Deleted As Boolean
C# public bool Deleted { get; }
Managed C++ public: __property bool* get_Deleted();

Property Value

System.Boolean. Whether the Stroke object has been deleted from its parent Ink object.

This property is read-only. This property has no default value.

true The stroke has been deleted from its parent Ink object.
false The stroke still exists within its parent Ink object.

Remarks

A reference to a Stroke object may exist after the Stroke object is deleted from its parent Ink object. Use the Deleted property to determine whether a Stroke object has been deleted.

Examples

[C#]

This C# example displays a message indicating whether the Stroke object, theStroke, has been deleted.

if (theStroke.Deleted)
{
    MessageBox.Show("Stroke " + theStroke.Id + " is deleted.");
}
else
{
    MessageBox.Show("Stroke " + theStroke.Id + " exists.");
}

[Visual Basic .NET]

This Microsoft® Visual Basic® .NET example displays a message indicating whether the Stroke object, theStroke, has been deleted.

If (theStroke.Deleted) Then
    MessageBox.Show("Stroke " & theStroke.Id & " is deleted.")
Else
    MessageBox.Show("Stroke " & theStroke.Id & " exists.")
End If

See Also