Table of Contents

Class BizFormItemGenerator

Namespace
CMS.OnlineForms
Assembly
CMS.OnlineForms.dll

Generator of the specific BizForm items

public static class BizFormItemGenerator
Inheritance
object
BizFormItemGenerator

Methods

NewInstance<ItemType>(string)

Creates new instance of the given type

public static ItemType NewInstance<ItemType>(string className) where ItemType : BizFormItem, new()

Parameters

className string

Class name

Returns

ItemType

Type Parameters

ItemType

RegisterBizForm(string, BizFormItemFactory)

Registers the given BizForm item class

public static void RegisterBizForm(string className, BizFormItemFactory factory)

Parameters

className string

Class name to register

factory BizFormItemFactory

Factory to use for new items

RegisterBizForm<ItemType>(string)

Registers the given BizForm item class

public static void RegisterBizForm<ItemType>(string className) where ItemType : BizFormItem, new()

Parameters

className string

Class name to register

Type Parameters

ItemType

RegisterDefaultFactory(BizFormItemFactory)

Registers the default factory for the BizForm items, which overlaps the default one

public static void RegisterDefaultFactory(BizFormItemFactory factory)

Parameters

factory BizFormItemFactory

Factory to register