Using the Process Analyst > Process Analyst for Developers > Automation Model > IObjectViewItem.Expanded [Property][Get/Set]

IObjectViewItem.Expanded [Property][Get/Set]

Gets or Sets the expanded state of an item in the ObjectView. This change is reflected immediately in the visualization of the ObjectView.

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 there is a valid Item as retrieved from an Items Collection from an ObjectView. (for example, VBA: objectView.Items.Item(1)).


Sub Example(objectViewItem As Object)
Dim expanded As Boolean
`Getting Property value
expanded = objectViewItem.Expanded
`Setting Property value
objectViewItem.Expanded = False
End Sub


FUNCTION Example(OBJECT hObjectViewItem)
// Getting property value
INT nExpanded = _ObjectGetProperty(hObjectViewItem, "Expanded");
// Setting Property
_ObjectSetProperty(hObjectViewItem, "Expanded", 0);