CheckBox.getGroupValue

Overview | Methods | This Package | All Packages

CheckBox.getGroupValue

Retrieves a value that indicates which check boxes in a check box group are checked.

Syntax

public static int getGroupValue( Control group )

Parameters

group

The check box group you want to find the value for.

Return Value

Returns an integer that indicates which check boxes in the specified check box group are checked. This value contains bit flags that specify the checked state of each check box, with the value in the lowest bit indicating the state of the first check box in the tab order (one for checked or indeterminate states, zero for the unchecked state), the value in the second-lowest bit indicating the state of the second check box in the tab order, and so on. For example, if the second and fifth check boxes in a group are checked (or indeterminate), this method returns 18 (2 + 16).

See Also   setGroupValue