Method CreateFilenameItem
CreateFilenameItem(string, string?, string?, IPropertyGridNewItemParams?)
Creates string property with ellipsis button which opens FileDialog when pressed.
public virtual IPropertyGridItem CreateFilenameItem(string label, string? name = null, string? value = null, IPropertyGridNewItemParams? prm = null)
Parameters
label
stringProperty label.
name
stringProperty name.
value
stringDefault property value.
prm
IPropertyGridNewItemParamsProperty item create parameters.
Returns
- IPropertyGridItem
Property declaration for use with Add(IPropertyGridItem, IPropertyGridItem?).
Remarks
In order to setup filename and attached FileDialog, you can use SetPropertyKnownAttribute(IPropertyGridItem, PropertyGridItemAttrId, object?, PropertyGridItemValueFlags) for DialogTitle, InitialPath, ShowFullPath, Wildcard attributes.