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.

◆ get_style()

bool xtd::forms::control::get_style ( control_styles  flag) const

Retrieves the value of the specified control style bit for the control.

flagThe control_styles bit to return the value from.
true if the specified control style bit is set to true; otherwise, false.
Control style bit flags are used to categorize supported behavior. A control can enable a style by calling the set_style method and passing in the appropriate control_styles bit and the bool value to set the bit to. To determine the value assigned to a specified control_styles bit, use the get_style method and pass in the control_styles member to evaluate.