Provides methods to manage a collection of xtd::drawing::image objects. This class cannot be inherited.
Public Aliases | |
using | image_collection = layout::arranged_element_collection< drawing::image > |
Encapsulates the collection of xtd::drawing::image objects in an image_list. | |
Public Fields | |
static image_list | empty |
Represents an image_list empty. | |
static constexpr xtd::size | npos |
Public Constructors | |
image_list () | |
Initialize a new instance ao image_list class. | |
Public Properties | |
intptr | handle () const noexcept |
Gets the handle of the image list object. | |
bool | handle_created () const noexcept |
Gets a value indicating whether the underlying Win32 handle has been created. | |
image_collection & | images () |
Gets the xtd::forms::image_list::image_collection for this image list. | |
const image_collection & | images () const noexcept |
Gets the xtd::forms::image_list::image_collection for this image list. | |
const drawing::size | image_size () const noexcept |
Gets the size of the images in the image list. | |
const image_list & | image_size (const drawing::size &value) |
Sets the size of the images in the image list. | |
std::any | tag () const noexcept |
Gets an object that contains additional data about the image_list. | |
image_list & | tag (const std::any &tag) |
Sets an object that contains additional data about the image_list. | |
Public Methods | |
bool | equals (const image_list &value) const noexcept override |
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. | |
Additional Inherited Members | |
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. | |
Public Member Functions inherited from xtd::iequatable< image_list > | |
virtual bool | equals (const image_list &) const noexcept=0 |
Indicates whether the current object is equal to another object of the same type. | |
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. | |
Protected Member Functions inherited from xtd::forms::component | |
component () | |
Initialises a new instance of the component class. | |
virtual bool | can_raise_events () const noexcept |
Gets a value indicating whether the component can raise an event. | |
bool | design_mode () const noexcept |
Gets a value that indicates whether the component is currently in design mode. | |
using xtd::forms::image_list::image_collection = layout::arranged_element_collection<drawing::image> |
Encapsulates the collection of xtd::drawing::image objects in an image_list.
xtd::forms::image_list::image_list | ( | ) |
Initialize a new instance ao image_list class.
|
noexcept |
Gets the handle of the image list object.
|
noexcept |
Gets a value indicating whether the underlying Win32 handle has been created.
image_collection & xtd::forms::image_list::images | ( | ) |
Gets the xtd::forms::image_list::image_collection for this image list.
|
noexcept |
Gets the xtd::forms::image_list::image_collection for this image list.
|
noexcept |
Gets the size of the images in the image list.
const image_list & xtd::forms::image_list::image_size | ( | const drawing::size & | value | ) |
Sets the size of the images in the image list.
value | The xtd::drawing::size that defines the height and width, in pixels, of the images in the list. The default size is 16 by 16. The maximum size is 256 by 256. |
|
noexcept |
Gets an object that contains additional data about the image_list.
image_list & xtd::forms::image_list::tag | ( | const std::any & | tag | ) |
Sets an object that contains additional data about the image_list.
tag | A object that contains additional data about the image_list. |
|
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. |
|
static |
Represents an image_list empty.