Class RemoveFormattingVisitor
An INodeVisitor implementation that works through the nodes and copies all non-formatting nodes to the document fragment in the same structure.
Implements
Inherited Members
Namespace: SdlSdl.DesktopEditorEditorApiImplementation
Assembly: Sdl.DesktopEditor.EditorApi.dll
Syntax
public class RemoveFormattingVisitor : CopyFragmentVisitor, INodeVisitor
Constructors
RemoveFormattingVisitor(IDocumentFragment)
Visits all child nodes and copies them to the IFrameworkDocumentFragment keeping the same structure but removing formatting tags (tag pairs).
Declaration
public RemoveFormattingVisitor(IDocumentFragment fragment)
Parameters
Type | Name | Description |
---|---|---|
IDocumentFragment | fragment | The document fragment to copy the nodes to. |
Methods
VisitLockedContentContainerNode(ILockedContentContainerNode)
Visits a locked content node and adds it to the last parent processed.
Declaration
public override void VisitLockedContentContainerNode(ILockedContentContainerNode node)
Parameters
Type | Name | Description |
---|---|---|
ILockedContentContainerNode | node |
Overrides
VisitRevisionMarkerContainerNode(IRevisionMarkerContainerNode)
Visits a revision marker container node and all its 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 |