VegaRise.NET
HomeAPI Reference
Back to DOM

TextContainerClass

Definition

Namespace
DOM.Elements.TextElements
Assembly
DOM.dll

Represents a container capable of holding multiple text runs. A manages the lifecycle of elements, provides text-creation helpers, and supports search, replace, and removal operations across all contained text elements. TextContainer, IText

Properties

TextsIText

Gets a collection of all elements contained within this container. This property dynamically filters child elements and returns only text nodes. IText

Methods

Creates a new element using the provided string content and adds it to the container. Text

Searches all contained elements for the specified text. Applies optional regular expression behavior, whole-word matching, and case-sensitivity. Returns the indices of the text elements that contain at least one match. IText

Removes a text element at the specified index, if it exists within this container.

Replaces occurrences of the specified text across all contained elements. Applies optional regular expression behavior, whole-word matching, and case-sensitivity. IText