The control selector allows you to specify the box and color of a control.
Constructors | |
| control ()=default | |
| Initializes a new instance of the xtd::forms::style_sheets::control class. More... | |
Properties | |
| bool | auto_ellipsis () const noexcept 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. More... | |
| control & | auto_ellipsis (bool value) 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. More... | |
| const xtd::drawing::color & | background_color () const noexcept override |
| Gets the background color is used to add background effects to the box. More... | |
| control & | background_color (const xtd::drawing::color &value) noexcept |
| Sets the background color is used to add background effects to the box. More... | |
| const xtd::forms::style_sheets::background_image & | background_image () const noexcept override |
| Gets the background image is used to add background effects to the box. More... | |
| control & | background_image (const xtd::forms::style_sheets::background_image &value) noexcept |
| Sets the background image is used to add background effects to the box. More... | |
| const xtd::forms::style_sheets::border_color & | border_color () const noexcept override |
| Gets the color is used to set the color of the borders. More... | |
| control & | border_color (const xtd::forms::style_sheets::border_color &value) noexcept |
| Sets the color is used to set the color of the borders. More... | |
| xtd::forms::style_sheets::border_radius | border_radius () const noexcept override |
| Gets the radius is used to add rounded borders to an element. More... | |
| control & | border_radius (const xtd::forms::style_sheets::border_radius &value) noexcept |
| Sets the radius is used to add rounded borders to an element. More... | |
| xtd::forms::style_sheets::border_style | border_style () const noexcept override |
| Gets the style specifies what kind of borders to display. More... | |
| control & | border_style (xtd::forms::style_sheets::border_style value) noexcept |
| Sets the style specifies what kind of borders to display. More... | |
| xtd::forms::style_sheets::border_width | border_width () const noexcept override |
| Gets the width specifies the width of the borders. More... | |
| control & | border_width (xtd::forms::style_sheets::border_width value) noexcept |
| Sets the width specifies the width of the border. More... | |
| const xtd::drawing::color & | color () const noexcept override |
| Gets the color is used to add foreground effects to the text. More... | |
| control & | color (const xtd::drawing::color &value) noexcept |
| Sets the color is used to add foreground effects to the text. More... | |
| xtd::forms::style_sheets::text_decoration | decoration () const noexcept override |
| Gets the decoration of the text. More... | |
| control & | decoration (xtd::forms::style_sheets::text_decoration value) noexcept |
| Sets the decoration of the text. More... | |
| const xtd::drawing::font & | font () const noexcept override |
| Gets the font of the text. More... | |
| control & | font (const xtd::drawing::font &value) noexcept |
| Sets the font of the text. More... | |
| std::optional< xtd::forms::style_sheets::length > | height () const noexcept override |
| Gets the height of the box. More... | |
| control & | height (const std::optional< xtd::forms::style_sheets::length > &value) noexcept |
| Sets the height of the box. More... | |
| xtd::forms::content_alignment | image_alignment () const noexcept override |
| Gets the alignment of the image. More... | |
| control & | image_alignment (xtd::forms::content_alignment value) noexcept |
| Sets the alignment of the image. More... | |
| const xtd::forms::style_sheets::margin & | margin () const noexcept override |
| Gets the area outside the border. More... | |
| control & | margin (const xtd::forms::style_sheets::margin &value) noexcept |
| Sets the area outside the border. More... | |
| const xtd::forms::style_sheets::outline_color & | outline_color () const noexcept override |
| Gets the color is used to set the color of the outlines. More... | |
| control & | outline_color (const xtd::forms::style_sheets::outline_color &value) noexcept |
| Sets the color is used to set the color of the outlines. More... | |
| xtd::forms::style_sheets::outline_offset | outline_offset () const noexcept override |
| Gets the ofset specifies the width of the outlines. More... | |
| control & | outline_offset (xtd::forms::style_sheets::outline_offset value) noexcept |
| Sets the width specifies the offset of the outlines. More... | |
| xtd::forms::style_sheets::outline_radius | outline_radius () const noexcept override |
| Gets the radius is used to add rounded outline to an element. More... | |
| control & | outline_radius (xtd::forms::style_sheets::outline_radius value) noexcept |
| Sets the radius is used to add rounded outlines to an element. More... | |
| xtd::forms::style_sheets::outline_style | outline_style () const noexcept override |
| Gets the style specifies what kind of outlines to display. More... | |
| control & | outline_style (xtd::forms::style_sheets::outline_style value) noexcept |
| Sets the style specifies what kind of outlines to display. More... | |
| xtd::forms::style_sheets::outline_width | outline_width () const noexcept override |
| Gets the width specifies the width of the outlines. More... | |
| control & | outline_width (xtd::forms::style_sheets::outline_width value) noexcept |
| Sets the width specifies the width of the outlines. More... | |
| const xtd::forms::style_sheets::padding & | padding () const noexcept override |
| Gets the area area around the content. More... | |
| control & | padding (const xtd::forms::style_sheets::padding &value) noexcept |
| Sets the area area around the content. More... | |
| xtd::forms::style_sheets::shadows | shadows () const noexcept override |
| Gets an xtd::forms::style_sheets::shadow array used to draw shadows under the text. More... | |
| control & | shadows (const xtd::forms::style_sheets::shadows &value) noexcept |
| Sets an xtd::forms::style_sheets::shadow array used to draw shadows under the text. More... | |
| xtd::forms::content_alignment | text_alignment () const noexcept override |
| Gets the alignment of the text. More... | |
| control & | text_alignment (xtd::forms::content_alignment value) noexcept |
| Sets the alignment of the text. More... | |
| xtd::forms::style_sheets::text_transformation | transformation () const noexcept override |
| Gets the transformation of the text. More... | |
| control & | transformation (xtd::forms::style_sheets::text_transformation value) noexcept |
| Sets the transformation of the text. More... | |
| std::optional< xtd::forms::style_sheets::length > | width () const noexcept override |
| Gets the width of the box. More... | |
| control & | width (std::optional< xtd::forms::style_sheets::length > value) noexcept |
| Sets the width of the box. More... | |
| xtd::forms::style_sheets::white_space | white_space () const noexcept override |
| Gets how white-space inside an element is handled. More... | |
| control & | white_space (xtd::forms::style_sheets::white_space value) noexcept |
| Sets how white-space inside an element is handled. More... | |
Methods | |
| bool | equals (const control &other) const noexcept override |
| xtd::drawing::color | get_solid_background_color () const noexcept |
| xtd::drawing::rectangle | get_border_rectangle (const xtd::drawing::rectangle &bounds) const noexcept override |
| Gets the computed boder rectangle from specified bounds. More... | |
| xtd::drawing::rectangle | get_fill_rectangle (const xtd::drawing::rectangle &bounds) const noexcept override |
| Gets the computed fill rectangle from specified bounds. More... | |
| xtd::drawing::rectangle | get_outline_rectangle (const xtd::drawing::rectangle &bounds) const noexcept override |
| Gets the computed outline rectangle from specified bounds. More... | |
| xtd::drawing::rectangle | get_content_rectangle (const xtd::drawing::rectangle &bounds) const noexcept override |
| Gets the computed content rectangle from specified bounds. More... | |
| xtd::drawing::string_format | make_string_format () const noexcept override |
| Gets the string format of the text. More... | |
| static control | create_control () |
Additional Inherited Members | |
Public Member Functions inherited from xtd::forms::style_sheets::ibox_model | |
Public Member Functions inherited from xtd::forms::style_sheets::itext_model | |
Public Member Functions inherited from xtd::forms::style_sheets::iimage_model | |
Public Member Functions inherited from xtd::iequatable< control > | |
| virtual bool | equals (const control &) const noexcept=0 |
| Indicates whether the current object is equal to another object of the same type. More... | |
Public Member Functions inherited from xtd::object | |
| object ()=default | |
| Create a new instance of the ultimate base class object. More... | |
| bool | equals (const object &obj) const noexcept |
| Determines whether the specified object is equal to the current object. More... | |
| virtual size_t | get_hash_code () const noexcept |
| Serves as a hash function for a particular type. More... | |
| virtual type_object | get_type () const noexcept |
| Gets the type of the current instance. More... | |
| template<typename object_t > | |
| std::unique_ptr< object_t > | memberwise_clone () const noexcept |
| Creates a shallow copy of the current object. More... | |
| virtual xtd::ustring | to_string () const noexcept |
| Returns a sxd::ustring that represents the current object. More... | |
Static Public Member Functions inherited from xtd::object | |
| static bool | equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are considered equal. More... | |
| static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
| Determines whether the specified object instances are the same instance. More... | |
|
default |
Initializes a new instance of the xtd::forms::style_sheets::control class.
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
Gets the computed boder rectangle from specified bounds.
| bounds | The bounds use to compute the borfder rectangle with this box instance. |
Implements xtd::forms::style_sheets::ibox_model.
|
overridevirtualnoexcept |
Gets the computed content rectangle from specified bounds.
| bounds | The bounds use to compute the content rectangle with this box instance. |
Implements xtd::forms::style_sheets::ibox_model.
|
overridevirtualnoexcept |
Gets the computed fill rectangle from specified bounds.
| bounds | The bounds use to compute the fill rectangle with this box instance. |
Implements xtd::forms::style_sheets::ibox_model.
|
overridevirtualnoexcept |
Gets the computed outline rectangle from specified bounds.
| bounds | The bounds use to compute the outline rectangle with this box instance. |
Implements xtd::forms::style_sheets::ibox_model.
|
overridevirtualnoexcept |
Gets the height of the box.
Implements xtd::forms::style_sheets::ibox_model.
|
noexcept |
Sets the height of the box.
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
Gets the string format of the text.
Implements xtd::forms::style_sheets::itext_model.
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |
|
overridevirtualnoexcept |
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. |