Share via


ViewInfoObject 接口

包含有关 InfoPath 表单中的视图的描述性信息。

命名空间:  Microsoft.Office.Interop.InfoPath.SemiTrust
程序集:  Microsoft.Office.Interop.InfoPath.SemiTrust(位于 Microsoft.Office.Interop.InfoPath.SemiTrust.dll 中)

语法

声明
<GuidAttribute("096cd602-0786-11d1-95fa-0080c78ee3bb")> _
Public Interface ViewInfoObject _
    Inherits ViewInfo
用法
Dim instance As ViewInfoObject
[GuidAttribute("096cd602-0786-11d1-95fa-0080c78ee3bb")]
public interface ViewInfoObject : ViewInfo

备注

此类型是用于 Coclass(托管代码需要此 Coclass 来实现 COM 互操作性)的包装。使用此类型来访问由此 Coclass 实现的 COM 接口。有关 COM 接口的信息(包括指向其成员说明的链接),请参阅ViewInfo.

Using the members of the ViewInfo interface provides compatibility with InfoPath 2003. To use new members that were added to the ViewInfo2 object model in Microsoft InfoPath 2010, you must cast the object returned by the ViewInfos property of the XDocument object to the ViewInfo2 type. For more information, see 如何:使用与 InfoPath 2003 不兼容的 Microsoft.Office.Interop.InfoPath.SemiTrust 成员.

ViewInfoObject 对象提供的属性可用于获取视图的名称,确定该视图是否为表单的默认视图,并确定是否在"视图"菜单上隐藏其名称。ViewInfoObject 对象可通过 XDocument 对象的 ViewInfos 属性访问。

备注

若要以编程的方式使用视图,请使用 ViewObject 对象。

另请参阅

引用

ViewInfoObject 成员

Microsoft.Office.Interop.InfoPath.SemiTrust 命名空间