Click or drag to resize
IEditablePropertiesCollectorGetFormComponents Method
Collects properties annotated with EditingComponentAttribute from given model and returns collection of FormComponents used for editing those properties in UI.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
IEnumerable<FormComponent> GetFormComponents(
	Object model,
	FormComponentContext context
)

Parameters

model
Type: SystemObject
Object with editable properties.
context
Type: Kentico.Forms.Web.MvcFormComponentContext
Contextual information specifying where the form components are being used.

Return Value

Type: IEnumerableFormComponent
Collection of FormComponents that enables to edit model in Form builder's UI. Values from the model are bound to components that display them.
Exceptions
ExceptionCondition
ArgumentNullExceptionThrown when model is null.
See Also