The control selector allows you to specify the box and color of a control.
Public Constructors | |
| control ()=default | |
| Initializes a new instance of the xtd::forms::style_sheets::control class. | |
Public Properties | |
| auto | auto_ellipsis () const noexcept -> bool override |
| Gets a value indicating whether the ellipsis character (...) appears at the right edge of the control, denoting that the control text extends beyond the specified length of the control. | |
| auto | auto_ellipsis (bool value) noexcept -> control & |
| Sets a value indicating whether the ellipsis character (...) appears at the right edge of the control, denoting that the control text extends beyond the specified length of the control. | |
| auto | background_color () const noexcept -> const xtd::drawing::color &override |
| Gets the background color is used to add background effects to the box. | |
| auto | background_color (const xtd::drawing::color &value) noexcept -> control & |
| Sets the background color is used to add background effects to the box. | |
| auto | background_image () const noexcept -> const xtd::forms::style_sheets::background_image &override |
| Gets the background image is used to add background effects to the box. | |
| auto | background_image (const xtd::forms::style_sheets::background_image &value) noexcept -> control & |
| Sets the background image is used to add background effects to the box. | |
| auto | border_color () const noexcept -> const xtd::forms::style_sheets::border_color &override |
| Gets the color is used to set the color of the borders. | |
| auto | border_color (const xtd::forms::style_sheets::border_color &value) noexcept -> control & |
| Sets the color is used to set the color of the borders. | |
| auto | border_radius () const noexcept -> xtd::forms::style_sheets::border_radius override |
| Gets the radius is used to add rounded borders to an element. | |
| auto | border_radius (const xtd::forms::style_sheets::border_radius &value) noexcept -> control & |
| Sets the radius is used to add rounded borders to an element. | |
| auto | border_style () const noexcept -> xtd::forms::style_sheets::border_style override |
| Gets the style specifies what kind of borders to display. | |
| auto | border_style (xtd::forms::style_sheets::border_style value) noexcept -> control & |
| Sets the style specifies what kind of borders to display. | |
| auto | border_width () const noexcept -> xtd::forms::style_sheets::border_width override |
| Gets the width specifies the width of the borders. | |
| auto | border_width (xtd::forms::style_sheets::border_width value) noexcept -> control & |
| Sets the width specifies the width of the border. | |
| auto | color () const noexcept -> const xtd::drawing::color &override |
| Gets the color is used to add foreground effects to the text. | |
| auto | color (const xtd::drawing::color &value) noexcept -> control & |
| Sets the color is used to add foreground effects to the text. | |
| auto | decoration () const noexcept -> xtd::forms::style_sheets::text_decoration override |
| Gets the decoration of the text. | |
| auto | decoration (xtd::forms::style_sheets::text_decoration value) noexcept -> control & |
| Sets the decoration of the text. | |
| auto | font () const noexcept -> const xtd::drawing::font &override |
| Gets the font of the text. | |
| auto | font (const xtd::drawing::font &value) noexcept -> control & |
| Sets the font of the text. | |
| auto | height () const noexcept -> std::optional< xtd::forms::style_sheets::length > override |
| Gets the height of the box. | |
| auto | height (const std::optional< xtd::forms::style_sheets::length > &value) noexcept -> control & |
| Sets the height of the box. | |
| auto | image_alignment () const noexcept -> xtd::forms::content_alignment override |
| Gets the alignment of the image. | |
| auto | image_alignment (xtd::forms::content_alignment value) noexcept -> control & |
| Sets the alignment of the image. | |
| auto | margin () const noexcept -> const xtd::forms::style_sheets::margin &override |
| Gets the area outside the border. | |
| auto | margin (const xtd::forms::style_sheets::margin &value) noexcept -> control & |
| Sets the area outside the border. | |
| auto | outline_color () const noexcept -> const xtd::forms::style_sheets::outline_color &override |
| Gets the color is used to set the color of the outlines. | |
| auto | outline_color (const xtd::forms::style_sheets::outline_color &value) noexcept -> control & |
| Sets the color is used to set the color of the outlines. | |
| auto | outline_offset () const noexcept -> xtd::forms::style_sheets::outline_offset override |
| Gets the ofset specifies the width of the outlines. | |
| auto | outline_offset (xtd::forms::style_sheets::outline_offset value) noexcept -> control & |
| Sets the width specifies the offset of the outlines. | |
| auto | outline_radius () const noexcept -> xtd::forms::style_sheets::outline_radius override |
| Gets the radius is used to add rounded outline to an element. | |
| auto | outline_radius (xtd::forms::style_sheets::outline_radius value) noexcept -> control & |
| Sets the radius is used to add rounded outlines to an element. | |
| auto | outline_style () const noexcept -> xtd::forms::style_sheets::outline_style override |
| Gets the style specifies what kind of outlines to display. | |
| auto | outline_style (xtd::forms::style_sheets::outline_style value) noexcept -> control & |
| Sets the style specifies what kind of outlines to display. | |
| auto | outline_width () const noexcept -> xtd::forms::style_sheets::outline_width override |
| Gets the width specifies the width of the outlines. | |
| auto | outline_width (xtd::forms::style_sheets::outline_width value) noexcept -> control & |
| Sets the width specifies the width of the outlines. | |
| auto | padding () const noexcept -> const xtd::forms::style_sheets::padding &override |
| Gets the area area around the content. | |
| auto | padding (const xtd::forms::style_sheets::padding &value) noexcept -> control & |
| Sets the area area around the content. | |
| auto | shadows () const noexcept -> xtd::forms::style_sheets::shadows override |
| Gets an xtd::forms::style_sheets::shadow array used to draw shadows under the text. | |
| auto | shadows (const xtd::forms::style_sheets::shadows &value) noexcept -> control & |
| Sets an xtd::forms::style_sheets::shadow array used to draw shadows under the text. | |
| auto | text_alignment () const noexcept -> xtd::forms::content_alignment override |
| Gets the alignment of the text. | |
| auto | text_alignment (xtd::forms::content_alignment value) noexcept -> control & |
| Sets the alignment of the text. | |
| auto | transformation () const noexcept -> xtd::forms::style_sheets::text_transformation override |
| Gets the transformation of the text. | |
| auto | transformation (xtd::forms::style_sheets::text_transformation value) noexcept -> control & |
| Sets the transformation of the text. | |
| auto | width () const noexcept -> std::optional< xtd::forms::style_sheets::length > override |
| Gets the width of the box. | |
| auto | width (std::optional< xtd::forms::style_sheets::length > value) noexcept -> control & |
| Sets the width of the box. | |
| auto | white_space () const noexcept -> xtd::forms::style_sheets::white_space override |
| Gets how white-space inside an element is handled. | |
| auto | white_space (xtd::forms::style_sheets::white_space value) noexcept -> control & |
| Sets how white-space inside an element is handled. | |
Public Methods | |
| auto | equals (const xtd::object &obj) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | equals (const control &other) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | get_hash_code () const noexcept -> xtd::usize override |
| Serves as a hash function for a particular type. | |
| auto | get_solid_background_color () const noexcept -> xtd::drawing::color |
| Gets solid background color. | |
| auto | get_border_rectangle (const xtd::drawing::rectangle &bounds) const noexcept -> xtd::drawing::rectangle override |
| Gets the border rectangle from the specified rectangle. | |
| auto | get_fill_rectangle (const xtd::drawing::rectangle &bounds) const noexcept -> xtd::drawing::rectangle override |
| Gets the fill rectangle from the specified rectangle. | |
| auto | get_outline_rectangle (const xtd::drawing::rectangle &bounds) const noexcept -> xtd::drawing::rectangle override |
| Gets the outline rectangle from the specified rectangle. | |
| auto | get_content_rectangle (const xtd::drawing::rectangle &bounds) const noexcept -> xtd::drawing::rectangle override |
| Gets the content rectangle from the specified rectangle. | |
| auto | make_string_format () const noexcept -> xtd::drawing::string_format override |
| Makes string format. | |
Public Static Methods | |
| static auto | create_control () -> control |
| A factory to create control. | |
Additional Inherited Members | |
| virtual auto | equals (const control &) const noexcept -> bool=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 auto | get_type () const noexcept -> type_object |
| Gets the type of the current instance. | |
| template<typename object_t> | |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| Creates a shallow copy of the current object. | |
| virtual auto | to_string () const -> xtd::string |
| Returns a xtd::string that represents the current object. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are considered equal. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are the same instance. | |
|
default |
Initializes a new instance of the xtd::forms::style_sheets::control class.
|
nodiscardoverridevirtualnoexcept |
Gets a value indicating whether the ellipsis character (...) appears at the right edge of the control, denoting that the control text extends beyond the specified length of the control.
Implements xtd::forms::style_sheets::itext_model.
|
noexcept |
Sets a value indicating whether the ellipsis character (...) appears at the right edge of the control, denoting that the control text extends beyond the specified length of the control.
| value | true if the additional control text is to be indicated by an ellipsis; otherwise, false. |
|
nodiscardoverridevirtualnoexcept |
Gets the background color is used to add background effects to the box.
Implements xtd::forms::style_sheets::ibox_model.
|
noexcept |
Sets the background color is used to add background effects to the box.
| value | The background color is used to add background effects to the box. |
|
nodiscardoverridevirtualnoexcept |
Gets the background image is used to add background effects to the box.
Implements xtd::forms::style_sheets::ibox_model.
|
noexcept |
Sets the background image is used to add background effects to the box.
| value | The background image is used to add background effects to the box. |
|
nodiscardoverridevirtualnoexcept |
Gets the color is used to set the color of the borders.
Implements xtd::forms::style_sheets::ibox_model.
|
noexcept |
Sets the color is used to set the color of the borders.
| value | The color is used to set the color of the borders. |
|
nodiscardoverridevirtualnoexcept |
Gets the radius is used to add rounded borders to an element.
Implements xtd::forms::style_sheets::ibox_model.
|
noexcept |
Sets the radius is used to add rounded borders to an element.
| value | The radius is used to add rounded borders to an element. |
|
nodiscardoverridevirtualnoexcept |
Gets the style specifies what kind of borders to display.
Implements xtd::forms::style_sheets::ibox_model.
|
noexcept |
Sets the style specifies what kind of borders to display.
| value | The style specifies what kind of borders to display. |
|
nodiscardoverridevirtualnoexcept |
Gets the width specifies the width of the borders.
Implements xtd::forms::style_sheets::ibox_model.
|
noexcept |
Sets the width specifies the width of the border.
| value | The width specifies the width of the borders. |
|
nodiscardoverridevirtualnoexcept |
Gets the color is used to add foreground effects to the text.
Implements xtd::forms::style_sheets::itext_model.
|
noexcept |
Sets the color is used to add foreground effects to the text.
| value | The color is used to add foreground effects to the text. |
|
nodiscardoverridevirtualnoexcept |
Gets the decoration of the text.
Implements xtd::forms::style_sheets::itext_model.
|
noexcept |
Sets the decoration of the text.
| value | One of xtd::forms::style_sheets::text_decoration values. |
|
nodiscardoverridevirtualnoexcept |
Gets the font of the text.
Implements xtd::forms::style_sheets::itext_model.
|
noexcept |
Sets the font of the text.
| value | The font of the text. |
|
nodiscardoverridevirtualnoexcept |
Gets the height of the box.
Implements xtd::forms::style_sheets::ibox_model.
|
noexcept |
Sets the height of the box.
|
nodiscardoverridevirtualnoexcept |
Gets the alignment of the image.
Implements xtd::forms::style_sheets::iimage_model.
|
noexcept |
Sets the alignment of the image.
| value | A combination of xtd::forms::content_alignment values. |
|
nodiscardoverridevirtualnoexcept |
Gets the area outside the border.
Implements xtd::forms::style_sheets::ibox_model.
|
noexcept |
Sets the area outside the border.
| value | The area outside the border. |
|
nodiscardoverridevirtualnoexcept |
Gets the color is used to set the color of the outlines.
Implements xtd::forms::style_sheets::ibox_model.
|
noexcept |
Sets the color is used to set the color of the outlines.
| value | The color is used to set the color of the outlines. |
|
nodiscardoverridevirtualnoexcept |
Gets the ofset specifies the width of the outlines.
Implements xtd::forms::style_sheets::ibox_model.
|
noexcept |
Sets the width specifies the offset of the outlines.
| value | The width specifies the offset of the outlines. |
|
nodiscardoverridevirtualnoexcept |
Gets the radius is used to add rounded outline to an element.
Implements xtd::forms::style_sheets::ibox_model.
|
noexcept |
Sets the radius is used to add rounded outlines to an element.
| value | The radius is used to add rounded outlines to an element. |
|
nodiscardoverridevirtualnoexcept |
Gets the style specifies what kind of outlines to display.
Implements xtd::forms::style_sheets::ibox_model.
|
noexcept |
Sets the style specifies what kind of outlines to display.
| value | The style specifies what kind of outlines to display. |
|
nodiscardoverridevirtualnoexcept |
Gets the width specifies the width of the outlines.
Implements xtd::forms::style_sheets::ibox_model.
|
noexcept |
Sets the width specifies the width of the outlines.
| value | The width specifies the width of the outlines. |
|
nodiscardoverridevirtualnoexcept |
Gets the area area around the content.
Implements xtd::forms::style_sheets::ibox_model.
|
noexcept |
Sets the area area around the content.
| value | The area around the content. |
|
nodiscardoverridevirtualnoexcept |
Gets an xtd::forms::style_sheets::shadow array used to draw shadows under the text.
Implements xtd::forms::style_sheets::itext_model.
|
noexcept |
Sets an xtd::forms::style_sheets::shadow array used to draw shadows under the text.
| value | The xtd::forms::style_sheets::shadow array used to draw shadows under the text. |
|
nodiscardoverridevirtualnoexcept |
Gets the alignment of the text.
Implements xtd::forms::style_sheets::itext_model.
|
noexcept |
Sets the alignment of the text.
| value | A combination of xtd::forms::content_alignment values. |
|
nodiscardoverridevirtualnoexcept |
Gets the transformation of the text.
Implements xtd::forms::style_sheets::itext_model.
|
noexcept |
Sets the transformation of the text.
| value | One of xtd::forms::style_sheets::text_transformation values. |
|
nodiscardoverridevirtualnoexcept |
Gets the width of the box.
Implements xtd::forms::style_sheets::ibox_model.
|
noexcept |
Sets the width of the box.
| value | The width of the box. |
|
nodiscardoverridevirtualnoexcept |
Gets how white-space inside an element is handled.
Implements xtd::forms::style_sheets::itext_model.
|
noexcept |
Sets how white-space inside an element is handled.
| value | One of xtd::forms::style_sheets::white_space values. |
|
nodiscardoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
nodiscardoverridenoexcept |
Determines whether the specified object is equal to the current object.
| other | The object to compare with the current object. |
|
nodiscardoverridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
nodiscardnoexcept |
Gets solid background color.
|
nodiscardoverridevirtualnoexcept |
Gets the border rectangle from the specified rectangle.
Implements xtd::forms::style_sheets::ibox_model.
|
nodiscardoverridevirtualnoexcept |
Gets the fill rectangle from the specified rectangle.
Implements xtd::forms::style_sheets::ibox_model.
|
nodiscardoverridevirtualnoexcept |
Gets the outline rectangle from the specified rectangle.
Implements xtd::forms::style_sheets::ibox_model.
|
nodiscardoverridevirtualnoexcept |
Gets the content rectangle from the specified rectangle.
Implements xtd::forms::style_sheets::ibox_model.
|
nodiscardoverridevirtualnoexcept |
|
inlinestaticnodiscard |
A factory to create control.