Click or drag to resize
IEnumerableExtensionsGetDisplayedComponents Method
Returns filtered components which will be displayed in form based on given parameters.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public static IEnumerable<FormComponent> GetDisplayedComponents(
	this IEnumerable<FormComponent> components,
	ContactInfo contact,
	BizFormInfo formInfo,
	BizFormItem formItem,
	IFormComponentVisibilityEvaluator visibilityEvaluator
)

Parameters

components
Type: System.Collections.GenericIEnumerableFormComponent
Original collection of components.
contact
Type: CMS.ContactManagementContactInfo
Contact for which the filter is performed, can be null.
formInfo
Type: CMS.OnlineFormsBizFormInfo
Form representation.
formItem
Type: CMS.OnlineFormsBizFormItem
Existing form item, can be null.
visibilityEvaluator
Type: Kentico.Forms.Web.MvcIFormComponentVisibilityEvaluator
Form component visibility evaluator.

Return Value

Type: IEnumerableFormComponent
Filtered components.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IEnumerableFormComponent. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
See Also