The box model allows you to specify the margin, borders, padding, background color, width and height of a box.
Public Properties | |
virtual const xtd::drawing::color & | background_color () const noexcept=0 |
Gets the background color is used to add background effects to the box. | |
virtual const xtd::forms::style_sheets::background_image & | background_image () const noexcept=0 |
Gets the background image is used to add background effects to the box. | |
virtual const xtd::forms::style_sheets::border_color & | border_color () const noexcept=0 |
Gets the color is used to set the color of the borders. | |
virtual xtd::forms::style_sheets::border_radius | border_radius () const noexcept=0 |
Gets the radius is used to add rounded borders to an element. | |
virtual xtd::forms::style_sheets::border_style | border_style () const noexcept=0 |
Gets the style specifies what kind of borders to display. | |
virtual xtd::forms::style_sheets::border_width | border_width () const noexcept=0 |
Gets the width specifies the width of the borders. | |
virtual std::optional< xtd::forms::style_sheets::length > | height () const noexcept=0 |
Gets the height of the box. | |
virtual const xtd::forms::style_sheets::margin & | margin () const noexcept=0 |
Gets the area outside the border. | |
virtual const xtd::forms::style_sheets::outline_color & | outline_color () const noexcept=0 |
Gets the color is used to set the color of the outlines. | |
virtual xtd::forms::style_sheets::outline_offset | outline_offset () const noexcept=0 |
Gets the ofset specifies the width of the outlines. | |
virtual xtd::forms::style_sheets::outline_radius | outline_radius () const noexcept=0 |
Gets the radius is used to add rounded outline to an element. | |
virtual xtd::forms::style_sheets::outline_style | outline_style () const noexcept=0 |
Gets the style specifies what kind of outlines to display. | |
virtual xtd::forms::style_sheets::outline_width | outline_width () const noexcept=0 |
Gets the width specifies the width of the outlines. | |
virtual const xtd::forms::style_sheets::padding & | padding () const noexcept=0 |
Gets the area area around the content. | |
virtual std::optional< xtd::forms::style_sheets::length > | width () const noexcept=0 |
Gets the width of the box. | |
Public Methods | |
virtual xtd::drawing::rectangle | get_border_rectangle (const xtd::drawing::rectangle &bounds) const noexcept=0 |
Gets the computed boder rectangle from specified bounds. | |
virtual xtd::drawing::rectangle | get_fill_rectangle (const xtd::drawing::rectangle &bounds) const noexcept=0 |
Gets the computed fill rectangle from specified bounds. | |
virtual xtd::drawing::rectangle | get_outline_rectangle (const xtd::drawing::rectangle &bounds) const noexcept=0 |
Gets the computed outline rectangle from specified bounds. | |
virtual xtd::drawing::rectangle | get_content_rectangle (const xtd::drawing::rectangle &bounds) const noexcept=0 |
Gets the computed content rectangle from specified bounds. | |
|
pure virtualnoexcept |
Gets the background color is used to add background effects to the box.
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the background image is used to add background effects to the box.
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the color is used to set the color of the borders.
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the radius is used to add rounded borders to an element.
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the style specifies what kind of borders to display.
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the width specifies the width of the borders.
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the height of the box.
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the area outside the border.
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the color is used to set the color of the outlines.
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the ofset specifies the width of the outlines.
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the radius is used to add rounded outline to an element.
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the style specifies what kind of outlines to display.
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the width specifies the width of the outlines.
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the area area around the content.
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the width of the box.
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the computed boder rectangle from specified bounds.
bounds | The bounds use to compute the borfder rectangle with this box instance. |
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the computed fill rectangle from specified bounds.
bounds | The bounds use to compute the fill rectangle with this box instance. |
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the computed outline rectangle from specified bounds.
bounds | The bounds use to compute the outline rectangle with this box instance. |
Implemented in xtd::forms::style_sheets::control.
|
pure virtualnoexcept |
Gets the computed content rectangle from specified bounds.
bounds | The bounds use to compute the content rectangle with this box instance. |
Implemented in xtd::forms::style_sheets::control.