• HOME
  • PRODUCTS
  • DEMOS
  • BUY
  • BLOG
  • FORUM
  • DOCUMENTATION
  • ABOUT
  • FREE EVALUATION
Search Results for

    Show / Hide Table of Contents

    SearchOptions Property

    SearchOptions

    Gets or sets a value that defines search and replace options.

    Declaration
    [Browsable(false)]
    public virtual SearchOptions SearchOptions { get; set; }
    Property Value
    Type Description
    SearchOptions
    Implements
    ISearch.SearchOptions
    Remarks

    Set SearchOptions property to define initial search and replace options used by the SearchDialog.

    These options may be overridden by the user when showing SearchDialog dialog.

    Examples

    Here is how to use a SearchOptions in the C# code:

    public partial class MainWindow : Window
    {
        private void Window_Loaded(object sender, RoutedEventArgs e)
        {
            var textEditor = new Alternet.Editor.Wpf.TextEditor();
            textEditor.LoadFile("myfile.txt");
            textEditor.SearchDialogAppearance = Alternet.Editor.Wpf.SearchDialogAppearance.PopupPanel;
            textEditor.SearchDialog.SearchSettings.SearchOptions |= Alternet.Editor.Wpf.SearchOptions.CaseSensitive | Alternet.Editor.Wpf.SearchOptions.FindTextAtCursor;
        }
    }
    

    Here is how to use a SearchOptions in the Visual Basic code:

    Partial Public Class MainWindow
    
        Private Sub Window_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs)
            Dim textEditor = New Alternet.Editor.Wpf.TextEditor()
            textEditor.LoadFile("myfile.txt")
            textEditor.SearchDialogAppearance = Alternet.Editor.Wpf.SearchDialogAppearance.PopupPanel
            textEditor.SearchDialog.SearchSettings.SearchOptions = textEditor.SearchDialog.SearchSettings.SearchOptions Or Alternet.Editor.Wpf.SearchOptions.CaseSensitive Or Alternet.Editor.Wpf.SearchOptions.FindTextAtCursor
        End Sub
    End Class
    
    In This Article
    Back to top Copyright AlterNET Software Download PDF