ComponentFactory.Krypton.Toolkit.PaletteOffice2013Base.GetContentDrawFocus C# (CSharp) Method

GetContentDrawFocus() public method

Gets a value indicating if content should be drawn with focus indication.
public GetContentDrawFocus ( PaletteContentStyle style, PaletteState state ) : InheritBool
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return InheritBool
        public override InheritBool GetContentDrawFocus(PaletteContentStyle style, PaletteState state)
        {
            // By default the focus override shows the focus!
            if (state == PaletteState.FocusOverride)
                return InheritBool.True;

            // We do not override the other override states
            if (CommonHelper.IsOverrideState(state))
                return InheritBool.Inherit;

            // By default, never show the focus indication, we let individual controls
            // override this functionality as required by the controls requirements
            return InheritBool.False;
        }
PaletteOffice2013Base