Export (0) Print
Expand All

CustomTaskPane.DockPositionRestrict Property

Gets or sets a value that prevents the custom task pane from being docked in the specified position.

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

MsoCTPDockPositionRestrict DockPositionRestrict { get; set; }

Property Value

Type: Microsoft.Office.Core.MsoCTPDockPositionRestrict
One of the Microsoft.Office.Core.MsoCTPDockPositionRestrict values. The default is Microsoft.Office.Core.MsoCTPDockPosition.msoCTPDockPositionRestrictNone.

ExceptionCondition
ObjectDisposedException

The Dispose method of the CustomTaskPane has already been called.

The following table lists the values of the Microsoft.Office.Core.MsoCTPDockPositionRestrict enumeration.

Value

Description

msoCTPDockPositionRestrictNone

There are no restrictions on the docking behavior of the custom task pane.

msoCTPDockPositionRestrictNoChange

The dock position cannot be changed. If the custom task pane is floating, it cannot be docked to a side of the window.

msoCTPDockPositionRestrictNoHorizontal

The custom task pane cannot be docked to the top or the bottom of the window.

msoCTPDockPositionRestrictNoVertical

The custom task pane cannot be docked to the left or right side of the window.

Show:
© 2014 Microsoft