Node.TextContent

Node.TextContent property

This attribute returns the text content of this node and its descendants. When it is defined to be null, setting it has no effect. On setting, any possible children this node may have are removed and, if it the new string is not empty or null, replaced by a single Text node containing the string this attribute is set to.

public virtual string TextContent { get; set; }

Property Value

The content of the text.

See Also