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

IPen.Select [Method]

Makes this pen the primary selected pen.

Defined As

Execution Result

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

Remarks

Calling this method will also trigger PenSelectionChanged [Event].

Calling Syntax

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

[VBA]

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

[Cicode]

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