IMonitorSelectionService.CurrentDocument Property

Gets the active document.

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell (in Microsoft.VisualStudio.Modeling.Sdk.Shell.dll)

Syntax

'宣言
ReadOnly Property CurrentDocument As Object
'使用
Dim instance As IMonitorSelectionService
Dim value As Object

value = instance.CurrentDocument
Object CurrentDocument { get; }
property Object^ CurrentDocument {
    Object^ get ();
}
function get CurrentDocument () : Object

Property Value

Type: System.Object

The active document.

Remarks

This property also tracks the tool windows that are assigned to the document.

The active document usually implements the IVsPersistDocData2 interface.

Permissions

See Also

Reference

IMonitorSelectionService Interface

IMonitorSelectionService Members

Microsoft.VisualStudio.Modeling.Shell Namespace