xtd 0.2.0
Loading...
Searching...
No Matches

◆ create() [29/32]

static toggle_button xtd::forms::toggle_button::create ( const control parent,
const xtd::ustring text,
bool  three_state,
xtd::forms::check_state  check_state 
)
static

A factory to create a xtd::forms::toggle_button with specified parent, text, three_state, and check_state.

Parameters
parentThe parent that contains the new created xtd::forms::toggle_button.
textA string that represent text of the xtd::forms::toggle_button.
three_statetrue if the toggle_button is able to display three check states; otherwise, false.
check_stateOne of the check_state enumeration values.
Returns
New xtd::forms::toggle_button created.