Class FragmentCreator
Concrete implementation of the IFragmentCreator interface.
Inheritance
System.Object
FragmentCreator
Implements
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.HtmlParsing
Assembly: EPiServer.Framework.dll
Version: 8.11.0Syntax
public class FragmentCreator : IFragmentCreator
Constructors
FragmentCreator()
Declaration
public FragmentCreator()
Methods
CreateHtmlFragment(HtmlFragmentType)
Factory method for creating the specified HTML fragment type.
Declaration
public HtmlFragment CreateHtmlFragment(HtmlFragmentType fragmentType)
Parameters
Type | Name | Description |
---|---|---|
HtmlFragmentType | fragmentType | Type of the fragment. |
Returns
Type | Description |
---|---|
HtmlFragment | A HTML fragment that can be used to hold information about the indicated fragment type. |
CreateHtmlFragmentFromStream(IHtmlSource)
Creates a HTML fragment from stream.
Declaration
public HtmlFragment CreateHtmlFragmentFromStream(IHtmlSource source)
Parameters
Type | Name | Description |
---|---|---|
IHtmlSource | source | The source for the HTML stream. |
Returns
Type | Description |
---|---|
HtmlFragment | A HTML fragment that can be used to hold information about the indicated fragment type. |
Remarks
This method will scan for and create any HTML fragment type except TextFragment. I e this method should be called after a '<' has been detected in the HTML source.
To fully populate the returned HtmlFragment yuo should call the Parse method on the returned object.