xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.forms
include
xtd
forms
link_area.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
../forms_export.hpp
"
6
#include <xtd/iequatable>
7
#include <xtd/object>
8
#include <xtd/string>
9
11
namespace
xtd
{
13
namespace
forms
{
26
forms_export_
struct
link_area
:
public
xtd::object
,
public
xtd::iequatable
<link_area> {
27
public
:
29
32
link_area
() =
default
;
36
link_area
(
xtd::usize
start
,
xtd::usize
length
)
noexcept
;
38
40
44
[[nodiscard]]
auto
is_empty
() const noexcept ->
bool
;
45
49
[[nodiscard]] auto
length
() const noexcept ->
xtd
::
usize
;
54
auto
length
(
xtd
::
usize
value) noexcept ->
link_area
&;
55
59
[[nodiscard]] auto
start
() const noexcept ->
xtd
::
usize
;
64
auto
start
(
xtd
::
usize
value) noexcept ->
link_area
&;
66
73
[[nodiscard]] auto
equals
(const
xtd
::
object
& obj) const noexcept ->
bool
override;
77
[[nodiscard]] auto
equals
(const
link_area
&
other
) const noexcept ->
bool
override;
78
81
[[nodiscard]] auto
get_hash_code
() const noexcept ->
xtd
::
usize
override;
82
83
[[nodiscard]] auto
to_string
() const noexcept ->
xtd
::
string
override;
85
86
private:
87
xtd
::
usize
start_ = 0;
88
xtd
::
usize
length_ = 0;
89
};
90
}
91
}
xtd::iequatable
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition
iequatable.hpp:23
xtd::object
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition
object.hpp:45
forms_export.hpp
Contains forms_export_ keyword.
forms_export_
#define forms_export_
Define shared library export.
Definition
forms_export.hpp:13
xtd::usize
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition
usize.hpp:22
xtd::platform_id::other
@ other
The operating system is other.
Definition
platform_id.hpp:60
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
xtd::forms::link_area::start
auto start() const noexcept -> xtd::usize
Gets the starting location of the link area within the text of the xtd::forms::link_label.
xtd::forms::link_area::link_area
link_area()=default
xtd::forms::link_area::length
auto length() const noexcept -> xtd::usize
Gets the number of characters in the link area.
xtd::forms::link_area::to_string
auto to_string() const noexcept -> xtd::string override
Returns a xtd::string that represents the current object.
xtd::forms::link_area::is_empty
auto is_empty() const noexcept -> bool
Gets a value indicating whether the LinkArea is empty.
xtd::forms::link_area::link_area
link_area(xtd::usize start, xtd::usize length) noexcept
Initializes a new instance of the xtd::forms::link_area class.
xtd::forms::link_area::get_hash_code
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
xtd::forms::link_area::equals
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
Generated on
for xtd by
Gammasoft
. All rights reserved.