XmlFormCollection.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 XmlForm object from the collection by index value.
public:
abstract property Microsoft::Office::InfoPath::XmlForm ^ default[int] { Microsoft::Office::InfoPath::XmlForm ^ get(int index); };
public abstract Microsoft.Office.InfoPath.XmlForm this[int index] { get; }
member this.Item(int) : Microsoft.Office.InfoPath.XmlForm
Default Public MustOverride ReadOnly Property Item(index As Integer) As XmlForm
Parameters
- index
- Int32
The zero-based index of the form to return.
Property Value
The XmlForm object for the specified index value.
Exceptions
The index provided is out of range.
Examples
Because the Item property is the default property of the XmlFormCollection class, it can be used as shown in the following code example.
XmlForm firstForm = this.Application.XmlForms[0];
Dim firstForm As XmlForm = Me.Application.XmlForms(0)
Remarks
If the value that is provided for the index
parameter does not match any existing member of the collection, an exception is raised.
After you have set a reference to the XmlForm object that the Item property returns, you can access any of its properties or 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.