C# Класс Microsoft.VisualStudio.LanguageServices.Implementation.VisualStudioDocumentTrackingService

Наследование: IDocumentTrackingService, IVsSelectionEvents, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Dispose ( ) : void
DocumentFrameShowing ( IVsWindowFrame frame, DocumentId id, bool firstShow ) : void

Called via the DocumentProvider's RDT OnBeforeDocumentWindowShow notification when a workspace document is being shown.

GetActiveDocument ( ) : DocumentId

Get the DocumentId of the active document. May be called from any thread. May return null if there is no active document or the active document is not part of this workspace.

GetVisibleDocuments ( ) : ImmutableArray

Get a read only collection of the DocumentIds of all the visible documents in the workspace.

OnCmdUIContextChanged ( uint dwCmdUICookie, int fActive ) : int
OnElementValueChanged ( uint elementid, object varValueOld, object varValueNew ) : int
OnNonRoslynViewOpened ( ITextView view ) : void
OnSelectionChanged ( IVsHierarchy pHierOld, uint itemidOld, IVsMultiItemSelect pMISOld, ISelectionContainer pSCOld, IVsHierarchy pHierNew, uint itemidNew, IVsMultiItemSelect pMISNew, ISelectionContainer pSCNew ) : int
VisualStudioDocumentTrackingService ( IServiceProvider serviceProvider ) : System

Приватные методы

Метод Описание
GetDebuggerDisplay ( ) : string
RemoveFrame ( FrameListener frame ) : void

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

DocumentFrameShowing() публичный Метод

Called via the DocumentProvider's RDT OnBeforeDocumentWindowShow notification when a workspace document is being shown.
public DocumentFrameShowing ( IVsWindowFrame frame, DocumentId id, bool firstShow ) : void
frame IVsWindowFrame The frame containing the document being shown.
id DocumentId The of the document being shown.
firstShow bool Indicates whether this is a first or subsequent show.
Результат void

GetActiveDocument() публичный Метод

Get the DocumentId of the active document. May be called from any thread. May return null if there is no active document or the active document is not part of this workspace.
public GetActiveDocument ( ) : DocumentId
Результат DocumentId

GetVisibleDocuments() публичный Метод

Get a read only collection of the DocumentIds of all the visible documents in the workspace.
public GetVisibleDocuments ( ) : ImmutableArray
Результат ImmutableArray

OnCmdUIContextChanged() публичный Метод

public OnCmdUIContextChanged ( uint dwCmdUICookie, int fActive ) : int
dwCmdUICookie uint
fActive int
Результат int

OnElementValueChanged() публичный Метод

public OnElementValueChanged ( uint elementid, object varValueOld, object varValueNew ) : int
elementid uint
varValueOld object
varValueNew object
Результат int

OnNonRoslynViewOpened() публичный Метод

public OnNonRoslynViewOpened ( ITextView view ) : void
view ITextView
Результат void

OnSelectionChanged() публичный Метод

public OnSelectionChanged ( IVsHierarchy pHierOld, uint itemidOld, IVsMultiItemSelect pMISOld, ISelectionContainer pSCOld, IVsHierarchy pHierNew, uint itemidNew, IVsMultiItemSelect pMISNew, ISelectionContainer pSCNew ) : int
pHierOld IVsHierarchy
itemidOld uint
pMISOld IVsMultiItemSelect
pSCOld ISelectionContainer
pHierNew IVsHierarchy
itemidNew uint
pMISNew IVsMultiItemSelect
pSCNew ISelectionContainer
Результат int

VisualStudioDocumentTrackingService() публичный Метод

public VisualStudioDocumentTrackingService ( IServiceProvider serviceProvider ) : System
serviceProvider IServiceProvider
Результат System