C# Class Microsoft.VisualStudio.R.Package.Utilities.ActiveWpfTextViewTracker

Inheritance: IActiveWpfTextViewTracker, IVsWindowFrameEvents
显示文件 Open project: Microsoft/RTVS

Public Methods

Method Description
GetLastActiveTextView ( IContentType contentType ) : IWpfTextView
GetLastActiveTextView ( string contentTypeName ) : IWpfTextView
OnActiveFrameChanged ( IVsWindowFrame oldFrame, IVsWindowFrame newFrame ) : void
OnFrameCreated ( IVsWindowFrame frame ) : void
OnFrameDestroyed ( IVsWindowFrame frame ) : void
OnFrameIsOnScreenChanged ( IVsWindowFrame frame, bool newIsOnScreen ) : void
OnFrameIsVisibleChanged ( IVsWindowFrame frame, bool newIsVisible ) : void

Private Methods

Method Description
ActiveWpfTextViewTracker ( IVsEditorAdaptersFactoryService editorAdaptersFactory, IContentTypeRegistryService registryService ) : System
GetWpfTextView ( IVsWindowFrame frame ) : IWpfTextView
UpdateTextViewIfRequired ( IWpfTextView wpfTextView ) : void

Method Details

GetLastActiveTextView() public method

public GetLastActiveTextView ( IContentType contentType ) : IWpfTextView
contentType IContentType
return IWpfTextView

GetLastActiveTextView() public method

public GetLastActiveTextView ( string contentTypeName ) : IWpfTextView
contentTypeName string
return IWpfTextView

OnActiveFrameChanged() public method

public OnActiveFrameChanged ( IVsWindowFrame oldFrame, IVsWindowFrame newFrame ) : void
oldFrame IVsWindowFrame
newFrame IVsWindowFrame
return void

OnFrameCreated() public method

public OnFrameCreated ( IVsWindowFrame frame ) : void
frame IVsWindowFrame
return void

OnFrameDestroyed() public method

public OnFrameDestroyed ( IVsWindowFrame frame ) : void
frame IVsWindowFrame
return void

OnFrameIsOnScreenChanged() public method

public OnFrameIsOnScreenChanged ( IVsWindowFrame frame, bool newIsOnScreen ) : void
frame IVsWindowFrame
newIsOnScreen bool
return void

OnFrameIsVisibleChanged() public method

public OnFrameIsVisibleChanged ( IVsWindowFrame frame, bool newIsVisible ) : void
frame IVsWindowFrame
newIsVisible bool
return void