xtd - Reference Guide  0.1.0
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Public Member Functions | List of all members
xtd::forms::domain_up_down::item Class Reference

#include <domain_up_down.h>

Definition

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

Public Member Functions

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

Constructor & Destructor Documentation

◆ item() [1/3]

xtd::forms::domain_up_down::item::item ( )
default

Initializes a new instance of the item class.

◆ item() [2/3]

xtd::forms::domain_up_down::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::domain_up_down::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::domain_up_down::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::domain_up_down::item::to_string ( ) const
inline

Returns a string containing the vague of the item.

Returns
A string containing the value of the item.

◆ value()

virtual const xtd::ustring & xtd::forms::domain_up_down::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: