Class EditContainer

Creates an wrapper element in edit mode

Inheritance
System.Object
EditContainer
Implements
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Web
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public abstract class EditContainer : IDisposable

Constructors

EditContainer(RequestContext, String, String, String, String, Boolean)

Initializes a new instance of the EditContainer class.

Declaration
public EditContainer(RequestContext requestContext, string epiPropertyKey, string epiPropertyName, string editElementName, string editElementCssClass, bool useMvc)
Parameters
Type Name Description
System.Web.Routing.RequestContext requestContext

The request context.

System.String epiPropertyKey

Key of the episerver property.

System.String epiPropertyName

Name of the episerver property.

System.String editElementName

Name of the edit element.

System.String editElementCssClass

The CSS class for edit element.

System.Boolean useMvc

if set to true use MVC for partial rendering.

Methods

CreateStartElementForEditMode(Func<String>)

Creates the start element for edit mode.

Declaration
public virtual void CreateStartElementForEditMode(Func<string> firstAttibuteWriter)
Parameters
Type Name Description
System.Func<System.String> 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.Func<System.String> firstAttibuteWriter

The first attibute writer.

System.Func<System.String> 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.Boolean disposing

true to write the end element.

WriteEndElement(String)

Writes the end element.

Declaration
protected abstract void WriteEndElement(string endElement)
Parameters
Type Name Description
System.String endElement

The end element.

WriteStartElement(String)

Writes the start element.

Declaration
protected abstract void WriteStartElement(string startElement)
Parameters
Type Name Description
System.String startElement

The start element.

Implements

System.IDisposable

Extension Methods