Using the Process Analyst > Process Analyst for Developers > Automation Model > IPens.Count [Property][Get]

IPens.Count [Property][Get]

Gets the number of Pens in this collection.

Defined As

Execution Result

If the property get 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 Example(Pens As Object)
Dim count As Long
`Getting Property value
count = Pens.Count
End Sub

[Cicode]

FUNCTION Example(OBJECT hPens)
// Getting property value
INT nCount = _ObjectGetProperty(hPens, "Count");
END