Share via


LanguageService.LastActiveTextView Property

Returns the last active text view associated with this language service.

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)

Syntax

'Declaration
Public ReadOnly Property LastActiveTextView As IVsTextView
public IVsTextView LastActiveTextView { get; }
public:
property IVsTextView^ LastActiveTextView {
    IVsTextView^ get ();
}
member LastActiveTextView : IVsTextView with get
function get LastActiveTextView () : IVsTextView

Property Value

Type: Microsoft.VisualStudio.TextManager.Interop.IVsTextView
Returns the last active text view as represented by an IVsTextView interface; otherwise, returns a null value.

Remarks

This helper property is typically called from SynchronizeDropdowns and Close but can be called from wherever the last active text view is needed.

.NET Framework Security

See Also

Reference

LanguageService Class

Microsoft.VisualStudio.Package Namespace