Table of Contents

Property TextHeight

Namespace
GeometryHelper.Dxf
Assembly
GeometryHelper.dll

TextHeight

Gets or sets how high the letters are, as AutoCAD's TextHeight: unscaled, as AutoCAD 2021's API reads it, the height drawn (group 41 of the context data) over the Scale; 4 where the record gives none. Words drawn 8 high at a scale of 2 read 4, and MText gives them 8 high, as drawn.

public double TextHeight { get; set; }

Property Value

double

Set, written times the Scale, as AutoCAD 2021 writes it: 5 at a scale of 2 gives 41 of 10. Words met by leaders on their left only are moved to keep those landings, as AutoCAD 2021 moves them: up by as much more as the left is met below their top, words "ABC" at (100, 50, 0) met at the middle of their top line moving to (100, 53, 0) for a height of 10 from 4. Words met on their right are left where they are, which AutoCAD lands by their font's width; where the drawing's FontSearchPath measures them (one line in an SHX or TrueType font), met on the right alone they move to keep that landing, "ABC" of txt.shx to (84, 53, 0) for a height of 10, the base point of the content to (82, 48, 0), and met on both sides they move as on the left, the leaders on the right landed anew (check F1b).

Exceptions

ArgumentOutOfRangeException

Thrown when the height set is not a finite number above nought.

InvalidOperationException

Thrown when the MULTILEADER is erased.