Method CreateChoicesItem
CreateChoicesItem(string, string?, IPropertyGridChoices, object?, IPropertyGridNewItemParams?)
Creates enumeration property.
public virtual IPropertyGridItem CreateChoicesItem(string label, string? name, IPropertyGridChoices choices, object? value = null, IPropertyGridNewItemParams? prm = null)
Parameters
label
stringProperty label.
name
stringProperty name.
choices
IPropertyGridChoicesEnumeration elements.
value
objectDefault property value.
prm
IPropertyGridNewItemParamsProperty item create parameters.
Returns
- IPropertyGridItem
Property declaration for use with Add(IPropertyGridItem, IPropertyGridItem?).