TaskPane.TaskPaneType Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a value indicating the type of task pane represented by the TaskPaneObject object.
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
Examples
In the following example, the TaskPanes collection is used to get a reference to the TaskPane object that represents the built-in Help task pane.
TaskPane objTaskPane = thisXDocument.View.Window.TaskPanes[4];
XdTaskPaneType ttype= objTaskPane.<span class="label">TaskPaneType</span>;
Remarks
If the TaskPaneType property returns 0, the task pane is a custom task pane. If the TaskPaneType property returns any other value, the task pane is a built-in task pane.
Note: The TaskPaneType property is based on XdTaskPaneType. These enumerated values are also used as arguments to the Item[Object] of the TaskPanesCollection for returning a reference to a specified type of task pane.
Applies to
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應