Class EditContainer
Creates an wrapper element in edit mode
Implements
Namespace: EPiServer.Web
Assembly: EPiServer.Cms.AspNetCore.Templating.dll
Version: 12.0.3Syntax
public abstract class EditContainer : Object, IDisposable
Constructors
EditContainer(HttpContext, String, String, String, String, Boolean)
Initializes a new instance of the Edit
Declaration
public EditContainer(HttpContext requestContext, string epiPropertyKey, string epiPropertyName, string editElementName, string editElementCssClass, bool useMvc)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
requestContext | The request context. |
System. |
epiPropertyKey | Key of the episerver property. |
System. |
epiPropertyName | Name of the episerver property. |
System. |
editElementName | Name of the edit element. |
System. |
editElementCssClass | The CSS class for edit element. |
System. |
useMvc | if set to |
Methods
CreateStartElementForEditMode(Func<String>)
Creates the start element for edit mode.
Declaration
public virtual void CreateStartElementForEditMode(Func<string> firstAttibuteWriter)
Parameters
Type | Name | Description |
---|---|---|
System. |
firstAttibuteWriter | The first attibute writer. |
CreateStartElementForEditMode(Func<String>, Func<String>)
Creates an wrapper element in context mode.
Declaration
public virtual void CreateStartElementForEditMode(Func<string> firstAttibuteWriter, Func<string> secondAttibuteWriter)
Parameters
Type | Name | Description |
---|---|---|
System. |
firstAttibuteWriter | The first attibute writer. |
System. |
secondAttibuteWriter | The second attibute writer. |
Dispose()
Triggers the end element
Declaration
public void Dispose()
Dispose(Boolean)
Triggers the end element when disposing
is true
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
System. |
disposing |
|
WriteEndElement(String)
Writes the end element.
Declaration
protected abstract void WriteEndElement(string endElement)
Parameters
Type | Name | Description |
---|---|---|
System. |
endElement | The end element. |
WriteStartElement(String)
Writes the start element.
Declaration
protected abstract void WriteStartElement(string startElement)
Parameters
Type | Name | Description |
---|---|---|
System. |
startElement | The start element. |