ComponentFactory.Krypton.Toolkit.KryptonContextMenuCheckBox.KryptonContextMenuCheckBox C# (CSharp) Method

KryptonContextMenuCheckBox() public method

Initialize a new instance of the KryptonContextMenuCheckBox class.
public KryptonContextMenuCheckBox ( string initialText ) : System
initialText string Initial text for display.
return System
        public KryptonContextMenuCheckBox(string initialText)
        {
            // Default fields
            _enabled = true;
            _autoClose = false;
            _text = initialText;
            _extraText = string.Empty;
            _image = null;
            _imageTransparentColor = Color.Empty;
            _checkState = CheckState.Unchecked;
            _checked = false;
            _threeState = false;
            _autoCheck = true;
            _style = LabelStyle.NormalControl;
            _images = new CheckBoxImages();

            // Create the redirectors
            _stateCommonRedirect = new PaletteContentInheritRedirect(PaletteContentStyle.LabelNormalControl);
            _stateCheckBoxImages = new PaletteRedirectCheckBox(_images);

            // Create the states
            _stateCommon = new PaletteContent(_stateCommonRedirect);
            _stateDisabled = new PaletteContent(_stateCommon);
            _stateNormal = new PaletteContent(_stateCommon);
            _stateFocus = new PaletteContent(_stateCommonRedirect);

            // Override the normal/disabled values with the focus, when the control has focus
            _overrideNormal = new PaletteContentInheritOverride(_stateFocus, _stateNormal, PaletteState.FocusOverride, false);
            _overrideDisabled = new PaletteContentInheritOverride(_stateFocus, _stateDisabled, PaletteState.FocusOverride, false);
        }

Same methods

KryptonContextMenuCheckBox::KryptonContextMenuCheckBox ( ) : System