Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

Class StringFragmentExtensions

Extends IStringFragment with convenient methods

Inheritance
System.Object
StringFragmentExtensions
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.Core.Html.StringParsing
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public static class StringFragmentExtensions

Methods

GetControl(IStringFragment, TemplateControl)

Gets the control that can be placed in Page Control collection

Declaration
[Obsolete("Use IStringFragmentControlResolver to resolve control for fragment")]
public static Control GetControl(this IStringFragment fragment, TemplateControl hostPage)
Parameters
Type Name Description
IStringFragment fragment
System.Web.UI.TemplateControl hostPage
Returns
Type Description
System.Web.UI.Control