PropertyGrid
Wisej.Web.PropertyGrid
Last updated
Was this helpful?
Wisej.Web.PropertyGrid
Last updated
Was this helpful?
Namespace: Wisej.Web
Assembly: Wisej.Framework (4.0.0.0)
Provides a user interface for browsing the properties of an object.
Initializes a new instance of the PropertyGrid class.
Font:
BorderStyle: Indicates the border style for the property grid. (Default: None
)
Attribute[]: Returns or sets the attributes used to filter the properties to display in the PropertyGrid.
Rectangle: Returns the client rectangle excluding the non-client caption and borders dimensions.
Boolean: Returns or sets whether the column that contains row headers is displayed. (Default: False
)
Boolean: Returns or sets whether the value cell automatically enters edit mode when the row is selected. (Default: True
)
Boolean: Returns or sets whether the Help text is visible. (Default: True
)
GridItem: Returns the GridItem at the specified index.
GridItem: Returns the first GridItem with the matching label.
Single: Returns or sets the FillWeight the Name column. 50 (%) is the default. (Default: 50
)
Throws:
ArgumentException A value less than -1 is assigned to the property.
String: Returns or sets the title of the Name column shown when ColumnHeadersVisible is true.
PropertySort: Returns or sets the type of sorting the PropertyGrid uses to display properties. (Default: CategorizedAlphabetical
)
Boolean: Returns or sets whether the user can edit the values of the SelectedObject. (Default: False
)
Throws:
InvalidOperationException The specified value when setting this property is true, the current cell is in edit mode, and the current cell contains changes that cannot be committed.
Exception The specified value when setting this property would cause the control to enter edit mode, but initialization of the editing cell value failed and either there is no handler for the DataError event or the handler has set the ThrowException property to true. The exception object can typically be cast to type FormatException.
Boolean: Returns or sets whether the grid item under the pointer gets selected on a right click. (Default: False
)
Boolean: Returns or sets whether the column that contains row headers is displayed. (Default: True
)
Int32: Returns the default row height defined in the current theme.
GridItem: Returns or sets the selected grid item.
Object: Returns or sets the object for which the grid displays properties. (Default: null
)
Object[]: Returns or sets the currently selected objects.
Throws:
ArgumentException One of the items in the array of objects had a null value.
Boolean: Returns or sets whether the control shows the property description text in a tooltip. (Default: False
)
ToolBar: Returns the ToolBar control at the top of the PropertyGrid.
Boolean: Returns or sets whether the toolbar is visible. (Default: False
)
ComponentToolCollection: Returns the instance of ComponentToolCollection associated with this control.
Position: Returns or sets the position of the ComponentTool items associated with this control. (Default: Top
)
String: Returns or sets the title of the Value column shown when ColumnHeadersVisible is true.
Collapses all the categories in the PropertyGrid.
Disposes the control.
Expands all the categories in the PropertyGrid.
Returns a list of PropertyDescriptor used to populate the PropertyGrid.
Returns: IList<PropertyDescriptor>. A list of PropertyDescriptor objects representing the properties to load into the property grid.
The default implementation uses [GetProperties](https://docs.microsoft.com/dotnet/api/system.componentmodel.typedescriptor.getproperties(system.object,system.attribute) to retrieve the list of public properties from the selected objects.
Fires the NameFillWeightChanged event.
Fires the PropertySortChanged event.
Fires the PropertyValueChanged event.
Fires the PropertyValueDataError event.
Fires the PropertyValueFormatting event.
Fires the ReadOnlyChanged event.
Fires the SelectedGridItemBeginEdit event.
e
A SelectedGridItemBeginEditEventArgs that contains the event data.
Fires the SelectedGridItemChanged event.
Fires the SelectedGridItemEndEdit event.
Fires the SelectedObjectsChanged event.
Fires the ButtonClick event.
Fires the ButtonDropDown event.
Fires the ToolClick event.
Renders the client component.
Returns: Boolean.
Returns: Boolean.
Returns: Boolean.
Reloads the updated values from the current SelectedObject or SelectedObjects.
Reloads the updated values from the current SelectedObject or SelectedObjects.
Resets the selected property to its default value.
EventHandler Fired when the value o the NameFillWeight property changes.
EventHandler Fired when the sort mode is changed.
PropertyValueChangedEventHandler Fired when a property value changes.
PropertyValueDataErrorEventHandler Fired when a property value is being changed but it is incompatible with the new value.
PropertyValueFormattingEventHandler Fired when the property value is being formatted to be displayed.
EventHandler Fired when the value of the ReadOnly property has changed.
SelectedGridItemBeginEditEventHandler Fired when the selected GridItem is entering edit mode.
SelectedGridItemChangedEventHandler Fired when the selected GridItem is changed.
SelectedGridItemEndEditEventHandler Fired when the selected GridItem exits edit mode.
EventHandler Fired when the objects selected by the SelectedObjects property have changed.
ToolBarButtonClickEventHandler Fired when a ToolBarButton on the ToolBar is clicked.
ToolBarButtonClickEventHandler Fired when a drop-down style ToolBarButton or its down arrow is clicked.
ToolClickEventHandler Fired when a ComponentTool is clicked.
Provides access to the UserData
and Tag
properties associated to the component implementing this interface.
Bindable components implement this interface.
Controls that support drag & drop operations implement this interface.
All wisej components implement this interface.
All wisej controls derived from the Control class must implement this interface.
Allows an object to serialize itself.