Inheritance: ScintillaHelperBase
        internal FindReplace(Scintilla scintilla)
            : base(scintilla)
        {
            _marker = scintilla.Markers[10];
            _marker.SetSymbolInternal(MarkerSymbol.Arrows);
            _indicator = scintilla.Indicators[16];
            _indicator.Color = Color.Purple;
            _indicator.Style = IndicatorStyle.RoundBox;

            _window = Windows.ScintillaFindReplace;
            _window.Scintilla = scintilla;

            _incrementalSearcher = new IncrementalSearcher();
            _incrementalSearcher.Scintilla = scintilla;
            _incrementalSearcher.Visible = false;
            scintilla.Controls.Add(_incrementalSearcher);
        }
        internal FindReplace(Scintilla scintilla)
            : base(scintilla)
        {
            this._marker = scintilla.Markers[10];
            this._marker.SetSymbolInternal(MarkerSymbol.Arrows);
            this._indicator = scintilla.Indicators[16];
            this._indicator.Color = Color.Purple;
            this._indicator.Style = IndicatorStyle.RoundBox;

            this._window = new FindReplaceDialog
            {
                Scintilla = scintilla
            };

            this._incrementalSearcher = new IncrementalSearcher
            {
                Scintilla = scintilla,
                Visible = false
            };
            scintilla.Controls.Add(this._incrementalSearcher);
        }
Exemple #3
0
 public void ClearIndicator(Indicator indicator)
 {
     NativeScintilla.SetIndicatorCurrent(indicator.Number);
     NativeScintilla.IndicatorClearRange(this._start, this.Length);
 }