RVTDocs.com
Namespace: Autodesk.Revit.DB Class: TextElement

TextElement.Text

Property
Description:
The content of the element as a plain string stripped of all formating.
Remarks:

If a new text content is set, all previous formating that might have been set on parts of the original text will be lost. After setting the new text, only the formating parameters of the associated text type will be applied.

The value of this property can also be accessed via the TEXT_TEXT Built-In parameter.

Syntax
public string Text { get; set; }
Exceptions
Exception Condition
ArgumentNullException When setting this property: A non-optional argument was null