XDocuments2.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 XDocument 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
Implements
Examples
In the following example, the Count property of the XDocuments collection is used within a for loop to iterate through the collection of XDocument objects and display a message box indicating the Uniform Resource Identifier (URI) location for each currently open form:
for (int i=0; i < thisApplication.XDocuments.<span class="label">Count</span>; i++)
{
thisXDocument.UI.Alert("XDocument URI: " + thisApplication.XDocuments[i].URI);
}