Click or drag to resize
HtmlHelperExtensionsFormComponentsStyles Method
Renders necessary stylesheet link tags for using Form builder based forms on a live site. If no form component specific stylesheet is available, an empty string is returned.

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 13.0.131
Syntax
C#
public static IHtmlContentProxy FormComponentsStyles(
	this HtmlHelperExtensionPoint htmlHelper
)

Parameters

htmlHelper
Type: Kentico.Web.MvcHtmlHelperExtensionPoint
HtmlHelper extension.

Return Value

Type: IHtmlContentProxy
Returns stylesheet link tags for form components, or an empty string.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type HtmlHelperExtensionPoint. 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).
Exceptions
ExceptionCondition
ArgumentNullExceptionhtmlHelper is null.
Remarks
Form components' additional stylesheets are expected to reside within the '~/Content/FormComponents' directory. CSS files in that directory are bundled and this method renders a link tag referencing the bundle in its href attribute. The bundle exists only if the aforementioned directory does.
See Also