Share via


Stroke.Deleted Property

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

Namespace:  Microsoft.Ink
Assembly:  Microsoft.Ink (in Microsoft.Ink.dll)

Syntax

'Declaration
Public ReadOnly Property Deleted As Boolean
'Usage
Dim instance As Stroke 
Dim value As Boolean 

value = instance.Deleted
public bool Deleted { get; }
public:
property bool Deleted {
    bool get ();
}
public function get Deleted () : boolean

Property Value

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

Value

Meaning

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

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.");
}

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

Platforms

Windows 7, Windows Vista, Windows Server 2008 R2, Windows Server 2008

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Stroke Class

Stroke Members

Microsoft.Ink Namespace

Ink