WindowCollection.Item[Int32] 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 reference to the specified Window object in the WindowCollection object.
public:
abstract property Microsoft::Office::InfoPath::Window ^ default[int] { Microsoft::Office::InfoPath::Window ^ get(int index); };
public abstract Microsoft.Office.InfoPath.Window this[int index] { get; }
member this.Item(int) : Microsoft.Office.InfoPath.Window
Default Public MustOverride ReadOnly Property Item(index As Integer) As Window
Parameters
- index
- Int32
The zero-based index of the Window object to return.
Property Value
A Window object from the WindowCollection object that corresponds to the specified index value.
Examples
Because the Item property is the default property of the WindowsCollection class, it can be used as follows.
Window firstWindow = this.Application.Windows[0];
Dim firstWindow As Window = Me.Application.Windows(0)
Remarks
The value passed for the index
parameter must be a number from 0 to the value of the collection's Count property minus 1.
After you have set a reference to the Window object that the Item property returns, you can access any of its properties and methods.
This member can be accessed without restrictions.
This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.