Gets the current primary selection in the ObjectView. This is the pen item that was last selected.
If the property get succeeds, the return value will be Success. If the return variable is bad, the return value will be InvalidArgument.
This example assumes that there is an IObjectView object being passed in as a parameter.
Sub Example(objectView As Object)
Dim selectedItem As Object
`Getting Property value
Set selectedItem = objectView.SelectedItem
FUNCTION Example(OBJECT hObjectView)
// Getting property value
OBJECT hSelectedItem = _ObjectGetProperty(hObjectView, "SelectedItem");