_XDocument3.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 _XDocument3

instance.CloseDocument()
void CloseDocument()

Remarks

Calling the CloseDocument method is equivalent to calling the Close method of the XDocumentsCollection 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 _XDocument3 = DirectCast(_
   thisXDocument, _XDocument3)
thisDoc.CloseDocument()

See Also

Reference

_XDocument3 Interface

_XDocument3 Members

Microsoft.Office.Interop.InfoPath Namespace