TextSize Property


Height [ft] of the text in model space.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 17.0.0.0 (17.0.1090.0)
Since: 2016

Syntax

C#
[ObsoleteAttribute("This property is obsolete in Revit 2017. Use FontHeight instead.")]
public double TextSize { get; }
Visual Basic
<ObsoleteAttribute("This property is obsolete in Revit 2017. Use FontHeight instead.")> _
Public ReadOnly Property TextSize As Double
	Get
Visual C++
[ObsoleteAttribute(L"This property is obsolete in Revit 2017. Use FontHeight instead.")]
public:
property double TextSize {
	double get ();
}

Remarks

The value specifies the height of the text excluding both the ascender and descender. It is approximately the height of capital letters in the font.

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 →