LanguageService.LastActiveTextView Property

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

Namespace:  Microsoft.VisualStudio.Package
Assembly:  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'宣言
Public ReadOnly Property LastActiveTextView As IVsTextView
'使用
Dim instance As LanguageService
Dim value As IVsTextView

value = instance.LastActiveTextView
public IVsTextView LastActiveTextView { get; }
public:
property IVsTextView^ LastActiveTextView {
    IVsTextView^ get ();
}
public 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.

Permissions

See Also

Reference

LanguageService Class

LanguageService Members

Microsoft.VisualStudio.Package Namespace