Click or drag to resize
HtmlHelperInlineEditorExtensionsBeginInlineEditor Method
Renders beginning tag of inline editor wrapper element.

Namespace: Kentico.PageBuilder.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public static MvcInlineEditor BeginInlineEditor(
	this ExtensionPoint<HtmlHelper> instance,
	string inlineEditorName,
	string propertyName,
	Object htmlAttributes = null,
	string wrapperElement = "div"
)

Parameters

instance
Type: Kentico.Web.MvcExtensionPointHtmlHelper
HtmlHelper extension point.
inlineEditorName
Type: SystemString
The name of the inline editor used for editing the widget property.
propertyName
Type: SystemString
The name of the widget property managed by the inline editor.
htmlAttributes (Optional)
Type: SystemObject
Additional inline editor element attributes.
wrapperElement (Optional)
Type: SystemString
Element in which the inline editor will be wrapped.

Return Value

Type: MvcInlineEditor
Returns an object representing inline editor.

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
ArgumentNullExceptionThrown when instance is null.
ArgumentExceptionThrown when or is null or an empty string.
See Also