Click or drag to resize
IEnumerableExtensionsGetVisibleComponents Method
Returns only components whose visibility condition evaluation results indicate that they should be displayed.

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> GetVisibleComponents(
	this IEnumerable<FormComponent> components,
	IFormComponentVisibilityEvaluator visibilityEvaluator
)

Parameters

components
Type: System.Collections.GenericIEnumerableFormComponent
Components collection.
visibilityEvaluator
Type: Kentico.Forms.Web.MvcIFormComponentVisibilityEvaluator
Visibility condition evaluator.

Return Value

Type: IEnumerableFormComponent

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