Edit

Share via


Application.XmlForms Property

Definition

Gets a reference to the XmlFormCollection.

public:
 abstract property Microsoft::Office::InfoPath::XmlFormCollection ^ XmlForms { Microsoft::Office::InfoPath::XmlFormCollection ^ get(); };
public abstract Microsoft.Office.InfoPath.XmlFormCollection XmlForms { get; }
member this.XmlForms : Microsoft.Office.InfoPath.XmlFormCollection
Public MustOverride ReadOnly Property XmlForms As XmlFormCollection

Property Value

An XmlFormCollection that represents the collection of forms that are currently open.

Examples

In the following example, the XmlForms property is used to access the Count property of the XmlFormCollection and display the value in a message box.

int formsCount = this.Application.XmlForms.Count;
MessageBox.Show(formsCount.ToString());
Dim formsCount As Integer = Me.Application.XmlForms.Count
MessageBox.Show(formsCount.ToString())

Remarks

After you have set a reference to the XmlFormcollection type, you can use its properties to access each of the XmlForm objects that it contains.

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.

Applies to