Action
Collapse an item in a .NET property grid control.
Syntax
Collapse (sPropName)
Variable
|
Description
|
sPropName
|
The item to collapse.
STRING.
|
Notes
Collapse collapses the specified property grid item if it is currently expanded (that is, has visible children).
- If the item has an expand/collapse box (typically a + or - sign),
Silk Test Classic collapses the item by clicking on this box.
- Otherwise, if the property grid supports the use of double-click to expand and collapse items,
Silk Test Classic double-clicks on the item.
- If neither approach is supported by the control, or if the specified item is not collapsible (that is, has no children), an error is raised.
Example
PropertyGridSample.PropertyGrid.Collapse ("Accessibility")
// where "Accessibility" is an item that can be expanded or collapsed in the property grid