IPens.RemoveAll [Method]
- Last UpdatedJul 18, 2023
- 1 minute read
Removes every Pen from the Pens collection.
Defined As
-
[VBA] RemoveAll()
-
[Cicode] RemoveAll()
-
[C++] HRESULT RemoveAll()
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