Using the Process Analyst > Process Analyst for Developers > Automation Model > IObjectViewPenItem.Selected [Property][Get]

IObjectViewPenItem.Selected [Property][Get]

Gets whether or not this pen is the selected pen in its pane.

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.

Limits

Remarks

Each Pane has one selected pen. It is visually emphasized by a vertical gradient fill.

Calling Syntax

This example assumes there is a valid pen item as retrieved from an ObjectView. (for example, VBA: objectView.Items.Item(1).Items.Item(1) This will be a pen).

[VBA]

Sub Example(objectViewPenItem As Object)
Dim selected As Boolean
`Getting Property value
selected = objectViewPenItem.Selected
End Sub

[Cicode]

FUNCTION Example(OBJECT hObjectViewPenItem)
// Getting property value
INT selected = _ObjectGetProperty(hObjectViewItem, "Selected");
END