Example #1
0
 /// <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;
 }
Example #2
0
 /// <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;
 }