Delen via


IMonitorSelectionService.CurrentDocument Property

Gets the active document.

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

Syntax

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

Microsoft.VisualStudio.Modeling.Shell Namespace