ActionsPane::StackOrder Property
Gets or sets a value that indicates the direction that the controls are stacked on the actions pane.
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
Property Value
Type: Microsoft.Office.Tools::StackStyleA value that indicates the direction that the controls are stacked on the actions pane.
The stack order depends on the orientation of the actions pane. If the orientation of the actions pane is set to horizontal, you might want to set the stack order to the FromLeft or FromRight values of the StackStyle enumeration. If the orientation of the actions pane is set to vertical, you might want to set the stack order to the FromTop or FromBottom values of the StackStyle enumeration.
Changes to the orientation of the actions pane are communicated through the OrientationChanged event.
The following code example demonstrates an actions pane that automatically adjusts the alignment of its contents. When the user changes the orientation of the actions pane by moving the actions pane to a different part of the application window, or the user clicks on a Button control in the actions pane, the Orientation property is used to determine the new value of the StackOrder property. To run this code, call the InitActionsPane method from the ThisWorkbook_Startup event handler of a Microsoft Office Excel project.