Modifica

Condividi tramite


HTMLTaskPane.TaskPaneType Property

Definition

Gets a value indicating the type of task pane represented by the HTMLTaskPaneObject object, which is always a custom task pane.

public:
 property Microsoft::Office::Interop::InfoPath::XdTaskPaneType TaskPaneType { Microsoft::Office::Interop::InfoPath::XdTaskPaneType get(); };
public Microsoft.Office.Interop.InfoPath.XdTaskPaneType TaskPaneType { get; }
member this.TaskPaneType : Microsoft.Office.Interop.InfoPath.XdTaskPaneType
Public ReadOnly Property TaskPaneType As XdTaskPaneType

Property Value

Implements

Examples

In the following example, the TaskPanes collection is used to get a reference to the HTMLTaskPane object that represents the custom task pane.

TaskPane objTaskPane = thisXDocument.View.Window.TaskPanes[0];
XdTaskPaneType ttype= objTaskPane.<span class="label">TaskPaneType</span>;

Remarks

The TaskPaneType property of the HTMLTaskPane object is one of the properties inherited from the TaskPaneObject object when the type of the task pane is 0, which means that it is the custom task pane.

Note: The TaskPaneType property is based on the XdTaskPaneType enumeration. These enumerated values are also used as arguments to the Item[Object] property of the TaskPanesCollection collection for returning a reference to a specified type of task pane.

Applies to