CustomTaskPane::DockPositionChanged Event
Occurs when the user changes the dock position of the custom task pane, or when code changes the value of the DockPosition property.
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
The following code example demonstrates an event handler for the DockPositionChanged event. This event handler changes the horizontal or vertical arrangement of controls on the task pane by modifying the FlowDirection property of a FlowLayoutPanel on the task pane. This code example assumes that the task pane contains a UserControl named MyUserControl, and the UserControl contains a FlowLayoutPanel named FlowPanel. This example is part of a larger example provided for CustomTaskPane.
Show: