Microsoft Word Add-in 2013/2016 -- Detect File Tab Visible

时间:2018-03-25 19:26:59

标签: ms-word tabs interop add-in ribbonx

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?

1 个答案:

答案 0 :(得分:0)

Backstage用户界面提供onShowonHide回调,可以检测何时显示和隐藏File标签。

   <backstage onShow="OnShow">

Customizing the Office 2010 Backstage View for Developers文章中详细了解相关内容。

另外,您可能会发现Introduction to the Office 2010 Backstage View for Developers文章很有帮助。