Interface IGetsAnnotationForNode
An object which gets the annotation text for a specified node.
Namespace: ZptSharp.SourceAnnotation
Assembly: ZptSharp.Abstractions.dll
Syntax
public interface IGetsAnnotationForNode
Methods
| Improve this Doc View SourceGetAnnotation(INode, TagType)
Gets the annotation text for the node.
Declaration
string GetAnnotation(INode node, TagType tagType = TagType.Start)
Parameters
| Type | Name | Description |
|---|---|---|
| INode | node | Node. |
| TagType | tagType | The tag type to use for the annotation. |
Returns
| Type | Description |
|---|---|
| System.String | The annotation text. |
GetPreReplacementAnnotation(INode, TagType)
Gets the annotation text for the node, using the pre-replacement source annotation for the node.
Declaration
string GetPreReplacementAnnotation(INode node, TagType tagType = TagType.Start)
Parameters
| Type | Name | Description |
|---|---|---|
| INode | node | Node. |
| TagType | tagType | The tag type to use for the annotation. |
Returns
| Type | Description |
|---|---|
| System.String | The annotation text. |