Description
Sets the content of a PBDOM_ELEMENT object to the text provided.
Syntax
pbdom_element_name.SetText(string strText)
Argument |
Description |
---|---|
pbdom_element_name |
The name of a PBDOM_ELEMENT object |
strText |
String to be set as the content of the PBDOM_ELEMENT object |
Return value
PBDOM_OBJECT. The PBDOM_ELEMENT object modified and returned as a PBDOM_OBJECT.
Usage
Existing text content and non-text content are replaced by the text provided in strText. A value of null for strText is equivalent to an empty string value. If the PBDOM_ELEMENT is to have both text content and nested elements, use the SetContent method instead of SetText.
See also