Compartir a través de


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 ();
}
/** @property */
public boolean get_Deleted ()
public function get Deleted () : boolean
Not applicable.

Property Value

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.

Example

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 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

See Also

Reference

Stroke Class
Stroke Members
Microsoft.Ink Namespace
Ink