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