Using the Process Analyst > Process Analyst for Developers > Automation Model > IPens.RemoveAll [Method]

IPens.RemoveAll [Method]

Removes every Pen from the Pens collection.

Defined As

Execution Result

If the property get/set succeeds the return value will be Success. If the pens collection is deleted the return value will be GeneralFailure.

Calling Syntax

This example assumes there is a valid Pens collection object to be passed into the example methods.

[VBA]

Sub Panes(pens As Object)
pens.RemoveAll()
End Sub

[Cicode]

FUNCTION Example(OBJECT hPens)
_ObjectCallMethod(hPens, "RemoveAll");
END