C# Class Microsoft.VisualStudio.Extensions.CaretMargin.CaretMargin

Implementation of an IWpfTextViewMargin that highlights the location of the caret and all instances of words that match the word under the caret.
Inheritance: IWpfTextViewMargin
Mostrar archivo Open project: rally25rs/OverviewMargin2012

Public Methods

Method Description
CaretMargin ( IWpfTextViewHost textViewHost, IVerticalScrollBar scrollBar, CaretMarginFactory factory ) : System

Constructor for the CaretMargin.

Dispose ( ) : void

In our dipose, stop listening for events.

GetTextViewMargin ( string marginName ) : ITextViewMargin

Private Methods

Method Description
ThrowIfDisposed ( ) : void

Method Details

CaretMargin() public method

Constructor for the CaretMargin.
public CaretMargin ( IWpfTextViewHost textViewHost, IVerticalScrollBar scrollBar, CaretMarginFactory factory ) : System
textViewHost IWpfTextViewHost The IWpfTextViewHost in which this margin will be displayed.
scrollBar IVerticalScrollBar
factory CaretMarginFactory
return System

Dispose() public method

In our dipose, stop listening for events.
public Dispose ( ) : void
return void

GetTextViewMargin() public method

public GetTextViewMargin ( string marginName ) : ITextViewMargin
marginName string
return ITextViewMargin