/// <summary> /// Sets the foreground color for a set of keywords. /// </summary> /// <param name="style">The enumeration indicating the type of keyword.</param> /// <param name="forecolor">The foreground color for the keyword.</param> private void SetStyle(LexerStyleConstants style, Color forecolor) { this.Styles[(Int32)style].ForeColor = forecolor; this.Styles[(Int32)style].BackColor = Color.Transparent; }