AddChildItem Method
Description
Adds a child item to this PropertyItem.
Syntax
Public Function AddChildItem( _
ByVal Type As [PropertyItemType](XtremePropertyGrid~Enumerations~PropertyItemType_EN.md), _
ByVal Title As String, _
Optional ByVal Value As Variant _
) As [PropertyGridItem](XtremePropertyGrid~PropertyGridItem.md)
Parameters
- Type
Specifies the type of the new item. It can be one of the following: - PropertyItemString: PropertyGridItem of type String.
- PropertyItemNumber: PropertyGridItem of type Number.
- PropertyItemBool: PropertyGridItem of type Boolean.
- PropertyItemColor: PropertyGridItem of type Color.
- PropertyItemFont: PropertyGridItem of type PropertyGridItemFont.
- PropertyItemDouble: PropertyGridItem of type Double.
- PropertyItemDate: PropertyGridItem of type PropertyGridItemDate.
- PropertyItemPicture: PropertyGridItem of type Picture.
- PropertyItemEnum: PropertyGridItem of type Enum.
- PropertyItemEnumFlags: PropertyGridItem of type EnumFlags. This will create a Flags value item in the Property Grid control.
- PropertyItemCategory: PropertyGridItem is a Category.
- PropertyItemMultilineString: PropertyGridItem that contains a multi-line string. When using this property, a dropdown button will appear next to the item text that, when clicked, will display an edit window with the entire line of text.
-
PropertyItemOption: PropertyGridItem of type PropertyGridItemOption.
-
Title
The caption of the new PropertyGridItem. -
Value
The initial value of the new item.
Return Type
A PropertyGridItem object.
See Also
- PropertyGridItemDouble Object
- PropertyGridItem Object
- AddChildItemBinded Method
- InsertChildItem Method
Example
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.