Class SpanGradientFormatter
Formats text with different color intensity depending on the score of the
term using the span tag. GradientFormatter uses a bgcolor argument to the font tag which
doesn't work in Mozilla, thus this class.
Inheritance
System.Object
SpanGradientFormatter
Assembly: Lucene.Net.Highlighter.dll
public class SpanGradientFormatter : GradientFormatter, IFormatter
Constructors
|
Improve this Doc
View Source
Declaration
public SpanGradientFormatter(float maxScore, string minForegroundColor, string maxForegroundColor, string minBackgroundColor, string maxBackgroundColor)
Parameters
Type |
Name |
Description |
System.Single |
maxScore |
|
System.String |
minForegroundColor |
|
System.String |
maxForegroundColor |
|
System.String |
minBackgroundColor |
|
System.String |
maxBackgroundColor |
|
Methods
|
Improve this Doc
View Source
Declaration
public override string HighlightTerm(string originalText, TokenGroup tokenGroup)
Parameters
Type |
Name |
Description |
System.String |
originalText |
|
TokenGroup |
tokenGroup |
|
Returns
Type |
Description |
System.String |
|
Overrides
Implements
See Also