Interface IText
- Namespace
- AngleSharp.Dom
- Assembly
- AngleSharp.dll
The Text interface represents the textual content of Element or Attr. If an element has no markup within its content, it has a single child implementing Text that contains the element's text. However, if the element contains markup, it is parsed into information items and Text nodes that form its children.
[DomName("Text")]
public interface IText : ICharacterData, INode, IEventTarget, IMarkupFormattable, IChildNode, INonDocumentTypeChildNode
- Inherited Members
- Extension Methods
Properties
AssignedSlot
Gets the assigned slot of the current text, if any.
[DomName("assignedSlot")]
IElement? AssignedSlot { get; }
Property Value
Text
Gets a string containing the text of all Text nodes logically adjacent to this Node, concatenated in document order.
[DomName("wholeText")]
string Text { get; }
Property Value
Methods
Split(int)
Breaks the node into two nodes at a specified offset.
[DomName("splitText")]
IText Split(int offset)
Parameters
offset
intThe point where the Node should be split.
Returns
- IText
The freshly created Text element with the rest of the content.