HorizontalTextAlignment Enumeration


Horizontal Text Alignment Enumeration

Supported types of horizontal alignment of a text element and text justification within the text containing box.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public enum HorizontalTextAlignment
Members
Member name Value Description
Center 2 Text is Center justified inside the containing text box, and the center side of the text box remains in place as the width changes.
Left 0 Text is Left justified inside the containing text box, and the left side of the text box remains in place as the width changes.
Right 1 Text is Right justified inside the containing text box, and the right side of the text box remains in place as the width changes.
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 →