Skip to content

ManagedPropertyGrid

Managed PropertyGrid.

UI element class: System.Windows.Forms.PropertyGridInternal.PropertyGridView

Extends ManagedObject

Extends SeSSimulatedObject

Behavior Pattern: ManagedPropertyGridBehavior

Property Summary

Property Description Getter Setter
Expanded True if selected item is expanded GetExpanded
SelectedItem Returns the structure with label, value, expanded fields GetSelectedItem
SelectedLabel Label of the selected item. GetSelectedLabel
SelectedText Text of the selected item. GetSelectedText
VisibleRowCount Number of visible rows GetVisibleRowCount

Action Summary

Action Description
DoCollapse Collapses an item of this object.
DoExpand Expands an item of this object.
DoGetValue Gets value of a grid item with a given label.
DoSelectItem Selects an item of this object.
DoSetValue Sets value of an grid item of this object.
DoShowDropDown Show dropdown (or custom dialog) for an item.

Property Detail

Expanded

True if selected item is expanded

Type: boolean

Accessors: GetExpanded

value = SeS('SomeManagedPropertyGrid').GetExpanded()

SelectedItem

Returns the structure with label, value, expanded fields

Type: string

Accessors: GetSelectedItem

value = SeS('SomeManagedPropertyGrid').GetSelectedItem()

SelectedLabel

Label of the selected item.

Type: string

Accessors: GetSelectedLabel

value = SeS('SomeManagedPropertyGrid').GetSelectedLabel()

SelectedText

Text of the selected item.

Type: string

Accessors: GetSelectedText

value = SeS('SomeManagedPropertyGrid').GetSelectedText()

VisibleRowCount

Number of visible rows

Type: number

Accessors: GetVisibleRowCount

value = SeS('SomeManagedPropertyGrid').GetVisibleRowCount()

Action Detail

DoCollapse

Collapses an item of this object.

SeS('SomeManagedPropertyGrid').DoCollapse(val)

Parameters:

Name Type Description
val string | number name/index of the value to Collapse.

Returns:

boolean: 'true' if success, 'false' otherwise.

DoExpand

Expands an item of this object.

SeS('SomeManagedPropertyGrid').DoExpand(val)

Parameters:

Name Type Description
val string | number name/index of the value to Expand.

Returns:

boolean: 'true' if success, 'false' otherwise.

DoGetValue

Gets value of a grid item with a given label.

SeS('SomeManagedPropertyGrid').DoGetValue(label)

Parameters:

Name Type Description
label string | number Property grid row label or index

Returns:

object: Item Value

DoSelectItem

Selects an item of this object.

SeS('SomeManagedPropertyGrid').DoSelectItem(indexLabel)

Parameters:

Name Type Description
indexLabel string | number name/index of the value to select.

Returns:

boolean: 'true' if success, 'false' otherwise.

DoSetValue

Sets value of an grid item of this object.

SeS('SomeManagedPropertyGrid').DoSetValue(label, val)

Parameters:

Name Type Description
label string | number Property grid row label or index
val string | number value to set

Returns:

boolean: 'true' if success, 'false' otherwise.

DoShowDropDown

Show dropdown (or custom dialog) for an item.

SeS('SomeManagedPropertyGrid').DoShowDropDown(indexLabel)

Parameters:

Name Type Description
indexLabel string | number name/index of the item to show dropdown for.

Returns:

boolean: 'true' if success, 'false' otherwise.