TextStyleResolver Class @beta
Resolves the effective style of TextBlockComponents and Leaders, taking into account overrides/style of the instance and its parent(s).
Methods
Name | Description | |
---|---|---|
constructor(args: TextStyleResolverArgs): TextStyleResolver | ||
findTextStyle(id: string): TextStyleSettings | Looks up an AnnotationTextStyle by ID. | |
resolveParagraphSettings(paragraph: Paragraph): TextStyleSettings | Resolves the effective style for a Paragraph. | |
resolveRunSettings(paragraph: Paragraph, run: Run): TextStyleSettings | Resolves the effective style for a Run. | |
resolveTextAnnotationLeaderSettings(leader: TextAnnotationLeader): TextStyleSettings | Resolves the effective style for a TextAnnotationLeader. |
Properties
Name | Type | Description | |
---|---|---|---|
blockSettings Readonly | TextStyleSettings | The resolved style of the TextBlock. | |
scaleFactor Readonly | number | The scale factor of the model containing the TextBlock. |
Defined in
Last Updated: 29 July, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.