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.

◆ control() [2/5]

xtd::forms::control::control ( const std::string &  text)
inlineexplicit

Initializes a new instance of the control class with specific text.

Parameters
textThe text displayed by the control.
Remarks
The control class is the base class for all controls used in a Windows Forms application. Because this class is not typically used to create an instance of the class, this constructor is typically not called directly but is instead called by a derived class.
This version of the control constructor sets the initial text property value to the text parameter value.