CustomTaskPane::DockPositionRestrict Property
Gets or sets a value that prevents the custom task pane from being docked in the specified position.
Assembly: Microsoft.Office.Tools.Common (in Microsoft.Office.Tools.Common.dll)
property MsoCTPDockPositionRestrict DockPositionRestrict { MsoCTPDockPositionRestrict get(); void set(MsoCTPDockPositionRestrict value); }
Property Value
Type: Microsoft.Office.Core::MsoCTPDockPositionRestrictOne of the Microsoft.Office.Core.MsoCTPDockPositionRestrict values. The default is Microsoft.Office.Core.MsoCTPDockPosition.msoCTPDockPositionRestrictNone.
| Exception | Condition |
|---|---|
| ObjectDisposedException | The M:Microsoft.Office.Tools.CustomTaskPane.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. |