Using the Process Analyst > Process Analyst for Developers > Automation Model > IObjectView.SelectedItem [Property][Get]

IObjectView.SelectedItem [Property][Get]

Gets the current primary selection in the ObjectView. This is the pen item that was last selected.

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.

Calling Syntax

This example assumes that there is an IObjectView object being passed in as a parameter.

[VBA]

Sub Example(objectView As Object)
Dim selectedItem As Object
`Getting Property value
Set selectedItem = objectView.SelectedItem
End Sub

[Cicode]

FUNCTION Example(OBJECT hObjectView)
// Getting property value
OBJECT hSelectedItem = _ObjectGetProperty(hObjectView, "SelectedItem");
END