TextEditorOptions Class


Provides access to settings that control Revit's Text Editor appearance and functionality.

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 17.0.0.0 (17.0.1090.0)
Since: 2017

Syntax

C#
public class TextEditorOptions : IDisposable
Visual Basic
Public Class TextEditorOptions _
	Implements IDisposable
Visual C++
public ref class TextEditorOptions : IDisposable

Remarks

These settings are stored in the Revit.ini file. All documents in Revit instances which use this Revit.ini will follow these settings.

Examples

Copy C#
public void SetEditorOptions()
{
    TextEditorOptions editorOptions = TextEditorOptions.GetTextEditorOptions();
    editorOptions.ShowBorder = false;
    editorOptions.ShowOpaqueBackground = true;
}
Copy VB.NET
Public Sub SetEditorOptions()
    Dim editorOptions As TextEditorOptions = TextEditorOptions.GetTextEditorOptions()
    editorOptions.ShowBorder = False
    editorOptions.ShowOpaqueBackground = True
End Sub

Inheritance Hierarchy

System Object
Autodesk.Revit.UI TextEditorOptions

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →