Using the Process Analyst > Process Analyst for Developers > Automation Model > IPen.Delete [Method]

IPen.Delete [Method]

Deletes the pen from the Process Analyst.

Defined As

Execution Result

If the function succeeds, the return value will be Success. If the pen is already deleted, the return value will be GeneralFailure.

Remarks

Calling this method will mark the pen for deletion, meaning any further calls to methods or properties on the pen will result in a GeneralFailure error. The pen will be removed from the display immediately after making this call.

See Also

IPen.IsDeleted [Property][Get]

Calling Syntax

Assumes you have passed a valid pen object into the function.

[VBA]

Sub Example(pen As Object)
pen.Delete
End Sub

[Cicode]

FUNCTION Example(OBJECT hPen)
_ObjectCallMethod(hPen, "Delete");
END