CustomTaskPane.DockPositionRestrict Property

Definition

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

public:
 property Microsoft::Office::Core::MsoCTPDockPositionRestrict DockPositionRestrict { Microsoft::Office::Core::MsoCTPDockPositionRestrict get(); void set(Microsoft::Office::Core::MsoCTPDockPositionRestrict value); };
public Microsoft.Office.Core.MsoCTPDockPositionRestrict DockPositionRestrict { get; set; }
member this.DockPositionRestrict : Microsoft.Office.Core.MsoCTPDockPositionRestrict with get, set
Public Property DockPositionRestrict As MsoCTPDockPositionRestrict

Property Value

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

Exceptions

The Microsoft.Office.Tools.CustomTaskPane.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.

Applies to