scripting:api:base-view:document

Document

Property of IBaseView

Document associated with view

Read-Only Property of type IBaseDocument

var pDocument = BaseView.Document;
pDocument = BaseView.Document
CComPtr<IBaseDocument> pDocument;
HRESULT hr = BaseView.get_Document(&pDocument);