_XDocument2.UI 属性

定义

返回对 UIObject 对象的引用。

public:
 property Microsoft::Office::Interop::InfoPath::SemiTrust::UIObject ^ UI { Microsoft::Office::Interop::InfoPath::SemiTrust::UIObject ^ get(); };
public Microsoft.Office.Interop.InfoPath.SemiTrust.UIObject UI { get; }
member this.UI : Microsoft.Office.Interop.InfoPath.SemiTrust.UIObject
Public ReadOnly Property UI As UIObject

属性值

实现

UI

示例

在以下示例中,对象的 UI 属性 XDocument 用于使用 Alert(String) 方法显示简单的消息框:

thisXDocument.<span class="label">UI</span>.Alert("Here is the message text.");

注解

UI(用户界面)对象提供许多可用于显示自定义对话框和内置对话框的方法。

重要提示:此成员只能由与当前打开的窗体在同一域中运行的表单访问,或者由已授予跨域权限的表单访问。

适用于