GetTextTrim

Description

Returns the textual content of the current PBDOM_TEXT object with all surrounding whitespace characters removed.

Syntax

pbdom_text_name.GetTextTrim()

Argument

Description

pbdom_text_name

The name of a PBDOM_TEXT object


Return value

String.

Examples

If you have a PBDOM_TEXT object that represents the text node " MY TEXT ", calling GetTextNormalize returns the string "MY TEXT". All surrounding white spaces are removed. The whitespaces between the words "MY" and "TEXT" are preserved.

Usage

This method allows the caller to obtain the text data that is contained within the current PBDOM_TEXT object with all surrounding whitespaces removed. Internal whitespaces are preserved. If no textual value exists for the current PBDOM_TEXT object, or if only whitespaces exist, an empty string is returned.

See also

GetText

GetTextNormalize

SetText