Class NodeOmitter
Implementation of IOmitsNode which makes use of an IReplacesNode to replace a node with its children.
Inheritance
System.Object
NodeOmitter
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: ZptSharp.Dom
Assembly: ZptSharp.dll
Syntax
public class NodeOmitter : IOmitsNode
Constructors
| Improve this Doc View SourceNodeOmitter(IReplacesNode)
Initializes a new instance of the NodeOmitter class.
Declaration
public NodeOmitter(IReplacesNode replacer)
Parameters
Type | Name | Description |
---|---|---|
IReplacesNode | replacer | Node replacer. |
Methods
| Improve this Doc View SourceOmit(INode)
Omits the specified node node from its DOM. The node's parent and children will still be a part of the DOM, but the node node itself will be removed.
Declaration
public void Omit(INode node)
Parameters
Type | Name | Description |
---|---|---|
INode | node | The node node to omit. |