xtd 0.2.0
link_behavior.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/enum>
6 
8 namespace xtd {
10  namespace forms {
20  enum class link_behavior {
29  };
30  }
31 }
32 
34 template<> struct xtd::enum_register<xtd::forms::link_behavior> {
35  explicit operator auto() const noexcept {return xtd::enum_collection<xtd::forms::link_behavior> {{xtd::forms::link_behavior::system_default, "system_default"}, {xtd::forms::link_behavior::always_underline, "always_underline"}, {xtd::forms::link_behavior::hover_underline, "hover_underline"}, {xtd::forms::link_behavior::never_underline, "never_underline"}};}
36 };
The link always displays with underlined text.
The behavior of this setting depends on the options set using the Internet Options dialog box in Cont...
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
std::vector< std::pair< enum_t, xtd::ustring > > enum_collection
Represents a pair of an enum_t value and a string of an enum of type enum_t.
Definition: enum_collection.h:19
The link text is never underlined. The link can still be distinguished from other text by use of the ...
link_behavior
Specifies the behaviors of a link in a xtd::forms::link_label.
Definition: link_behavior.h:20
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition: about_box.h:13
The link displays underlined text only when the mouse is hovered over the link text.
Provides the registration struct for enumerations.
Definition: enum_register.h:36