_XDocument4.UI property

Returns a reference to UIObject object.

Namespace:  Microsoft.Office.Interop.InfoPath
Assembly:  Microsoft.Office.Interop.InfoPath (in Microsoft.Office.Interop.InfoPath.dll)

Syntax

'Declaration
ReadOnly Property UI As UIObject
    Get
'Usage
Dim instance As _XDocument4
Dim value As UIObject

value = instance.UI
UIObject UI { get; }

Property value

Type: Microsoft.Office.Interop.InfoPath.UIObject

Implements

_XDocument3.UI

Remarks

The UI (user interface) object provides a number of methods that can be used to display custom and built-in dialog boxes.

Examples

In the following example, the UI property of the XDocument object is used to display a simple message box using the Alert method:

thisXDocument.UI.Alert("Here is the message text.");

See also

Reference

_XDocument4 interface

_XDocument4 members

UI overload

Microsoft.Office.Interop.InfoPath namespace