API Reference > imodeljs-common > Geometry > TextString TextString Class A single line of text, all with the same font, styles (underline, bold, italic), and size. This class also holds the origin and direction for the text. A paragraph is composed of one or more instances of TextStrings. Methods Name Description constructor(props: TextStringProps): TextString toJSON(): TextStringProps transformInPlace(transform: Transform): boolean Properties Name Type Description bold undefined | boolean bold text. font number font number. height number italic undefined | boolean italic text. origin Readonly Point3d position relative to element's placement rotation Readonly YawPitchRollAngles Rotation relative to element's placement text string Text string underline undefined | boolean underline text. width Accessor ReadOnly number widthFactor undefined | number Defined in core/common/src/geometry/TextString.ts Line 41 Last Updated: 12 June, 2024