Node.TextContent
Contents
[
Hide
]Node.TextContent property
Represents the text content of the node and its descendants.
public virtual string TextContent { get; set; }
Property Value
A string, or null. Its value depends on the situation:
If the node is a document or a doctype, TextContent
returns null.Note: To get all the text and CDATA data for the whole document, use
document.DocumentElement.TextContent
.If the node is a CDATA section, a comment, a processing instruction, or a text node, TextContent
returns, or sets, the text inside the node, i.e., the NodeValue
.For other node types, TextContent
returns the concatenation of the TextContent
of every child node, excluding comments and processing instructions.
Remarks
Reference:
See Also
- class Node
- namespace Aspose.Html.Dom
- assembly Aspose.HTML