DocumentBase.InnerObject Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a Document that represents the underlying native object for the document host item that this DocumentBase represents.
public:
property Microsoft::Office::Interop::Word::Document ^ InnerObject { Microsoft::Office::Interop::Word::Document ^ get(); };
public Microsoft.Office.Interop.Word.Document InnerObject { get; }
member this.InnerObject : Microsoft.Office.Interop.Word.Document
Public ReadOnly Property InnerObject As Document
Property Value
A Document that represents the underlying native object for the DocumentBase.
Remarks
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.