The xtd::forms::style_sheets::style_sheet allows you to specify an xtd style sheet.
Public Aliases | |
using | buttons_t |
Represents a style sheet buttons collection. | |
using | controls_t |
Represents a style sheet controls collection. | |
using | forms_t |
Represents a style sheet forms collection. | |
using | labels_t |
Represents a style sheet labels collection. | |
using | link_labels_t |
Represents a style sheet link_label collection. | |
using | panels_t |
Represents a style sheet panels collection. | |
using | style_sheets_t |
Represents a style_sheets collection. | |
using | style_sheet_names_t |
Represents a style_sheet names collection. | |
using | status_bars_t |
Represents a style sheet tool_bars collection. | |
using | status_bar_panels_t |
Represents a style sheet buttons collection. | |
using | toggle_buttons_t |
Represents a style sheet toggle buttons collection. | |
using | tool_bars_t |
Represents a style sheet tool_bars collection. | |
using | tool_bar_buttons_t |
Represents a style sheet buttons collection. | |
using | user_controls_t |
Represents a style sheet user_controls collection. | |
Public Fields | |
static const style_sheet | empty |
Provides an empty xtd::forms::style_sheets::style_sheet object. | |
Public Static Events | |
static event< style_sheet, event_handler > | style_sheet_changed |
Occurs when the value of the xtd::forms::style_sheets::style_sheet::current_style_sheet property changes. | |
Public Constructors | |
style_sheet () | |
Initialize a new xtd::forms::style_sheets::style_sheet instance. | |
style_sheet (const xtd::string &css_text) | |
Initialize a new xtd::forms::style_sheets::style_sheet instance from specified css forrmated text. | |
Public Properties | |
xtd::forms::style_sheets::button | button () const noexcept |
Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::button | button (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet button for specified pseudo state. | |
const buttons_t & | buttons () const noexcept |
Gets the style sheet buttons collection of this instance. | |
xtd::forms::style_sheets::control | control () const noexcept |
Gets the style sheet control for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::control | control (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet control for specified pseudo state. | |
const controls_t & | controls () const noexcept |
Gets the style sheet controls collection of this instance. | |
xtd::forms::style_sheets::button | flat_button () const noexcept |
Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::button | flat_button (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet button for specified pseudo state. | |
const buttons_t & | flat_buttons () const noexcept |
Gets the style sheet buttons collection of this instance. | |
xtd::forms::style_sheets::toggle_button | flat_toggle_button () const noexcept |
Gets the style sheet toggle_button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::toggle_button | flat_toggle_button (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet toggle_button for specified pseudo state. | |
const toggle_buttons_t & | flat_toggle_buttons () const noexcept |
Gets the style sheet toggle_buttons collection of this instance. | |
xtd::forms::style_sheets::form | form () const noexcept |
Gets the style sheet form for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::form | form (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet form for specified pseudo state. | |
const forms_t & | forms () const noexcept |
Gets the style sheet forms collection of this instance. | |
bool | is_system_style_sheet () const noexcept |
Gets a value indicate if this instance is system style sheet. | |
xtd::forms::style_sheets::label | label () const noexcept |
Gets the style sheet label for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::label | label (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet label for specified pseudo state. | |
const labels_t & | labels () const noexcept |
Gets the style sheet labels collection of this instance. | |
xtd::forms::style_sheets::link_label | link_label () const noexcept |
Gets the style sheet link_label for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::link_label | link_label (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet link_label for specified pseudo state. | |
const link_labels_t & | link_labels () const noexcept |
Gets the style sheet link_label collection of this instance. | |
xtd::forms::style_sheets::panel | panel () const noexcept |
Gets the style sheet panel for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::panel | panel (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet panel for specified pseudo state. | |
const panels_t & | panels () const noexcept |
Gets the style sheet panels collection of this instance. | |
xtd::forms::style_sheets::button | popup_button () const noexcept |
Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::button | popup_button (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet button for specified pseudo state. | |
const buttons_t & | popup_buttons () const noexcept |
Gets the style sheet buttons collection of this instance. | |
xtd::forms::style_sheets::toggle_button | popup_toggle_button () const noexcept |
Gets the style sheet toggle_button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::toggle_button | popup_toggle_button (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet toggle_button for specified pseudo state. | |
const toggle_buttons_t & | popup_toggle_buttons () const noexcept |
Gets the style sheet toggle_buttons collection of this instance. | |
xtd::forms::style_sheets::status_bar | status_bar () const noexcept |
Gets the style sheet status_bar for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::status_bar | status_bar (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet status_bar for specified pseudo state. | |
const status_bars_t & | status_bars () const noexcept |
Gets the style sheet status_bar collection of this instance. | |
xtd::forms::style_sheets::status_bar_panel | status_bar_panel () const noexcept |
Gets the style sheet status bar panel for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::status_bar_panel | status_bar_panel (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet status bar panel for specified pseudo state. | |
const status_bar_panels_t & | status_bar_panels () const noexcept |
Gets the style sheet status bar panels collection of this instance. | |
const xtd::forms::style_sheets::system_colors & | system_colors () const noexcept |
Gets The style sheet system colors of this instance. | |
const xtd::forms::style_sheets::theme & | theme () const noexcept |
Gets The style sheet theme of this instance. | |
xtd::forms::style_sheets::toggle_button | toggle_button () const noexcept |
Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::toggle_button | toggle_button (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet button for specified pseudo state. | |
const toggle_buttons_t & | toggle_buttons () const noexcept |
Gets the style sheet buttons collection of this instance. | |
xtd::forms::style_sheets::tool_bar | tool_bar () const noexcept |
Gets the style sheet tool_bar for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::tool_bar | tool_bar (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet tool_bar for specified pseudo state. | |
const tool_bars_t & | tool_bars () const noexcept |
Gets the style sheet tool_bars collection of this instance. | |
xtd::forms::style_sheets::tool_bar_button | tool_bar_button () const noexcept |
Gets the style sheet tool bar button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::tool_bar_button | tool_bar_button (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet tool bar button for specified pseudo state. | |
const tool_bar_buttons_t & | tool_bar_buttons () const noexcept |
Gets the style sheet tool bar buttons collection of this instance. | |
xtd::forms::style_sheets::user_control | user_control () const noexcept |
Gets the style sheet user_control for the xtd::forms::style_sheets::pseudo_state::standard pseudo state. | |
xtd::forms::style_sheets::user_control | user_control (xtd::forms::style_sheets::pseudo_state state) const noexcept |
Gets the style sheet user_control for specified pseudo state. | |
const user_controls_t & | user_controls () const noexcept |
Gets the style sheet user_control collection of this instance. | |
Public Methods | |
bool | equals (const xtd::object &obj) const noexcept override |
Determines whether the specified object is equal to the current object. | |
bool | equals (const style_sheet &other) const noexcept override |
Determines whether the specified object is equal to the current object. | |
xtd::size | get_hash_code () const noexcept override |
Serves as a hash function for a particular type. | |
Public Static Properties | |
static const style_sheet & | current_style_sheet () noexcept |
Gets current xtd::forms::style_sheets::style_sheet style sheet. | |
static void | current_style_sheet (const style_sheet &value) |
Sets current xtd::forms::style_sheets::style_sheet style sheet. | |
static const style_sheets_t & | style_sheets () noexcept |
Gets the installed xtd::forms::style_sheets::style_sheet style sheets. | |
static const style_sheet_names_t & | style_sheet_names () noexcept |
Gets the installed xtd::forms::style_sheets::style_sheet style sheet names. | |
static const style_sheet & | system_style_sheet () noexcept |
Gets system xtd::forms::style_sheets::style_sheet style sheet. | |
Public Static Methods | |
static buttons_t | button_from_css (const xtd::string &css_text) |
Gets the style sheet buttons collection from specified css string. | |
static controls_t | control_from_css (const xtd::string &css_text) |
Gets the style sheet controls collection from specified css string. | |
static style_sheet | get_style_sheet_from_name (const xtd::string &name) |
Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name. | |
static style_sheet | get_style_sheet_from_file (const xtd::string &file_name) |
Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name. | |
static style_sheet | get_style_sheet_from_path (const xtd::string &path_name) |
Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name. | |
static forms_t | form_from_css (const xtd::string &css_text) |
Gets the style sheet forms collection from specified css string. | |
static xtd::forms::style_sheets::system_colors | system_colors_from_css (const xtd::string &css_text) |
Gets the style sheet system colors from specified css string. | |
static xtd::forms::style_sheets::theme | theme_from_css (const xtd::string &css_text) |
Gets the style sheet theme from specified css string. | |
static std::tuple< xtd::forms::style_sheets::border_type, int32, int32 > | to_border_type (xtd::forms::border_style border) |
Converts xtd::forms::border_style in std::tuple<xtd::forms::style_sheets::border_type, int32, int32>. | |
Additional Inherited Members | |
virtual bool | equals (const style_sheet &) const noexcept=0 |
Indicates whether the current object is equal to another object of the same type. | |
object ()=default | |
Create a new instance of the ultimate base class object. | |
virtual type_object | get_type () const noexcept |
Gets the type of the current instance. | |
template<class object_t> | |
xtd::unique_ptr_object< object_t > | memberwise_clone () const |
Creates a shallow copy of the current object. | |
virtual xtd::string | to_string () const noexcept |
Returns a xtd::string that represents the current object. | |
template<class object_a_t, class object_b_t> | |
static bool | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
Determines whether the specified object instances are considered equal. | |
template<class object_a_t, class object_b_t> | |
static bool | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept |
Determines whether the specified object instances are the same instance. | |
Represents a style sheet buttons collection.
Represents a style sheet controls collection.
Represents a style sheet forms collection.
Represents a style sheet labels collection.
Represents a style sheet link_label collection.
Represents a style sheet panels collection.
Represents a style_sheets collection.
Represents a style_sheet names collection.
Represents a style sheet tool_bars collection.
Represents a style sheet buttons collection.
Represents a style sheet toggle buttons collection.
Represents a style sheet tool_bars collection.
Represents a style sheet buttons collection.
Represents a style sheet user_controls collection.
xtd::forms::style_sheets::style_sheet::style_sheet | ( | ) |
Initialize a new xtd::forms::style_sheets::style_sheet instance.
|
explicit |
Initialize a new xtd::forms::style_sheets::style_sheet instance from specified css forrmated text.
css_text | The css forrmated text that contains the style sheet definition. |
|
noexcept |
Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet button for specified pseudo state.
|
noexcept |
Gets the style sheet buttons collection of this instance.
|
noexcept |
Gets the style sheet control for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet control for specified pseudo state.
|
noexcept |
Gets the style sheet controls collection of this instance.
|
noexcept |
Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet button for specified pseudo state.
|
noexcept |
Gets the style sheet buttons collection of this instance.
|
noexcept |
Gets the style sheet toggle_button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet toggle_button for specified pseudo state.
|
noexcept |
Gets the style sheet toggle_buttons collection of this instance.
|
noexcept |
Gets the style sheet form for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet form for specified pseudo state.
|
noexcept |
Gets the style sheet forms collection of this instance.
|
noexcept |
Gets a value indicate if this instance is system style sheet.
true
if the current instance is system style sheet; otherwise false
. true
only if the current instance is equal to xtd::forms::style_sheets::style_sheet::system_style_sheet.
|
noexcept |
Gets the style sheet label for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet label for specified pseudo state.
|
noexcept |
Gets the style sheet labels collection of this instance.
|
noexcept |
Gets the style sheet link_label for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet link_label for specified pseudo state.
|
noexcept |
Gets the style sheet link_label collection of this instance.
|
noexcept |
Gets the style sheet panel for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet panel for specified pseudo state.
|
noexcept |
Gets the style sheet panels collection of this instance.
|
noexcept |
Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet button for specified pseudo state.
|
noexcept |
Gets the style sheet buttons collection of this instance.
|
noexcept |
Gets the style sheet toggle_button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet toggle_button for specified pseudo state.
|
noexcept |
Gets the style sheet toggle_buttons collection of this instance.
|
noexcept |
Gets the style sheet status_bar for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet status_bar for specified pseudo state.
|
noexcept |
Gets the style sheet status_bar collection of this instance.
|
noexcept |
Gets the style sheet status bar panel for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet status bar panel for specified pseudo state.
|
noexcept |
Gets the style sheet status bar panels collection of this instance.
|
noexcept |
Gets The style sheet system colors of this instance.
|
noexcept |
Gets The style sheet theme of this instance.
|
noexcept |
Gets the style sheet button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet button for specified pseudo state.
|
noexcept |
Gets the style sheet buttons collection of this instance.
|
noexcept |
Gets the style sheet tool_bar for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet tool_bar for specified pseudo state.
|
noexcept |
Gets the style sheet tool_bars collection of this instance.
|
noexcept |
Gets the style sheet tool bar button for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet tool bar button for specified pseudo state.
|
noexcept |
Gets the style sheet tool bar buttons collection of this instance.
|
noexcept |
Gets the style sheet user_control for the xtd::forms::style_sheets::pseudo_state::standard pseudo state.
|
noexcept |
Gets the style sheet user_control for specified pseudo state.
|
noexcept |
Gets the style sheet user_control collection of this instance.
|
staticnoexcept |
Gets current xtd::forms::style_sheets::style_sheet style sheet.
|
static |
Sets current xtd::forms::style_sheets::style_sheet style sheet.
value | The current xtd::forms::style_sheets::style_sheet style sheet. |
|
staticnoexcept |
Gets the installed xtd::forms::style_sheets::style_sheet style sheets.
|
staticnoexcept |
Gets the installed xtd::forms::style_sheets::style_sheet style sheet names.
|
staticnoexcept |
Gets system xtd::forms::style_sheets::style_sheet style sheet.
|
overridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
obj | The object to compare with the current object. |
true
if the specified object is equal to the current object. otherwise, false
. Reimplemented from xtd::object.
|
overridenoexcept |
Determines whether the specified object is equal to the current object.
other | The object to compare with the current object. |
true
if the specified object is equal to the current object. otherwise, false
.
|
overridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
static |
Gets the style sheet buttons collection from specified css string.
css_text | The css string that contains button definition. |
|
static |
Gets the style sheet controls collection from specified css string.
css_text | The css string that contains control definition. |
|
static |
Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name.
xtd::argument_exception | The style sheet name not tvalid. |
|
static |
Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name.
xtd::argument_exception | The style sheet name not tvalid. |
|
static |
Gets the installed xtd::forms::style_sheets::style_sheet style sheet from specified name.
xtd::argument_exception | The style sheet name not tvalid. |
|
static |
Gets the style sheet forms collection from specified css string.
css_text | The css string that contains forms definition. |
|
static |
Gets the style sheet system colors from specified css string.
css_text | The css string that contains system colors definition. |
|
static |
Gets the style sheet theme from specified css string.
css_text | The css string that contains theme definition. |
|
static |
Converts xtd::forms::border_style in std::tuple<xtd::forms::style_sheets::border_type, int32, int32>.
border | The forms::border_style to convert. |
|
static |
Provides an empty xtd::forms::style_sheets::style_sheet object.
|
static |
Occurs when the value of the xtd::forms::style_sheets::style_sheet::current_style_sheet property changes.