TaskPanes.Count 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 count of the number of the TaskPaneObject objects contained in the collection.
public:
property int Count { int get(); };
public int Count { get; }
member this.Count : int
Public ReadOnly Property Count As Integer
Property Value
Examples
In the following example, the Count property is used within a for loop to iterate through the collection of TaskPane objects. It checks the Visible property of each TaskPane object and if it is true, sets it to false.
TaskPanes taskPanes;
taskPanes = thisXDocument.View.Window.TaskPanes;
for (int i=0; i < taskPanes.<span class="label">Count</span>; i++)
{
if (taskPanes[i].Visible == true)
{
taskPanes[i].Visible = false;
}
}
Remarks
Important: This member can be accessed without restrictions.
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for