xtd - Reference Guide  0.2.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Classes | Public Member Functions | List of all members
xtd::forms::list_control::item Class Reference

#include <list_control.h>

Definition

Represent an item contained in the list_control::object_collection collection.

Classes

class  sorter
 Represent the sorter class used by list_control::object_collection collection. More...
 

Public Member Functions

 item ()=default
 Initializes a new instance of the item class. More...
 
 item (const xtd::ustring &value)
 Initializes a new instance of the item class with specified value. More...
 
 item (const xtd::ustring &value, const std::any &tag)
 Initializes a new instance of the item class with specified value and tag. More...
 
virtual std::any tag () const
 Gets the tag of the item. More...
 
xtd::ustring to_string () const
 Returns a string containing the value of the item. More...
 
virtual const xtd::ustringvalue () const
 Gets the value of the item. More...
 

Constructor & Destructor Documentation

◆ item() [1/3]

xtd::forms::list_control::item::item ( )
default

Initializes a new instance of the item class.

◆ item() [2/3]

xtd::forms::list_control::item::item ( const xtd::ustring value)
inline

Initializes a new instance of the item class with specified value.

Parameters
valuea string that represent the item.

◆ item() [3/3]

xtd::forms::list_control::item::item ( const xtd::ustring value,
const std::any tag 
)
inline

Initializes a new instance of the item class with specified value and tag.

Parameters
valuea string that represent the item.
tagan object that contains data about the item.

Member Function Documentation

◆ tag()

virtual std::any xtd::forms::list_control::item::tag ( ) const
inlinevirtual

Gets the tag of the item.

Returns
A std::any that represent the tag of item.

◆ to_string()

xtd::ustring xtd::forms::list_control::item::to_string ( ) const
inline

Returns a string containing the value of the item.

Returns
A string containing the value of the item.

◆ value()

virtual const xtd::ustring& xtd::forms::list_control::item::value ( ) const
inlinevirtual

Gets the value of the item.

Returns
A xtd::ustring that represent the value of item.

The documentation for this class was generated from the following file: