Show / Hide Table of Contents

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 Source

Replace(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.

Extension Methods

NodeReplacerExtensions.Replace(IReplacesNode, INode, INode)
NodeReplacerExtensions.Replace(IReplacesNode, INode, IReadOnlyList<INode>)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX