Access formatting zones within shape

Access formatting zones within shape
16

Upvotes

Upvote

 Mar 11 2024
1 Comments (1 New)
New

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?

Comments
Microsoft

Hi @Sami_Romdhana , can you leave your email here so that we could discuss further?

https://forms.office.com/r/8w7T2bmZpM