GetTextTrim

Description

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

Syntax

pbdom_comment_name.GetTextTrim()

Argument

Description

pbdom_comment_name

The name of a PBDOM_COMMENT


Return value

String.

Examples

If you have the comment <!-- A COMMENT -->, which has three spaces before and after the text and between the two words, the GetTextTrim method returns the string A COMMENT. The whitespace characters between the words are preserved.

Usage

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

See also

GetText

GetTextNormalize

SetText