PropertyGrid

Wisej.Web.PropertyGrid

Namespace: Wisej.Web

Assembly: Wisej.Framework (3.0.0.0)

Provides a user interface for browsing the properties of an object.

public class PropertyGrid : Control, IEnumerable<GridItem>, IEnumerable, IReadOnly

Constructors

PropertyGrid()

Initializes a new instance of the PropertyGrid class.

Properties

BorderStyle

BorderStyle: Indicates the border style for the property grid.

BrowsableAttributes

Attribute[]arrow-up-right: Returns or sets the attributes used to filter the properties to display in the PropertyGrid.

ColumnHeadersVisible

Booleanarrow-up-right: Returns or sets whether the column that contains row headers is displayed.

EditOnEnter

Booleanarrow-up-right: Returns or sets whether the value cell automatically enters edit mode when the row is selected.

HelpVisible

Booleanarrow-up-right: Returns or sets whether the Help text is visible.

Item(index)

GridItem: Returns the GridItem at the specified index.

Item(label)

GridItem: Returns the first GridItem with the matching label.

NameFillWeight

Singlearrow-up-right: Returns or sets the FillWeight the Name column. 50 (%) is the default.

Throws:

NameTitle

Stringarrow-up-right: Returns or sets the title of the Name column shown when ColumnHeadersVisible is true.

PropertySort

PropertySort: Returns or sets the type of sorting the PropertyGrid uses to display properties.

ReadOnly

Booleanarrow-up-right: Returns or sets whether the user can edit the values of the SelectedObject.

Throws:

RightClickSelection

Booleanarrow-up-right: Returns or sets whether the grid item under the pointer gets selected on a right click.

RowHeadersVisible

Booleanarrow-up-right: Returns or sets whether the column that contains row headers is displayed.

SelectedGridItem

GridItem: Returns or sets the selected grid item.

SelectedObject

Objectarrow-up-right: Returns or sets the object for which the grid displays properties.

SelectedObjects

Object[]arrow-up-right: Returns or sets the currently selected objects.

Throws:

ShowHelpToolTips

Booleanarrow-up-right: Returns or sets whether the control shows the property description text in a tooltip.

ToolBar

ToolBar: Returns the ToolBar control at the top of the PropertyGrid.

ToolbarVisible

Booleanarrow-up-right: Returns or sets whether the toolbar is visible.

Tools

ComponentToolCollection: Returns the instance of ComponentToolCollection associated with this control.

ToolsPosition

Position: Returns or sets the position of the ComponentTool items associated with this control.

ValueTitle

Stringarrow-up-right: Returns or sets the title of the Value column shown when ColumnHeadersVisible is true.

Methods

CollapseAllGridItems()

Collapses all the categories in the PropertyGrid.

ExpandAllGridItems()

Expands all the categories in the PropertyGrid.

Refresh()

Reloads the updated values from the current SelectedObject or SelectedObjects.

Refresh(refreshChildren)

Reloads the updated values from the current SelectedObject or SelectedObjects.

Parameter
Type
Description

refreshChildren

True to also refresh all the children of this control.

ResetSelectedProperty()

Resets the selected property to its default value.

Events

NameFillWeightChanged

EventHandlerarrow-up-right Fired when the value o the NameFillWeight property changes.

PropertySortChanged

EventHandlerarrow-up-right Fired when the sort mode is changed.

PropertyValueChanged

PropertyValueChangedEventHandler Fired when a property value changes.

PropertyValueDataError

PropertyValueDataErrorEventHandler Fired when a property value is being changed but it is incompatible with the new value.

PropertyValueFormatting

PropertyValueFormattingEventHandler Fired when the property value is being formatted to be displayed.

ReadOnlyChanged

EventHandlerarrow-up-right Fired when the value of the ReadOnly property has changed.

SelectedGridItemBeginEdit

SelectedGridItemBeginEditEventHandler Fired when the selected GridItem is entering edit mode.

SelectedGridItemChanged

SelectedGridItemChangedEventHandler Fired when the selected GridItem is changed.

SelectedGridItemEndEdit

SelectedGridItemEndEditEventHandler Fired when the selected GridItem exits edit mode.

SelectedObjectsChanged

EventHandlerarrow-up-right Fired when the objects selected by the SelectedObjects property have changed.

ToolbarButtonClick

ToolBarButtonClickEventHandler Fired when a ToolBarButton on the ToolBar is clicked.

ToolbarButtonDropDown

ToolBarButtonClickEventHandler Fired when a drop-down style ToolBarButton or its down arrow is clicked.

ToolClick

ToolClickEventHandler Fired when a ComponentTool is clicked.

Implements

Name
Description

Bindable components implement this interface.

Provides access to the ReadOnly property for coontrols that support the read-only mode.

All wisej components implement this interface.

All wisej controls derived from the Control class must implement this interface.

Allows an object to serialize itself.

Last updated

Was this helpful?