XDocuments2.Count Property

Definition

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 &lt; thisApplication.XDocuments.<span class="label">Count</span>; i++)
{
   thisXDocument.UI.Alert("XDocument URI: " + thisApplication.XDocuments[i].URI);
}

Applies to