ViewInfos.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 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 < 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.