Skip to content

PropertyGrid Control Members

See Also

PropertyGrid Overview

See Also

Property Grid ActiveX Control v24.0

PropertyGrid Control Members

Public Methods

Public Method AboutBox
Public Method AddCategory
Public Method BeginUpdate
BeginUpdate method will "lock" the property grid. This should be called when adding, deleting, or modifying a large number of items.
Public Method EditItem
Public Method 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.
Public Method FindItem
Public Method HitTest
Tests a point to see if a PropertyGridItem is present. If there is, then a reference to that item is returned.
Public Method InsertCategory
InsertCategory method is used to insert a new category to the Property Grid at a specific position.

Public Properties

Public Property 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.

Public Property BorderStyle
Gets/Sets the border style for Property Grid.

Public Property Categories
Gets the categories collection of this PropertyGrid.

Public Property EditHwnd
Handle of Edit Window where user enters text in edit mode.

Public Property EditMode
Specifies whether the PropertyGrid is currently in edit mode (An item is being edited).

Public Property Enabled
Returns/sets a value that determines whether an object can respond to user-generated events.

Public Property EnableMarkup
Allows the use of a XAML snippet to be used for the property grid items.

Public Property Font
Gets/sets the font used to display text in the property grid.

Public Property HelpBackColor
Gets/sets the background color for the PropertyGrid help panel.

Public Property HelpForeColor
Gets/sets the forecolor/text color for the PropertyGrid help panel.

Public Property HelpHeight
Gets/Sets the height of the built-in help box at the bottom of the PropertyGrid.

Public Property HelpVisible
Gets/Sets a Boolean value indicating whether the built-in help panel is visible.

Public Property HideSelection
Specifies whether the selection in a Property Grid is hidden when the control loses focus.

Public Property HighlightChangedButtonItems
Gets/sets whether the text in the in-place button will be bold if the value has changed from the DefaultValue.

Public Property hWnd
Returns the handle to the PropertyGrid control.

Public Property Icons
A collection of icons that can be used in the PropertyGridItem and PropertyGridItemConstraint objects.

Public Property LineColor
Gets/sets the line color for the property grid. This is the area of the property grid that surrounds the property grid items.

Public Property LockRedraw
Returns whether the grid will be redrawn after an item is added.

Public Property NavigateCaptions
Specifies whether item captions will receive focus in the grid when items are navigated when pressing the Tab key.

Public Property NavigateItems
The NavigateItems property is used to specify how the items in the grid are navigated when pressing the Tab key.

Public Property PaintManager
Pointer to the paint manager used to draw the property grid.

Public Property PropertySort
Gets/Sets the way in which PropertyGridItems are sorted in the PropertyGrid.

Public Property ReCreateReparented
Gets/Sets whether variable item height is allowed in the property grid.

Public Property RightToLeft
Gets/Sets a value indicating whether the Property Grid elements are aligned to support locales using right-to-left fonts.

Public Property Selected
Returns a reference to the PropertyGridItem that is currently selected/has focus.

Public Property ShowInplaceButtonsAlways
Specifies whether to always display all in-place buttons for all items regardless of which item is currently selected.

Public Property SplitterPos
Gets/Sets the position of the splitter that divides the item description from the item data.

Public Property ToolBarVisible
Gets/Sets a Boolean value indicating whether the built-in toolbar is visible.

Public Property ToolTipContext
ToolTipContext object represents the tool tip window that is used to display tool tips.

Public Property TopIndex
Returns the index of the topmost item displayed in the Property Grid.

Public Property VariableHelpHeight
Gets/Sets whether the user can resize the help box with the mouse.

Public Property VariableItemsHeight
Gets/Sets whether variable item height is allowed in the property grid.

Public Property VariableSplitterPos
Gets/Sets whether the user can move the property grid splitter.

Public Property Verbs
Verbs property is a collection of PropertyGridVerb objects that are displayed in the verb panel.

Public Property VerbsHeight
VerbsHeight property is used to get or set the height of the verb panel when visible.

Public Property ViewBackColor
Gets/Sets the view backcolor for the PropertyGrid. This is the background color of the PropertyGridItems.

Public Property ViewCategoryForeColor
Gets/Sets the color used to display the text of Category PropertyGridItems.

Public Property ViewForeColor
Gets/Sets the view forecolor for the property grid. This is the foreground color of the property grid items.

Public Property ViewReadOnlyForeColor
ViewReadOnlyForeColor is used to get or set the text color of read only items.

Public Property VisualTheme
Gets/Sets the visual theme that is used by PropertyGrid.

Events

Public Event AfterEdit
Occurs when the value of a PropertyGridItem has changed.

Public Event CancelEdit
Occurs if the edit operation has been canceled.

Public Event 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.

Public Event EditChanged
Occurs when the contents of an item has changed while in edit mode.

Public Event ExpandChanged
Occurs when an expand/collapse button is clicked.

Public Event 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.

Public Event 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.

Public Event 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.

Public Event MouseDown
Occurs when the user presses a mouse button.

Public Event MouseMove
Occurs when the user moves the mouse.

Public Event MouseUp
Occurs when the user releases a mouse button.

Public Event PropertySortChanged
Occurs when the PropertySort property has changed.

Public Event 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.

Public Event ReCreated
Occurs when an editable item goes into edit mode.

Public Event RequestEdit
Occurs when a new item is selected in the PropertyGrid.

Public Event SelectionChanged
Occurs when the selection in the PropertyGrid changes.

Public Event ValueChanged
Occurs when a value in the PropertyGrid changes.

Public Event 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

PropertyGrid Overview


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.