Method CreateDirItem
CreateDirItem(string, string?, string?, IPropertyGridNewItemParams?)
Creates string property with ellipsis button which opens SelectDirectoryDialog when pressed.
IPropertyGridItem CreateDirItem(string label, string? name = null, string? value = null, IPropertyGridNewItemParams? prm = null)Parameters
- labelstring
- Property label. 
- namestring
- Property name. 
- valuestring
- Default property value. 
- prmIPropertyGridNewItemParams
- Property item create parameters. 
Returns
- IPropertyGridItem
- Property declaration for use with Add(IPropertyGridItem?, IPropertyGridItem?). 
Remarks
In order to setup folder name and attached SelectDirectoryDialog, you can use SetPropertyKnownAttribute(IPropertyGridItem, PropertyGridItemAttrId, object?, PropertyGridItemValueFlags) for DialogTitle, InitialPath, ShowFullPath attributes.