INode.TextContent Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
This attribute returns the text content of this node and its descendants.
public string? TextContent { [Android.Runtime.Register("getTextContent", "()Ljava/lang/String;", "GetGetTextContentHandler:Org.W3c.Dom.INodeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] get; [Android.Runtime.Register("setTextContent", "(Ljava/lang/String;)V", "GetSetTextContent_Ljava_lang_String_Handler:Org.W3c.Dom.INodeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")] set; }
[<get: Android.Runtime.Register("getTextContent", "()Ljava/lang/String;", "GetGetTextContentHandler:Org.W3c.Dom.INodeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
[<set: Android.Runtime.Register("setTextContent", "(Ljava/lang/String;)V", "GetSetTextContent_Ljava_lang_String_Handler:Org.W3c.Dom.INodeInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
member this.TextContent : string with get, set
Property Value
The text content depends on the node type. For document, document type, and notation nodes, it is null. For element, attribute, entity, entity reference, and document fragment nodes, it is the concatenated text content of their children, excluding comments and processing instructions. The DOM specification also excludes element-content whitespace; an implementation that does not identify such whitespace may include it. For text, CDATA section, comment, and processing instruction nodes, it is the node value.
- Attributes
Exceptions
DOMSTRING_SIZE_ERR: Raised when it would return more characters than
fit in a DOMString variable on the implementation
platform.
NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.