Revit 2025 API
Text |
Provides access to settings that control Revit's Text Editor appearance and functionality.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
The TextEditorOptions type exposes the following members.
| Name | Description | |
|---|---|---|
| IsValidObject | Specifies whether the .NET object represents a valid Revit entity. | |
| ShowBorder | Show the border box around the text during editing. | |
| ShowOpaqueBackground | Show opaque background behind the text during editing. |
| Name | Description | |
|---|---|---|
| Dispose | Releases all resources used by the TextEditorOptions | |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object) | |
| GetTextEditorOptions | Returns the current Revit instance's TextEditorOptions. | |
| GetType | Gets the Type of the current instance. (Inherited from Object) | |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
These settings are stored in the Revit.ini file. All documents in Revit instances which use this Revit.ini will follow these settings.
public void SetEditorOptions() { TextEditorOptions editorOptions = TextEditorOptions.GetTextEditorOptions(); editorOptions.ShowBorder = false; editorOptions.ShowOpaqueBackground = true; }
Public Sub SetEditorOptions() Dim editorOptions As TextEditorOptions = TextEditorOptions.GetTextEditorOptions() editorOptions.ShowBorder = False editorOptions.ShowOpaqueBackground = True End Sub
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
See Also