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.

Namespace:   Microsoft.Office.Tools
Assembly:  Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)

event EventHandler^ DockPositionChanged {
	void add(EventHandler^ value);
	void remove(EventHandler^ value);
}

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.

No code example is currently available or this language may not be supported.
Return to top
Show: