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)

Syntax

'Declaration
Property DockPositionRestrict As MsoCTPDockPositionRestrict
MsoCTPDockPositionRestrict DockPositionRestrict { get; set; }

Property Value

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

Exceptions

Exception Condition
ObjectDisposedException

The Dispose method of the CustomTaskPane has already been called.

Remarks

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.

.NET Framework Security

See Also

Reference

CustomTaskPane Interface

Microsoft.Office.Tools Namespace