Interface IFormComponentActivator
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
FormComponentDefinitionForm 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
FormComponentDefinitionForm component definition for which to create a component instance.
context
FormComponentContextContextual 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
FormComponentDefinitionForm component definition for which to create a component instance.
properties
FormComponentPropertiesProperties to be loaded into the component.
context
FormComponentContextContextual 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
orproperties
is null.