/// <summary> /// Creates an instance of the FindReplace class. /// </summary> /// <param name="scintilla">The Scintilla class to which the FindReplace class is attached.</param> public FindReplace(Scintilla scintilla) { _window = CreateWindowInstance(); if (scintilla != null) { Scintilla = scintilla; } }
/// <summary> /// Creates an instance of the FindReplace class. /// </summary> /// <param name="scintilla">The Scintilla class to which the FindReplace class is attached.</param> public FindReplace(Scintilla scintilla) { _scintilla = scintilla; _marker = _scintilla.Markers[10]; _marker.Symbol = MarkerSymbol.Circle; _marker.SetForeColor(Color.Black); _marker.SetBackColor(Color.Blue); _indicator = _scintilla.Indicators[16]; _indicator.ForeColor = Color.Red; //_indicator.ForeColor = Color.LawnGreen; //Smart highlight _indicator.Alpha = 100; _indicator.Style = IndicatorStyle.RoundBox; _indicator.Under = true; _window = CreateWindowInstance(); _window.FindReplace = this; _incrementalSearcher = CreateIncrementalSearcherInstance(); _incrementalSearcher.FindReplace = this; _incrementalSearcher.Visible = false; _scintilla.Controls.Add(_incrementalSearcher); }