xtd 0.2.0
Loading...
Searching...
No Matches
replace_event_args.h
Go to the documentation of this file.
1
4#pragma once
5#include "message.h"
6#include <xtd/event_args>
7#include <cstdint>
8
10namespace xtd {
12 namespace forms {
22 public:
24
27 replace_event_args() = default;
33 replace_event_args(const xtd::ustring& find_string, const xtd::ustring& replace_string, bool match_case, bool whole_word) : find_string_(find_string), replace_string_(replace_string), match_case_(match_case), whole_word_(whole_word) {}
35
37 replace_event_args(const replace_event_args&) = default;
38 replace_event_args& operator =(const replace_event_args&) = default;
40
42
46 const xtd::ustring& find_string() const noexcept {return find_string_;}
47
50 const xtd::ustring& replace_string() const noexcept {return replace_string_;}
51
54 bool match_case() const noexcept {return match_case_;}
55
58 bool whole_word() const noexcept {return whole_word_;}
59
61
62 private:
63 xtd::ustring find_string_;
64 xtd::ustring replace_string_;
65 bool match_case_ = false;
66 bool whole_word_ = false;
67 };
68 }
69}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.h:18
Provides data for the xtd::forms::replace_dialog::replace and xtd::forms::replace_dialog::replace_all...
Definition replace_event_args.h:21
bool whole_word() const noexcept
Gets the whole word value.
Definition replace_event_args.h:58
bool match_case() const noexcept
Gets the match case value.
Definition replace_event_args.h:54
replace_event_args()=default
Initializes a new instance of the xtd::forms::replace_event_args class.
replace_event_args(const xtd::ustring &find_string, const xtd::ustring &replace_string, bool match_case, bool whole_word)
Initializes a new instance of the xtd::forms::replace_event_args class.
Definition replace_event_args.h:33
const xtd::ustring & replace_string() const noexcept
Gets the replaced string.
Definition replace_event_args.h:50
const xtd::ustring & find_string() const noexcept
Gets the string to find.
Definition replace_event_args.h:46
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
Contains xtd::forms::message class.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.h:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10