Expand Minimize

DocumentBase.InnerObject Property

Gets a Microsoft.Office.Interop.Word.Document that represents the underlying native object for the document host item that this DocumentBase represents.

Namespace:  Microsoft.Office.Tools.Word
Assembly:  Microsoft.Office.Tools.Word.v4.0.Utilities (in Microsoft.Office.Tools.Word.v4.0.Utilities.dll)

public Document InnerObject { get; }

Property Value

Type: Microsoft.Office.Interop.Word.Document
A Microsoft.Office.Interop.Word.Document that represents the underlying native object for the DocumentBase.

You cannot pass a DocumentBase object to a method or property in the Word object model that expects a Microsoft.Office.Interop.Word.Document object. You can use the InnerObject property to access the underlying Microsoft.Office.Interop.Word.Document, and then you can pass this object to a method or property that expects a Microsoft.Office.Interop.Word.Document. For more information, see Programmatic Limitations of Host Items and Host Controls.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft