Provides methods to manage a collection of xtd::drawing::image objects. This class cannot be inherited.
Public Aliases | |
using | image_collection |
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. | |
const xtd::any_object & | tag () const noexcept |
Gets an object that contains additional data about the image_list. | |
image_list & | tag (const xtd::any_object &tag) |
Sets an object that contains additional data about the image_list. | |
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 image_list &other) const noexcept override |
Determines whether the specified object is equal to the current object. | |
xtd::size | get_hash_code () const noexcept override |
Serves as a hash function for a particular type. | |
Additional Inherited Members | |
object ()=default | |
Create a new instance of the ultimate base class object. | |
virtual type_object | get_type () const noexcept |
Gets the type of the current instance. | |
template<class object_t> | |
xtd::unique_ptr_object< 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. | |
virtual bool | equals (const image_list &) const noexcept=0 |
Indicates whether the current object is equal to another object of the same type. | |
template<class object_a_t, class 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<class object_a_t, class 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. | |
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. | |
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.
true
if the Handle has been created; otherwise, false
. The default is false
. 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 xtd::any_object & | tag | ) |
Sets an object that contains additional data about the image_list.
tag | A object that contains additional data about the image_list. |
|
overridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
obj | The object to compare with the current object. |
true
if the specified object is equal to the current object. otherwise, false
. 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. |
true
if the specified object is equal to the current object. otherwise, false
.
|
overridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
static |
Represents an image_list empty.