Interface IAddsComment
An object which adds comments to the DOM, either before or after a specified node.
Namespace: ZptSharp.SourceAnnotation
Assembly: ZptSharp.Abstractions.dll
Syntax
public interface IAddsComment
Methods
| Improve this Doc View SourceAddCommentAfter(INode, String)
Adds a comment immediately after the end of a specified node
.
Declaration
void AddCommentAfter(INode node, string commentText)
Parameters
Type | Name | Description |
---|---|---|
INode | node | The node after-which the comment should be added. |
System.String | commentText | The text of the DOM comment. |
AddCommentBefore(INode, String)
Adds a comment immediately before the beginning of a specified node
.
Declaration
void AddCommentBefore(INode node, string commentText)
Parameters
Type | Name | Description |
---|---|---|
INode | node | The node before-which the comment should be added. |
System.String | commentText | The text of the DOM comment. |