TextEditorOptions Class


Text Editor Options Class

Provides access to settings that control Revit's Text Editor appearance and functionality.
Inheritance Hierarchy
System Object
Autodesk.Revit.UI TextEditorOptions

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class TextEditorOptions : IDisposable

The TextEditorOptions type exposes the following members.

Properties
Name Description
Public property IsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public property ShowBorder Show the border box around the text during editing.
Public property ShowOpaqueBackground Show opaque background behind the text during editing.
Top
Methods
Name Description
Public method Dispose Releases all resources used by the TextEditorOptions
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object )
Public method GetHashCode Serves as the default hash function.
(Inherited from Object )
Public method Static member GetTextEditorOptions Returns the current Revit instance's TextEditorOptions.
Public method GetType Gets the Type of the current instance.
(Inherited from Object )
Public method ToString Returns a string that represents the current object.
(Inherited from Object )
Top
Remarks
These settings are stored in the Revit.ini file. All documents in Revit instances which use this Revit.ini will follow these settings.
Example
public void SetEditorOptions()
{
    TextEditorOptions editorOptions = TextEditorOptions.GetTextEditorOptions();
    editorOptions.ShowBorder = false;
    editorOptions.ShowOpaqueBackground = true;
}
See Also