Share via


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

'Declaration
ReadOnly Property CurrentDocument As Object
'Usage
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.

.NET Framework Security

See Also

Reference

IMonitorSelectionService Interface

IMonitorSelectionService Members

Microsoft.VisualStudio.Modeling.Shell Namespace