Class XhtmlStringIndexer
Implementation of softlink parsing for XhtmlString.
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.SpecializedProperties
Assembly: EPiServer.dll
Version: 7.19.2Syntax
public class XhtmlStringIndexer : IPropertySoftLinkIndexer<XhtmlString>, IPropertySoftLinkIndexer
Constructors
XhtmlStringIndexer(IPermanentLinkMapper)
Constructor
Declaration
public XhtmlStringIndexer(IPermanentLinkMapper permanentLinkMapper)
Parameters
| Type | Name | Description |
|---|---|---|
| IPermanentLinkMapper | permanentLinkMapper |
Methods
HandleContentFragmentsWithLinks(HashSet<SoftLink>, IEnumerable<ContentFragment>, IContent)
Adds softlinks from contentFragments.
Declaration
protected virtual void HandleContentFragmentsWithLinks(HashSet<SoftLink> softLinks, IEnumerable<ContentFragment> contentFragments, IContent owner)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.HashSet<SoftLink> | softLinks | |
| System.Collections.Generic.IEnumerable<ContentFragment> | contentFragments | |
| IContent | owner |
HandleElementsWithLinks(HashSet<SoftLink>, IEnumerable<ElementFragment>, IContent)
Adds softlinks from elements.
Declaration
protected virtual void HandleElementsWithLinks(HashSet<SoftLink> softLinks, IEnumerable<ElementFragment> elements, IContent owner)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Collections.Generic.HashSet<SoftLink> | softLinks | |
| System.Collections.Generic.IEnumerable<ElementFragment> | elements | |
| IContent | owner |
ResolveReferences(XhtmlString, IContent)
Returns SoftLink references for all linked content items.
Declaration
public virtual IEnumerable<SoftLink> ResolveReferences(XhtmlString xHtmlString, IContent owner)
Parameters
| Type | Name | Description |
|---|---|---|
| XhtmlString | xHtmlString | |
| IContent | owner |
Returns
| Type | Description |
|---|---|
| System.Collections.Generic.IEnumerable<SoftLink> |