Method CreateChoicesItem
CreateChoicesItem(string, string?, IPropertyGridChoices, object?, IPropertyGridNewItemParams?)
Creates enumeration property.
IPropertyGridItem CreateChoicesItem(string label, string? name, IPropertyGridChoices choices, object? value = null, IPropertyGridNewItemParams? prm = null)
Parameters
labelstringProperty label.
namestringProperty name.
choicesIPropertyGridChoicesEnumeration elements.
valueobjectDefault property value.
prmIPropertyGridNewItemParamsProperty item create parameters.
Returns
- IPropertyGridItem
Property declaration for use with Add(IPropertyGridItem?, IPropertyGridItem?).