I am looking for a way to determine if the document cursor is currently positioned inside of a Chart element using the Microsoft Word API. My current application can successfully insert text, but when I attempt to insert text into the Chart title, it ends up deleting the entire chart and replacing it with the Content Control that I'm trying to insert.
Instead of accidentally deleting the chart, I would like to find a method to check if the cursor is located within the Chart through context. If the cursor happens to be inside the Chart in any capacity, I want to trigger a warning message to alert the user and then exit. Is there a solution available for accomplishing this task?