public CurrentLineHighlighter(IWpfTextView wpfTextView, IEditorFormatMap editorFormatMap) { this.wpfTextView = wpfTextView ?? throw new ArgumentNullException(nameof(wpfTextView)); this.editorFormatMap = editorFormatMap ?? throw new ArgumentNullException(nameof(editorFormatMap)); currentLineHighlighterElement = new CurrentLineHighlighterElement(); wpfTextView.Closed += WpfTextView_Closed; wpfTextView.Options.OptionChanged += Options_OptionChanged; UpdateEnableState(); }
public CurrentLineHighlighter(WpfHexView wpfHexView, VSTC.IEditorFormatMap editorFormatMap) { if (wpfHexView == null) throw new ArgumentNullException(nameof(wpfHexView)); if (editorFormatMap == null) throw new ArgumentNullException(nameof(editorFormatMap)); this.wpfHexView = wpfHexView; this.editorFormatMap = editorFormatMap; currentLineHighlighterElement = new CurrentLineHighlighterElement(); wpfHexView.Closed += WpfHexView_Closed; wpfHexView.Options.OptionChanged += Options_OptionChanged; UpdateEnableState(); }