Managing the Actions Pane

Several layers of containers make up the actions pane. Figure 5.2 illustrates these layers.

Figure 5.2. Containers within the actions pane

The first container is the Office task pane itself. This container holds individual panes, such as the Document Actions task pane. The ActionsPane object is contained by the Document Actions task pane and acts as a container for Windows Forms controls. You can program-matically add Windows Forms controls directly to the ActionsPane, or you can use container controls such as user controls or actions pane controls that can contain multiple Windows Forms controls. Adding controls to an actions pane control in VSTO follows the same process as designing a UserForm in VBA.

0 0

Post a comment