示例#1
0
        internal void SetForeColorInternal(Color value)
        {
            Scintilla.ColorBag[ToString() + ".ForeColor"] = value;
            NativeScintilla.StyleSetFore(_index, Utilities.ColorToRgb(value));

            if (_index == (int)StylesCommon.CallTip)
            {
                NativeScintilla.CallTipSetFore(Utilities.ColorToRgb(value));
            }
        }
示例#2
0
        internal void SetForeColorInternal(Color value)
        {
            if (value == SystemColors.InfoText)
            {
                Scintilla.ColorBag.Remove("CallTip.ForeColor");
            }
            else
            {
                Scintilla.ColorBag["CallTip.ForeColor"] = value;
            }

            NativeScintilla.CallTipSetFore(Utilities.ColorToRgb(value));
        }