public TextView(ITextViewDocument document, ITextViewAppearance appearance, ITextViewAdornments adornments) { _appearance = appearance; _adornments = adornments; _document = document; _selection = new Selection(document.Caret); _document.Caret.Moved += EnsureCursorIsVisible; }
public TextView( ITextViewDocument document, ITextViewAppearance appearance, ITextViewAdornments adornments, IMouseCursors mouseCursors, IMouseCursorRegions mouseCursorRegions, ITextViewWhitespace whitespace, ISettings settings, IFontManager fontManager) { _appearance = appearance; _adornments = adornments; _document = document; _mouseCursors = mouseCursors; _mouseCursorsRegions = mouseCursorRegions; _whitespace = whitespace; _settings = settings; _fontManager = fontManager; _selection = new Selection(document.Caret); _document.Caret.Moved += EnsureCursorIsVisible; }