共用方式為


Deleted Property

Deleted Property

Returns a value that specifies whether a known stroke is deleted from the ink.

Declaration

[C++]

[propget] HRESULT get_Deleted ([out, retval] VARIANT_BOOL* Deleted);

[Microsoft® Visual Basic® 6.0]

Public Property Get Deleted() As Boolean

Property Value

VARIANT_BOOL Returns a value that specifies whether a known stroke is deleted from the ink.

This property is read-only.

TRUE If the stroke is deleted from the ink.
FALSE If the stroke is not deleted from the ink.

Return Value

HRESULT value Description
S_OK Success.
E_INK_EXCEPTION An exception occurred inside the method.
E_POINTER The parameter pointer was invalid.

Example

[Visual Basic 6.0]

This Visual Basic 6.0 example iterates over the strokes in the InkCollector and sends the stroke Id to a message box.

' ...
Dim theStroke As Stroke
For Each theStroke In theInkCollector.Ink.Strokes
    If theStroke.Deleted Then
        MsgBox "Stroke " & theStroke.Id & " is deleted."
    End If
Next
' ...

Applies To