Class TextOnlyFragmentVisitor
An INodeVisitor implementation that works through the nodes and copies only the text nodes to the new fragment
Implements
Inherited Members
Namespace: Sdl.DesktopEditor.EditorApi.Implementation
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public class TextOnlyFragmentVisitor : CopyFragmentVisitor, INodeVisitorConstructors
TextOnlyFragmentVisitor(IDocumentFragment)
Visits all child nodes and copies them to the IFrameworkDocumentFragment keeping the same structure but removing formatting tags (tag pairs).
Declaration
public TextOnlyFragmentVisitor(IDocumentFragment fragment)Parameters
| Type | Name | Description | 
|---|---|---|
| IDocumentFragment | fragment | The document fragment to copy the nodes to. | 
Methods
VisitBookmarkNode(IBookmarkNode)
Visits and ignores a bookmark
Declaration
public override void VisitBookmarkNode(IBookmarkNode node)Parameters
| Type | Name | Description | 
|---|---|---|
| IBookmarkNode | node | 
Overrides
VisitCommentContainerNode(ICommentContainerNode)
Visits a Comment, ignores it and then visits all its children.
Declaration
public override void VisitCommentContainerNode(ICommentContainerNode node)Parameters
| Type | Name | Description | 
|---|---|---|
| ICommentContainerNode | node | 
Overrides
VisitLocationMarkerNode(ILocationMarkerNode)
Visits and ignores the location marker
Declaration
public override void VisitLocationMarkerNode(ILocationMarkerNode node)Parameters
| Type | Name | Description | 
|---|---|---|
| ILocationMarkerNode | node | 
Overrides
VisitLockedContentContainerNode(ILockedContentContainerNode)
Visits a locked content node, ignores it and then visits all its children.
Declaration
public override void VisitLockedContentContainerNode(ILockedContentContainerNode node)Parameters
| Type | Name | Description | 
|---|---|---|
| ILockedContentContainerNode | node | 
Overrides
VisitPlaceholderTagNode(IPlaceholderTagNode)
Visits and ignores the placeholder tag
Declaration
public override void VisitPlaceholderTagNode(IPlaceholderTagNode node)Parameters
| Type | Name | Description | 
|---|---|---|
| IPlaceholderTagNode | node | 
Overrides
VisitRevisionMarkerContainerNode(IRevisionMarkerContainerNode)
Visits a revision node ignores it but if its not a delete revision then visit the children
Declaration
public override void VisitRevisionMarkerContainerNode(IRevisionMarkerContainerNode node)Parameters
| Type | Name | Description | 
|---|---|---|
| IRevisionMarkerContainerNode | node | 
Overrides
VisitTagPairContainerNode(ITagPairContainerNode)
Visits a tag pair container node, ignores it and then visits all its children.
Declaration
public override void VisitTagPairContainerNode(ITagPairContainerNode node)Parameters
| Type | Name | Description | 
|---|---|---|
| ITagPairContainerNode | node | 
Overrides
VisitTextNode(ITextNode)
Visits a Text node and adds it to the output fragment
Declaration
public override void VisitTextNode(ITextNode node)Parameters
| Type | Name | Description | 
|---|---|---|
| ITextNode | node |