PropertyGridElement
Represents the main element of the RadPropertyGrid control that contains the property table and toolbar.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class PropertyGridElement : StackLayoutElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementStackLayoutElementPropertyGridElement...
Implements:
Inherited Members
Constructors
public PropertyGridElement()
Properties
Gets or sets a value indicating whether custom grouping of properties can be applied programmatically.
public bool EnableCustomGrouping { get; set; }
Gets or sets a value indicating whether properties can be filtered using the search functionality in the toolbar.
public bool EnableFiltering { get; set; }
Gets or sets a value indicating whether properties can be grouped by categories in the property grid.
public bool EnableGrouping { get; set; }
Gets or sets a value indicating whether properties can be sorted alphabetically in the property grid.
public bool EnableSorting { get; set; }
Gets the PropertyGridTableElement that displays the properties in a table format with value editors.
public PropertyGridTableElement PropertyTableElement { get; }
Gets the PropertyGridSplitElement.
public PropertyGridSplitElement SplitElement { get; }
Gets the PropertyGridToolbarElement that provides search and categorization functionality.
public PropertyGridToolbarElement ToolbarElement { get; }
Gets or sets the height of the PropertyGridToolbarElement in pixels.
public float ToolbarElementHeight { get; set; }
Gets or sets a value indicating whether the PropertyGridToolbarElement is visible and accessible to users.
public bool ToolbarVisible { get; set; }
Methods
Automatically adjusts the column widths to optimize the visibility of property names and values in the property grid.
public void BestFit()
Automatically adjusts the column widths using the specified fitting algorithm to optimize property display.
public void BestFit(PropertyGridBestFitMode mode)
The PropertyGridBestFitMode that determines the fitting algorithm to use.
Collapses all the categories in the PropertyGridElement.
public void CollapseAllGridItems()
Creates and initializes the child elements of the PropertyGridElement.
protected override void CreateChildElements()
Overrides:
Creates the split element that contains the property grid table and help panel.
protected virtual PropertyGridSplitElement CreateSplitElement()
A new instance of PropertyGridSplitElement.
Creates the toolbar element used for searching and categorizing properties.
protected virtual PropertyGridToolbarElement CreateToolbarElement()
A new instance of PropertyGridToolbarElement.
Called when the DPI scaling factor changes, allowing the property grid to adjust for the new scale.
public override void DpiScaleChanged(SizeF scaleFactor)
The new DPI scale factor.
Overrides:
Expands all the categories in the PropertyGridElement.
public void ExpandAllGridItems()
Initializes the default fields and properties of the PropertyGridElement.
protected override void InitializeFields()
Overrides:
Called when the style of the element changes. Ensures proper cleanup and refreshing of the property table.
protected override void OnStyleChanged(RadPropertyChangedEventArgs e)
The event arguments containing the style change information.
Overrides:
Resets the currently selected property to its default value as defined by the property descriptor.
public void ResetSelectedProperty()