Table of Contents

Method CreateChoicesItem

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

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 string

Property label.

name string

Property name.

choices IPropertyGridChoices

Enumeration elements.

value object

Default property value.

prm IPropertyGridNewItemParams

Property item create parameters.

Returns

IPropertyGridItem

Property declaration for use with Add(IPropertyGridItem, IPropertyGridItem?).