Share

TextEditorOptions 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: 26.1.0.0 (26.1.0.34)

Syntax

C#

public class TextEditorOptions : IDisposable

The TextEditorOptions type exposes the following members.

Properties

 NameDescription
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyShowBorder Show the border box around the text during editing.
Public propertyShowOpaqueBackground Show opaque background behind the text during editing.

Methods

 NameDescription
Public methodDisposeReleases all resources used by the TextEditorOptions
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodStatic memberGetTextEditorOptions Returns the current Revit instance's TextEditorOptions.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)

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

C#

public void SetEditorOptions()
{
    TextEditorOptions editorOptions = TextEditorOptions.GetTextEditorOptions();
    editorOptions.ShowBorder = false;
    editorOptions.ShowOpaqueBackground = true;
}

VB

Public Sub SetEditorOptions()
    Dim editorOptions As TextEditorOptions = TextEditorOptions.GetTextEditorOptions()
    editorOptions.ShowBorder = False
    editorOptions.ShowOpaqueBackground = True
End Sub

See Also

Reference

Was this information helpful?