Application.XmlForms 属性

定义

获取对 的 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

属性值

一个 XmlFormCollection ,表示当前打开的窗体的集合。

示例

在以下示例中, XmlForms 属性用于访问 CountXmlFormCollection 的 属性,并在消息框中显示值。

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

注解

设置对 XmlFormcollection 类型的引用后,可以使用其属性访问它包含的每个 XmlForm 对象。

可以无限制访问此成员。

可以通过 Microsoft InfoPath Filler 中打开的表单中运行的代码访问此类型或成员。

适用于