Hi,
Details:
VSTO addin for Word
Word version: 2405 (Build 17628.20188 Click-to-Run)
Problem:
In our VSTO addin, when a user is focussing a modern comment, we'd like to disable certain ribbon buttons.
This is because some of our features don't work when a modern comment is focused.
Word has this behaviour with their own ribbons. In the 'Home' ribbon, Word disables the font type, font size and Styles sections of the ribbon in this scenario.
Is there a way my Word C# VSTO Addin can replicate this behaviour?
What I've tried:
- Reading the Microsoft.Office.Interop.Word.Comments and Microsoft.Office.Interop.Word.Comment classes & docs. I see nothing related to user focus / events
- Checking the Microsoft.Office.Interop.Word.TrackRevisions flag. This throws an exception in this scenario but feels quite hack-y
Many thanks,
Rhys