Using the Process Analyst > Process Analyst for Developers > Automation Model > IPen.Collection [Property][Get]

IPen.Collection [Property][Get]

Returns a reference to the Pens collection object that this pen belongs to.

Defined As

Execution Result

If the property get succeeds the return value will be Success. If the return variable is bad, the return value will be InvalidArgument. If the pen is deleted, the return value will be GeneralFailure.

Calling Syntax

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

[VBA]

Sub Example(pen As Object)
Dim pens As Object
`Getting Property value
Set pens = pen.Collection
End Sub

[Cicode]

FUNCTION Example(OBJECT hPen)
OBJECT pens;
// Getting current property value
pens = _ObjectGetProperty(hPen, "Collection");
END