Compartilhar via


DocumentBase.InnerObject Property

Definition

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.

Applies to