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 | false | true bold text. font number font number. height number italic undefined | false | true italic text. origin Point3d position relative to element's placement rotation YawPitchRollAngles Rotation relative to element's placement text string Text string underline undefined | false | true underline text. width Accessor ReadOnly number widthFactor undefined | number Defined in core/common/src/geometry/TextString.ts Line 41 Last Updated: 13 June, 2024