I am developing a word add-in in C#. In word 2013/2016, the file tab takes up the whole document window and covers the editable text area. I need to know when the editable text region becomes no longer visible because the file menu is selected/visible. Some form of callback would be ideal, but a property would suffice.
I looked in the Application, Window, and Document objects for callbacks that indicate a file menu selection -- no success.
I looked for properties that indicate that the file menu is visible -- no success.
I looked for a callback or property that indicates that the editable area of the document is no longer visible -- no success.
Any ideas?
答案 0 :(得分:0)
Backstage用户界面提供onShow
和onHide
回调,可以检测何时显示和隐藏File
标签。
<backstage onShow="OnShow">
在Customizing the Office 2010 Backstage View for Developers文章中详细了解相关内容。
另外,您可能会发现Introduction to the Office 2010 Backstage View for Developers文章很有帮助。