Class vdPropertyGrid
- Namespace
- vdPropertyGrid
- Assembly
- vdPropertyGrid.dll
Provides a grid control that can be used to display the properties of VectorDraw objects.
public class vdPropertyGrid : UserControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, IContainerControl
- Inheritance
-
vdPropertyGrid
- Implements
- Inherited Members
Remarks
The vdPropertyGrid control integrates with the Windows Forms PropertyGrid to provide a user-friendly interface for editing properties of VectorDraw objects. It supports single and multiple object selection, property filtering (visibility and read-only states), and automatic UI updates based on property changes.
Key Features:
- Multiple object selection with grouping by type
- Property filtering and customization
- Automatic refresh and redraw on property changes
Events:
- PropertyValueChanged: Fires when a property value is modified
- FilterVisibilityProperty: Fires to control property visibility
- FilterReadOnlyProperty: Fires to control property read-only state
- SelectedGridItemChanged: Fires when a grid item selection changes
- SelectedObjectChange: Fires before object selection changes
Constructors
- vdPropertyGrid()
Initializes a new instance of the vdPropertyGrid class.
Properties
- Font
Get/Set the TrueType Font name used to display the items of the grid control.
- Grid
Returns the PropertyGrid child control.
- MaxSelectedObjectDisplay
Get/Set the maximum number of selected objects to be displayed in the grid control. Default values is 0.
- ReadOnly
Get/Set the visibility for all items in the property grid.
- SelectedObject
Get/Set the selected object of the grid control.
- ShowSelectedItemComboBox
Get/Set a boolean value that represents the visibility of selected items combo box.
- ShowSingleFiguresinComboBox
If this value is false then only groups and single entities will appear in the combo box. If this value is True then groups and all entities will appear in the combo box. Default value is true.
- UseGroupItems
Use this boolean value in order to control if groupd items are going to be added in the combobox of the properties list.
Methods
- Clear()
Clear the seleted object and update the globalized property descriptors.
- Dispose(bool)
Clean up any resources being used.
- OnResize(EventArgs)
Raises the System.Windows.Forms.UserControl.Resize event.
- RefreshGrid()
Forces the control to invalidate its client area and immediately redraw itself and any child controls.
Events
- FilterReadOnlyProperty
Fires before a property added in the property grid to control in order to make it as redonly or not.
- FilterVisibilityProperty
Fires before a property added in the property grid to control the visibility.
- PropertyValueChanged
Fires when a value in the property grid was changed.
- SelectedGridItemChanged
Fires a new grid item get the focus.
- SelectedObjectChange
Fires before a new object selected in the property grid control. Important to set the VectorDraw.Serialize.GlobalizedDictionary.FreezeGridEvents false in order to fire this event.