New to Telerik UI for WinForms? Start a free 30-day trial

Provides the requested type and parent for a new item and accepts an optional replacement item.

Definition

Namespace:Telerik.WinControls.UI

Assembly:Telerik.WinControls.UI.dll

Syntax:

C#
public class CreatePropertyGridItemEventArgs : EventArgs

Inheritance: objectEventArgsCreatePropertyGridItemEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes item-creation data for an item under the specified parent.

C#
public CreatePropertyGridItemEventArgs(Type itemType, PropertyGridItem parent)
Parameters:itemTypeType

The type requested by the item-creation caller.

parentPropertyGridItem

The parent item, or null for a top-level item.

Initializes item-creation data for a top-level item.

C#
public CreatePropertyGridItemEventArgs(Type itemType)
Parameters:itemTypeType

The type requested by the item-creation caller.

Properties

Gets or sets the item supplied by the creation handler. A PropertyGridItem is used as the replacement; otherwise, the table creates a standard item.

C#
public PropertyGridItemBase Item { get; set; }

Gets the type requested by the item-creation caller.

C#
public Type ItemType { get; }

Gets the parent item requested for the new item.

C#
public PropertyGridItem Parent { get; }