Sets color pair for a character-class.

Namespace: Sgry.Azuki
Assembly: Azuki (in Azuki.dll) Version: 1.7.13.40248

Syntax

C#
public void SetColor(
	CharClass klass,
	Color fore,
	Color back
)
Visual Basic
Public Sub SetColor ( 
	klass As CharClass,
	fore As Color,
	back As Color
)

Parameters

klass
Type: Sgry.Azuki..::..CharClass
The color-pair associated with this character-class will be got.
fore
Type: System.Drawing..::..Color
Foreground color used to draw characters marked as the character-class.
back
Type: System.Drawing..::..Color
Background color used to draw characters marked as the character-class.

Remarks

This method sets a pair of colors which is associated with CharClass specified by parameter 'klass.'

Note that if Color.Transparent was set for background color of a CharClass except CharClass.Normal, Azuki uses the color of BackColor property for drawing tokens of the CharClass.

Exceptions

ExceptionCondition
System..::..ArgumentException Color.Transparent was set to CharClass.Normal.

See Also