Partager via


IMonitorSelectionService.CurrentDocument Property

Gets the active document.

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

Syntax

'Déclaration
ReadOnly Property CurrentDocument As Object
    Get
Object CurrentDocument { get; }
property Object^ CurrentDocument {
    Object^ get ();
}
abstract CurrentDocument : Object
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

Microsoft.VisualStudio.Modeling.Shell Namespace