Table of Contents

Method CreatePropertyAsString

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

CreatePropertyAsString(string, string?, object, PropertyInfo, TypeConverter?)

Creates property with string editor.

public virtual IPropertyGridItem CreatePropertyAsString(string label, string? name, object instance, PropertyInfo propInfo, TypeConverter? typeConverter = null)

Parameters

label string

Property label.

name string

Property name.

instance object

Object instance which contains the property.

propInfo PropertyInfo

Property information.

typeConverter TypeConverter

Type converter. Optional.

Returns

IPropertyGridItem

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

Remarks

If label or name is null, propInfo is used to get them.