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

◆ create() [8/16]

static switch_button xtd::forms::switch_button::create ( bool  checked,
const drawing::point location,
const drawing::size size,
const xtd::ustring name 
)
static

A factory to create an xtd::forms::switch_button with specified text, checked, location, size, and name.

Parameters
textA string that represent text of the xtd::forms::switch_button.
checkedtrue if the check box is checked; otherwise, false.
locationA xtd::drawing::point that represent location of the xtd::forms::switch_button.
sizeA xtd::drawing::size that represent size of the xtd::forms::switch_button.
nameThe name of the xtd::forms::switch_button.
Returns
New xtd::forms::switch_button created.