Sami_Romdhana's avatar
Sami_Romdhana
Brass Contributor
Mar 11, 2024
Status:
New

Access formatting zones within shape

Context

We are working on an add-in focused on Formatting. Our specific need involves identifying textual and stylistic discrepancies within shapes, like font or size inconsistencies. The Office JS API limits us.

 

Pain

It's not possible to detect formatting zones within a shape's TextRange.

 

Example

Imagine a scenario where the text range reads "Hello World!" with the second word in bold:

Accessing the root text range's formatting doesn't reveal this bold formatting. While getSubstring offers a workaround, determining the correct indices to identify the bold section becomes a guessing game. Obtaining a comprehensive view of formatting requires scanning the entire text range character by character.

 

Request

Could we streamline this process by accessing a list of formatting ranges?