ComponentFactory.Krypton.Toolkit.PaletteOffice2007Base.GetRadioButtonImage C# (CSharp) Method

GetRadioButtonImage() public method

Gets a check box image appropriate for the provided state.
public GetRadioButtonImage ( bool enabled, bool checkState, bool tracking, bool pressed ) : Image
enabled bool Is the radio button enabled.
checkState bool Is the radio button checked.
tracking bool Is the radio button being hot tracked.
pressed bool Is the radio button being pressed.
return Image
        public override Image GetRadioButtonImage(bool enabled, bool checkState, bool tracking, bool pressed)
        {
            if (!checkState)
            {
                if (!enabled)
                    return _radioButtonArray[0];
                else if (pressed)
                    return _radioButtonArray[3];
                else if (tracking)
                    return _radioButtonArray[2];
                else
                    return _radioButtonArray[1];
            }
            else
            {
                if (!enabled)
                    return _radioButtonArray[4];
                else if (pressed)
                    return _radioButtonArray[7];
                else if (tracking)
                    return _radioButtonArray[6];
                else
                    return _radioButtonArray[5];
            }
        }
PaletteOffice2007Base