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 | |
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. | |
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. | |
const xtd::drawing::color & | background_color () const noexcept override |
Gets the background color is used to add background effects to the box. | |
control & | background_color (const xtd::drawing::color &value) noexcept |
Sets the background color is used to add background effects to the box. | |
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. | |
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. | |
const xtd::forms::style_sheets::border_color & | border_color () const noexcept override |
Gets the color is used to set the color of the borders. | |
control & | border_color (const xtd::forms::style_sheets::border_color &value) noexcept |
Sets the color is used to set the color of the borders. | |
xtd::forms::style_sheets::border_radius | border_radius () const noexcept override |
Gets the radius is used to add rounded borders to an element. | |
control & | border_radius (const xtd::forms::style_sheets::border_radius &value) noexcept |
Sets the radius is used to add rounded borders to an element. | |
xtd::forms::style_sheets::border_style | border_style () const noexcept override |
Gets the style specifies what kind of borders to display. | |
control & | border_style (xtd::forms::style_sheets::border_style value) noexcept |
Sets the style specifies what kind of borders to display. | |
xtd::forms::style_sheets::border_width | border_width () const noexcept override |
Gets the width specifies the width of the borders. | |
control & | border_width (xtd::forms::style_sheets::border_width value) noexcept |
Sets the width specifies the width of the border. | |
const xtd::drawing::color & | color () const noexcept override |
Gets the color is used to add foreground effects to the text. | |
control & | color (const xtd::drawing::color &value) noexcept |
Sets the color is used to add foreground effects to the text. | |
xtd::forms::style_sheets::text_decoration | decoration () const noexcept override |
Gets the decoration of the text. | |
control & | decoration (xtd::forms::style_sheets::text_decoration value) noexcept |
Sets the decoration of the text. | |
const xtd::drawing::font & | font () const noexcept override |
Gets the font of the text. | |
control & | font (const xtd::drawing::font &value) noexcept |
Sets the font of the text. | |
std::optional< xtd::forms::style_sheets::length > | height () const noexcept override |
Gets the height of the box. | |
control & | height (const std::optional< xtd::forms::style_sheets::length > &value) noexcept |
Sets the height of the box. | |
xtd::forms::content_alignment | image_alignment () const noexcept override |
Gets the alignment of the image. | |
control & | image_alignment (xtd::forms::content_alignment value) noexcept |
Sets the alignment of the image. | |
const xtd::forms::style_sheets::margin & | margin () const noexcept override |
Gets the area outside the border. | |
control & | margin (const xtd::forms::style_sheets::margin &value) noexcept |
Sets the area outside the border. | |
const xtd::forms::style_sheets::outline_color & | outline_color () const noexcept override |
Gets the color is used to set the color of the outlines. | |
control & | outline_color (const xtd::forms::style_sheets::outline_color &value) noexcept |
Sets the color is used to set the color of the outlines. | |
xtd::forms::style_sheets::outline_offset | outline_offset () const noexcept override |
Gets the ofset specifies the width of the outlines. | |
control & | outline_offset (xtd::forms::style_sheets::outline_offset value) noexcept |
Sets the width specifies the offset of the outlines. | |
xtd::forms::style_sheets::outline_radius | outline_radius () const noexcept override |
Gets the radius is used to add rounded outline to an element. | |
control & | outline_radius (xtd::forms::style_sheets::outline_radius value) noexcept |
Sets the radius is used to add rounded outlines to an element. | |
xtd::forms::style_sheets::outline_style | outline_style () const noexcept override |
Gets the style specifies what kind of outlines to display. | |
control & | outline_style (xtd::forms::style_sheets::outline_style value) noexcept |
Sets the style specifies what kind of outlines to display. | |
xtd::forms::style_sheets::outline_width | outline_width () const noexcept override |
Gets the width specifies the width of the outlines. | |
control & | outline_width (xtd::forms::style_sheets::outline_width value) noexcept |
Sets the width specifies the width of the outlines. | |
const xtd::forms::style_sheets::padding & | padding () const noexcept override |
Gets the area area around the content. | |
control & | padding (const xtd::forms::style_sheets::padding &value) noexcept |
Sets the area area around the content. | |
xtd::forms::style_sheets::shadows | shadows () const noexcept override |
Gets an xtd::forms::style_sheets::shadow array used to draw shadows under the text. | |
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. | |
xtd::forms::content_alignment | text_alignment () const noexcept override |
Gets the alignment of the text. | |
control & | text_alignment (xtd::forms::content_alignment value) noexcept |
Sets the alignment of the text. | |
xtd::forms::style_sheets::text_transformation | transformation () const noexcept override |
Gets the transformation of the text. | |
control & | transformation (xtd::forms::style_sheets::text_transformation value) noexcept |
Sets the transformation of the text. | |
std::optional< xtd::forms::style_sheets::length > | width () const noexcept override |
Gets the width of the box. | |
control & | width (std::optional< xtd::forms::style_sheets::length > value) noexcept |
Sets the width of the box. | |
xtd::forms::style_sheets::white_space | white_space () const noexcept override |
Gets how white-space inside an element is handled. | |
control & | white_space (xtd::forms::style_sheets::white_space value) noexcept |
Sets how white-space inside an element is handled. | |
Public Methods | |
bool | equals (const control &other) const noexcept override |
xtd::drawing::color | get_solid_background_color () const noexcept |
Gets solid background color. | |
xtd::drawing::rectangle | get_border_rectangle (const xtd::drawing::rectangle &bounds) const noexcept override |
Gets the border rectangle from the specified rectangle. | |
xtd::drawing::rectangle | get_fill_rectangle (const xtd::drawing::rectangle &bounds) const noexcept override |
Gets the fill rectangle from the specified rectangle. | |
xtd::drawing::rectangle | get_outline_rectangle (const xtd::drawing::rectangle &bounds) const noexcept override |
Gets the outline rectangle from the specified rectangle. | |
xtd::drawing::rectangle | get_content_rectangle (const xtd::drawing::rectangle &bounds) const noexcept override |
Gets the content rectangle from the specified rectangle. | |
xtd::drawing::string_format | make_string_format () const noexcept override |
Makes string format. | |
virtual bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. | |
template<typename object_a_t , typename 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. | |
Public Static Methods | |
static control | create_control () |
A factory to 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. | |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. | |
virtual type_object | get_type () const noexcept |
Gets the type of the current instance. | |
template<typename object_t > | |
xtd::uptr< 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. | |
Static Public Member Functions inherited from xtd::object | |
template<typename object_a_t , typename 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<typename object_a_t , typename 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. | |
|
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 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 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 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. |
|
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. |
|
noexcept |
Gets solid background color.
|
overridevirtualnoexcept |
Gets the border rectangle from the specified rectangle.
Implements xtd::forms::style_sheets::ibox_model.
|
overridevirtualnoexcept |
Gets the fill rectangle from the specified rectangle.
Implements xtd::forms::style_sheets::ibox_model.
|
overridevirtualnoexcept |
Gets the outline rectangle from the specified rectangle.
Implements xtd::forms::style_sheets::ibox_model.
|
overridevirtualnoexcept |
Gets the content rectangle from the specified rectangle.
Implements xtd::forms::style_sheets::ibox_model.
|
overridevirtualnoexcept |
|
inlinestatic |
A factory to create control.
|
virtualnoexcept |
Determines whether the specified object is equal to the current object.
obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
inlinestaticnoexcept |
Determines whether the specified object instances are considered equal.
object_a | The first object to compare. |
object_b | The second object to compare. |