_XDocument4.CloseDocument Method

Closes the form.

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

Syntax

'Declaration
Sub CloseDocument
'Usage
Dim instance As _XDocument4

instance.CloseDocument()
void CloseDocument()

Implements

_XDocument3.CloseDocument()

Remarks

Calling the CloseDocument method is equivalent to calling the Close method of the XDocuments3 collection.

Examples

In the following example, the CloseDocument method of the XDocument object is used to close the current form.

_XDocument3 thisDoc = (_XDocument3)thisXDocument;
thisDoc.CloseDocument();
Dim thisDoc As _XDocument4 = DirectCast(_
   thisXDocument, _XDocument4)
thisDoc.CloseDocument()

See Also

Reference

_XDocument4 Interface

_XDocument4 Members

CloseDocument Overload

Microsoft.Office.Interop.InfoPath Namespace