CustomTaskPane.DockPositionRestrict Property (2007 System)
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.v9.0 (in Microsoft.Office.Tools.Common.v9.0.dll)
Syntax
'Declaration
Public Property DockPositionRestrict As MsoCTPDockPositionRestrict
'Usage
Dim instance As CustomTaskPane
Dim value As MsoCTPDockPositionRestrict
value = instance.DockPositionRestrict
instance.DockPositionRestrict = value
public MsoCTPDockPositionRestrict DockPositionRestrict { get; set; }
public:
property MsoCTPDockPositionRestrict DockPositionRestrict {
MsoCTPDockPositionRestrict get ();
void set (MsoCTPDockPositionRestrict value);
}
public function get DockPositionRestrict () : MsoCTPDockPositionRestrict
public function set DockPositionRestrict (value : MsoCTPDockPositionRestrict)
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.