Application.XmlForms Propriété
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Obtient une référence à .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
Valeur de propriété
XmlFormCollection qui représente la collection de formulaires actuellement ouverts.
Exemples
Dans l’exemple suivant, la propriété XmlForms est utilisée pour accéder à la Count propriété de xmlFormCollection et afficher la valeur dans une boîte de message.
int formsCount = this.Application.XmlForms.Count;
MessageBox.Show(formsCount.ToString());
Dim formsCount As Integer = Me.Application.XmlForms.Count
MessageBox.Show(formsCount.ToString())
Remarques
Une fois que vous avez défini une référence au type XmlFormcollection , vous pouvez utiliser ses propriétés pour accéder à chacun des XmlForm objets qu’il contient.
Vous pouvez accéder à ce membre sans restrictions.
Vous pouvez uniquement accéder à ce type ou à ce membre à partir du code exécuté dans les formulaires ouverts dans Microsoft InfoPath Filler.