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
Afficher le fichier Open project: rally25rs/OverviewMargin2012

Méthodes publiques

Méthode 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

Méthode Description
ThrowIfDisposed ( ) : void

Method Details

CaretMargin() public méthode

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
Résultat System

Dispose() public méthode

In our dipose, stop listening for events.
public Dispose ( ) : void
Résultat void

GetTextViewMargin() public méthode

public GetTextViewMargin ( string marginName ) : ITextViewMargin
marginName string
Résultat ITextViewMargin