ComponentFactory.Krypton.Toolkit.KryptonColorButton.SetFixedState C# (CSharp) Метод

SetFixedState() публичный Метод

Fix the control to a particular palette state.
public SetFixedState ( PaletteState state ) : void
state PaletteState Palette state to fix.
Результат void
        public virtual void SetFixedState(PaletteState state)
        {
            if (state == PaletteState.NormalDefaultOverride)
            {
                // Setup the overrides correctly to match state
                _overrideFocus.Apply = true;
                _overrideNormal.Apply = true;

                // Must pass a proper drawing state to the view
                state = PaletteState.Normal;
            }

            // Request fixed state from the view
            _drawButton.FixedState = state;
        }