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: 12.0.0
Syntax
C#
public static IHtmlString FormComponentsStyles(
	this ExtensionPoint<HtmlHelper> htmlHelper
)

Parameters

htmlHelper
Type: Kentico.Web.MvcExtensionPointHtmlHelper
HtmlHelper extension point.

Return Value

Type: IHtmlString
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 ExtensionPointHtmlHelper. 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