xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.forms
include
xtd
forms
replace_event_args.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
message.hpp
"
6
#include <xtd/event_args>
7
#include <cstdint>
8
10
namespace
xtd
{
12
namespace
forms
{
23
class
replace_event_args
:
public
event_args
{
24
public
:
26
29
replace_event_args
() =
default
;
35
replace_event_args
(
const
xtd::string
&
find_string
,
const
xtd::string
&
replace_string
,
bool
match_case
,
bool
whole_word
) : find_string_(
find_string
), replace_string_(
replace_string
), match_case_(
match_case
), whole_word_(
whole_word
) {}
37
39
replace_event_args
(
const
replace_event_args
&) =
default
;
40
replace_event_args
& operator =(
const
replace_event_args
&) =
default
;
42
44
48
const
xtd::string
&
find_string
() const noexcept {
return
find_string_;}
49
52
const
xtd::string
&
replace_string
() const noexcept {
return
replace_string_;}
53
56
bool
match_case
() const noexcept {
return
match_case_;}
57
60
bool
whole_word
() const noexcept {
return
whole_word_;}
61
63
64
private
:
65
xtd::string
find_string_;
66
xtd::string
replace_string_;
67
bool
match_case_ =
false
;
68
bool
whole_word_ =
false
;
69
};
70
}
71
}
xtd::event_args::event_args
event_args()=default
Initializes a new instance of the event_args class.
xtd::forms::replace_event_args
Provides data for the xtd::forms::replace_dialog::replace and xtd::forms::replace_dialog::replace_all...
Definition
replace_event_args.hpp:23
xtd::forms::replace_event_args::find_string
const xtd::string & find_string() const noexcept
Gets the string to find.
Definition
replace_event_args.hpp:48
xtd::forms::replace_event_args::whole_word
bool whole_word() const noexcept
Gets the whole word value.
Definition
replace_event_args.hpp:60
xtd::forms::replace_event_args::replace_event_args
replace_event_args(const xtd::string &find_string, const xtd::string &replace_string, bool match_case, bool whole_word)
Initializes a new instance of the xtd::forms::replace_event_args class.
Definition
replace_event_args.hpp:35
xtd::forms::replace_event_args::match_case
bool match_case() const noexcept
Gets the match case value.
Definition
replace_event_args.hpp:56
xtd::forms::replace_event_args::replace_event_args
replace_event_args()=default
Initializes a new instance of the xtd::forms::replace_event_args class.
xtd::forms::replace_event_args::replace_string
const xtd::string & replace_string() const noexcept
Gets the replaced string.
Definition
replace_event_args.hpp:52
xtd::string
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition
__string_definitions.hpp:43
message.hpp
Contains xtd::forms::message class.
xtd::forms
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition
texts.hpp:219
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
Generated on
for xtd by
Gammasoft
. All rights reserved.