Represents a display device or multiple display devices on a single system.
Public Fields | |
| static const padding | empty |
| Provides a Padding object with no padding. | |
Public Constructors | |
| padding ()=default | |
| Initializes a new instance of the padding class. | |
| padding (int32 all) | |
| Initializes a new instance of the padding class using the supplied padding size for all edges. | |
| padding (int32 left, int32 top, int32 right, int32 bottom) | |
| Initializes a new instance of the padding class using a separate padding size for each edge. | |
Peorperties | |
| int32 | all () const noexcept |
| Gets the padding value for all the edges. | |
| void | all (int32 all) |
| Sets the padding value for all the edges. | |
| int32 | bottom () const noexcept |
| Gets the padding value for the bottom edge. | |
| void | bottom (int32 bottom) |
| Sets the padding value for the bottom edge. | |
| int32 | horizontal () const noexcept |
| Gets the combined padding for the right and left edges. | |
| int32 | left () const noexcept |
| Gets the padding value for the left edge. | |
| void | left (int32 left) |
| Sets the padding value for the left edge. | |
| int32 | right () const noexcept |
| Gets the padding value for the right edge. | |
| void | right (int32 right) |
| Sets the padding value for the right edge. | |
| int32 | top () const noexcept |
| Gets the padding value for the top edge. | |
| void | top (int32 top) |
| Sets the padding value for the top edge. | |
| int32 | vertical () const noexcept |
| Gets the combined padding for the bottom and top edges. | |
Public Methods | |
| bool | equals (const xtd::object &obj) const noexcept override |
| Determines whether the specified object is equal to the current object. | |
| bool | equals (const padding &other) const noexcept override |
| Determines whether the specified object is equal to the current object. | |
| xtd::usize | get_hash_code () const noexcept override |
| Serves as a hash function for a particular type. | |
| xtd::string | to_string () const noexcept override |
| Returns a string that represents the current padding. | |
Public Static Methods | |
| static padding | add (const padding &p1, const padding &p2) |
| Computes the sum of the two specified padding values. | |
| static padding | subtract (const padding &p1, const padding &p2) |
| Subtracts one specified Padding value from another. | |
Additional Inherited Members | |
| 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 | equals (const padding &) const noexcept -> bool=0 |
| Indicates whether the current object is equal to another object of the same type. | |
| 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 padding class.
| xtd::forms::padding::padding | ( | int32 | all | ) |
Initializes a new instance of the padding class using the supplied padding size for all edges.
| all | The number of pixels to be used for padding for all edges. |
Initializes a new instance of the padding class using a separate padding size for each edge.
| left | The padding size, in pixels, for the left edge. |
| top | The padding size, in pixels, for the top edge. |
| right | The padding size, in pixels, for the right edge. |
| bottom | The padding size, in pixels, for the bottom edge. |
|
noexcept |
Gets the padding value for all the edges.
| void xtd::forms::padding::all | ( | int32 | all | ) |
Sets the padding value for all the edges.
| all | The padding, in pixels, for all edges if the same; otherwise, -1. |
|
noexcept |
Gets the padding value for the bottom edge.
| void xtd::forms::padding::bottom | ( | int32 | bottom | ) |
Sets the padding value for the bottom edge.
| bottom | The padding, in pixels, for the bottom edge. |
|
noexcept |
Gets the combined padding for the right and left edges.
|
noexcept |
Gets the padding value for the left edge.
| void xtd::forms::padding::left | ( | int32 | left | ) |
Sets the padding value for the left edge.
| left | The padding, in pixels, for the left edge. |
|
noexcept |
Gets the padding value for the right edge.
| void xtd::forms::padding::right | ( | int32 | right | ) |
Sets the padding value for the right edge.
| right | The padding, in pixels, for the right edge. |
|
noexcept |
Gets the padding value for the top edge.
| void xtd::forms::padding::top | ( | int32 | top | ) |
Sets the padding value for the top edge.
| top | The padding, in pixels, for the top edge. |
|
noexcept |
Gets the combined padding for the bottom and top edges.
| p1 | A padding. |
| p2 | A padding. |
|
overridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
overridenoexcept |
Determines whether the specified object is equal to the current object.
| other | The object to compare with the current object. |
|
overridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
overridevirtualnoexcept |
Returns a string that represents the current padding.
Reimplemented from xtd::object.
Computes the sum of the two specified padding values.
Subtracts one specified Padding value from another.
| p1 | A padding. |
| p2 | A padding. |
|
static |
Provides a Padding object with no padding.