November Happy Hour will be moved to Thursday December 5th.

Interface IStringFragment

States the representation of fragments in content. That is a fragment can have an internal format (db) and an external format.

Namespace: EPiServer.Core.Html.StringParsing
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public interface IStringFragment : IReferenceMap
Remarks

The implemented class should marked as Serializable or implement ISerializable interface

Properties

InternalFormat

Gets the internal format of the fragment, that is what is stored in db

Declaration
string InternalFormat { get; }
Property Value
Type Description
System.String

The internal format.

Methods

GetControl(TemplateControl)

Gets the control that can be placed in Page Control collection

Declaration
Control GetControl(TemplateControl hostPage)
Parameters
Type Name Description
System.Web.UI.TemplateControl hostPage
Returns
Type Description
System.Web.UI.Control

GetEditFormat()

Gets the format for edit mode

Declaration
string GetEditFormat()
Returns
Type Description
System.String

GetViewFormat()

Gets the format for view mode

Declaration
string GetViewFormat()
Returns
Type Description
System.String

Extension Methods