Table of Contents

Interface IFormComponentActivator

Namespace
Kentico.Forms.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

Defines methods for creating form components and their properties.

public interface IFormComponentActivator
Extension Methods

Methods

CreateDefaultProperties(FormComponentDefinition)

Creates a new instance of the form component's properties specified by component's definition.

FormComponentProperties CreateDefaultProperties(FormComponentDefinition definition)

Parameters

definition FormComponentDefinition

Form component definition for which to create a default properties instance.

Returns

FormComponentProperties

Returns an instance of form component properties as described by its definition.

Exceptions

ArgumentNullException

Thrown when definition is null.

CreateFormComponent(FormComponentDefinition, FormComponentContext)

Creates a new instance of the form component specified by its definition with default property values.

FormComponent CreateFormComponent(FormComponentDefinition definition, FormComponentContext context)

Parameters

definition FormComponentDefinition

Form component definition for which to create a component instance.

context FormComponentContext

Contextual information specifying where the form component is being used.

Returns

FormComponent

Returns an instance of form component as described by its definition.

Exceptions

ArgumentNullException

Thrown when definition is null.

CreateFormComponent(FormComponentDefinition, FormComponentProperties, FormComponentContext)

Creates a new instance of the form component specified by its definition using the properties given.

FormComponent CreateFormComponent(FormComponentDefinition definition, FormComponentProperties properties, FormComponentContext context)

Parameters

definition FormComponentDefinition

Form component definition for which to create a component instance.

properties FormComponentProperties

Properties to be loaded into the component.

context FormComponentContext

Contextual information specifying where the form component is being used.

Returns

FormComponent

Returns an instance of form component as described by its definition.

Exceptions

ArgumentNullException

Thrown when definition or properties is null.