Table of Contents

Interface IPropertyGridFactory

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

Contains static methods related to IPropertyGrid.

public interface IPropertyGridFactory

Remarks

There is only one IPropertyGridFactory instance in the application.

Properties

DefaultCreateStyle

Defines default style for the newly created PropertyGrid controls.

Methods

CreateChoices()

Creates property choices list for use with CreateFlagsItem(string, string?, IPropertyGridChoices, object?, IPropertyGridNewItemParams?) and CreateChoicesItem(string, string?, IPropertyGridChoices, object?, IPropertyGridNewItemParams?).

CreateChoices(Type)

Creates property choices list for the given enumeration type.

CreateChoicesOnce(Type)

Creates property choices list for the given enumeration type or returns it from the internal cache if it was previously created.

CreateNewItemParams(PropertyInfo?)

Creates new IPropertyGridNewItemParams instance.

CreatePropertyGrid()

Creates new IPropertyGrid instance.

GetChoices<T>()

Returns IPropertyGridChoices for the given enumeration type.

GetCustomLabel<T>(string)

Gets custom label for the given Type and PropertyInfo.

GetNewItemParams(Type, PropertyInfo)

Gets IPropertyGridNewItemParams for the given Type and PropertyInfo.

GetPropRegistry(Type, PropertyInfo)

Gets IPropertyGridPropInfoRegistry for the given Type and PropertyInfo.

GetTypeRegistry(Type)

Gets IPropertyGridTypeRegistry for the given Type.

RegisterPropCreateFunc(Type, PropertyGridItemCreate)

Registers IPropertyGridItem create function for specific Type.

SetCustomLabel<T>(string, string)

Sets custom label for the property.