Interface IReplacesNode
Replaces the specified node with a collection of replacement nodes.
Namespace: ZptSharp.Dom
Assembly: ZptSharp.Abstractions.dll
Syntax
public interface IReplacesNode
Methods
| Improve this Doc View SourceReplace(INode, IList<INode>)
Replace the specified node with a collection of replacements.
Note that this means that the current node will be detached/removed from its parent as a side-effect. Further DOM manipulation should occur using the replacement nodes and not the replaced node.
Declaration
void Replace(INode toReplace, IList<INode> replacements)
Parameters
Type | Name | Description |
---|---|---|
INode | toReplace | The node to replace. |
System.Collections.Generic.IList<INode> | replacements | The replacements. |