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: 24.0.0.0 (24.0.0.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

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

Inheritance Hierarchy

SystemObject
  Autodesk.Revit.UITextEditorOptions

See Also

ArchiLabs

Stop fighting Revit automation.

Build repeatable BIM design and documentation workflows with scripts, data, and AI in one place, without wrestling brittle one-off automations.

Try ArchiLabs →