Edit

Share via


ViewInfos.Count Property

Definition

Gets a count of the number of ViewInfoObject object contained in the ViewInfosCollection 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 ViewInfo objects and display a message box indicating the name of each view implemented in the form:

for (int i=0; i &lt; thisXDocument.ViewInfos.<span class="label">Count</span>; i++)
{
 thisXDocument.UI.Alert("View name: " + thisXDocument.ViewInfos[i].Name);
}

Remarks

Important: This member can be accessed without restrictions.

Applies to