PropertyGrid Control Members
See Also

Property Grid ActiveX Control v24.0
PropertyGrid Control Members
Public Methods
AboutBox
AddCategory
BeginUpdate
BeginUpdate method will "lock" the property grid. This should be called when adding, deleting, or modifying a large number of items.
EditItem
EndUpdate
EndUpdate method is called to end the update process started by BeginUpdate. EndUpdate will "unlock" the grid after you have finished adding, deleting, or modifying a large amount of items.
FindItem
HitTest
Tests a point to see if a PropertyGridItem is present. If there is, then a reference to that item is returned.
InsertCategory
InsertCategory method is used to insert a new category to the Property Grid at a specific position.
Public Properties
AllowEdit
Specifies whether items in the PropertyGrid are allowed to be edited by the user. This can be thought of as Read-Only mode when set to False.
BorderStyle
Gets/Sets the border style for Property Grid.
Categories
Gets the categories collection of this PropertyGrid.
EditHwnd
Handle of Edit Window where user enters text in edit mode.
EditMode
Specifies whether the PropertyGrid is currently in edit mode (An item is being edited).
Enabled
Returns/sets a value that determines whether an object can respond to user-generated events.
EnableMarkup
Allows the use of a XAML snippet to be used for the property grid items.
Font
Gets/sets the font used to display text in the property grid.
HelpBackColor
Gets/sets the background color for the PropertyGrid help panel.
HelpForeColor
Gets/sets the forecolor/text color for the PropertyGrid help panel.
HelpHeight
Gets/Sets the height of the built-in help box at the bottom of the PropertyGrid.
HelpVisible
Gets/Sets a Boolean value indicating whether the built-in help panel is visible.
HideSelection
Specifies whether the selection in a Property Grid is hidden when the control loses focus.
HighlightChangedButtonItems
Gets/sets whether the text in the in-place button will be bold if the value has changed from the DefaultValue.
hWnd
Returns the handle to the PropertyGrid control.
Icons
A collection of icons that can be used in the PropertyGridItem and PropertyGridItemConstraint objects.
LineColor
Gets/sets the line color for the property grid. This is the area of the property grid that surrounds the property grid items.
LockRedraw
Returns whether the grid will be redrawn after an item is added.
NavigateCaptions
Specifies whether item captions will receive focus in the grid when items are navigated when pressing the Tab key.
NavigateItems
The NavigateItems property is used to specify how the items in the grid are navigated when pressing the Tab key.
PaintManager
Pointer to the paint manager used to draw the property grid.
PropertySort
Gets/Sets the way in which PropertyGridItems are sorted in the PropertyGrid.
ReCreateReparented
Gets/Sets whether variable item height is allowed in the property grid.
RightToLeft
Gets/Sets a value indicating whether the Property Grid elements are aligned to support locales using right-to-left fonts.
Selected
Returns a reference to the PropertyGridItem that is currently selected/has focus.
ShowInplaceButtonsAlways
Specifies whether to always display all in-place buttons for all items regardless of which item is currently selected.
SplitterPos
Gets/Sets the position of the splitter that divides the item description from the item data.
ToolBarVisible
Gets/Sets a Boolean value indicating whether the built-in toolbar is visible.
ToolTipContext
ToolTipContext object represents the tool tip window that is used to display tool tips.
TopIndex
Returns the index of the topmost item displayed in the Property Grid.
VariableHelpHeight
Gets/Sets whether the user can resize the help box with the mouse.
VariableItemsHeight
Gets/Sets whether variable item height is allowed in the property grid.
VariableSplitterPos
Gets/Sets whether the user can move the property grid splitter.
Verbs
Verbs property is a collection of PropertyGridVerb objects that are displayed in the verb panel.
VerbsHeight
VerbsHeight property is used to get or set the height of the verb panel when visible.
ViewBackColor
Gets/Sets the view backcolor for the PropertyGrid. This is the background color of the PropertyGridItems.
ViewCategoryForeColor
Gets/Sets the color used to display the text of Category PropertyGridItems.
ViewForeColor
Gets/Sets the view forecolor for the property grid. This is the foreground color of the property grid items.
ViewReadOnlyForeColor
ViewReadOnlyForeColor is used to get or set the text color of read only items.
VisualTheme
Gets/Sets the visual theme that is used by PropertyGrid.
Events
AfterEdit
Occurs when the value of a PropertyGridItem has changed.
CancelEdit
Occurs if the edit operation has been canceled.
DblClick
Occurs when the description half (left side) of a PropertyGridItem has been double-clicked, and when a category item is double-clicked. The item that was double-clicked is passed to this event.
EditChanged
Occurs when the contents of an item has changed while in edit mode.
ExpandChanged
Occurs when an expand/collapse button is clicked.
InplaceButtonDown
Occurs when a combo button or expand button that was added by the developer is clicked. Built-in buttons such as the color picker button do not trigger this event. It is used only for custom buttons.
KeyDown
Occurs when a key is pressed down and the property grid has focus. This event will not be triggered while editing a property grid item, only when an item or category is selected.
KeyUp
Occurs when a key is released and the property grid has focus. This event will not be triggered while editing a property grid item, only when an item or category is selected.
MouseDown
Occurs when the user presses a mouse button.
MouseMove
Occurs when the user moves the mouse.
MouseUp
Occurs when the user releases a mouse button.
PropertySortChanged
Occurs when the PropertySort property has changed.
RClick
Occurs when you right-click anywhere on the property grid. The item that was right-clicked is passed to this event. This event is not triggered if you right-click the item you are currently editing.
ReCreated
Occurs when an editable item goes into edit mode.
RequestEdit
Occurs when a new item is selected in the PropertyGrid.
SelectionChanged
Occurs when the selection in the PropertyGrid changes.
ValueChanged
Occurs when a value in the PropertyGrid changes.
VerbClick
VerbClick event occurs when a user clicks on a verb or when a verb has focus and the enter key is pressed.
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.