Property SearchOptions
SearchOptions
Gets or sets a value that defines search and replace options.
[Browsable(false)]
public virtual SearchOptions SearchOptions { get; set; }
Property Value
Examples
Here is how to use a SearchOptions in the C# code:
public partial class Form1 : Form
{
private void Form1_Load(object sender, EventArgs e)
{
var syntaxEdit1 = new Alternet.Editor.SyntaxEdit(this.components);
syntaxEdit1.LoadFile("myfile.txt");
syntaxEdit1.SearchDialogAppearance = Alternet.Editor.SearchDialogAppearance.PopupPanel;
syntaxEdit1.SearchDialog.SearchSettings.SearchOptions |= Alternet.Editor.TextSource.SearchOptions.CaseSensitive | Alternet.Editor.TextSource.SearchOptions.FindTextAtCursor;
}
}
Here is how to use a SearchOptions in the Visual Basic code:
Partial Public Class Form1
Inherits Form
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs)
Dim syntaxEdit1 = New Alternet.Editor.SyntaxEdit(Me.components)
syntaxEdit1.LoadFile("myfile.txt")
syntaxEdit1.SearchDialogAppearance = Alternet.Editor.SearchDialogAppearance.PopupPanel
syntaxEdit1.SearchDialog.SearchSettings.SearchOptions = syntaxEdit1.SearchDialog.SearchSettings.SearchOptions Or Alternet.Editor.TextSource.SearchOptions.CaseSensitive Or Alternet.Editor.TextSource.SearchOptions.FindTextAtCursor
End Sub
End Class
Remarks
Set the SearchOptions property to define the initial search and replace the options used by the SearchDialog.
The user may override these options when showing the SearchDialog dialog.