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.
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Lucene.Net.Search.Highlight
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class SpanGradientFormatter : GradientFormatter, IFormatter
Constructors
| Improve this Doc View SourceSpanGradientFormatter(Single, String, String, String, String)
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 SourceHighlightTerm(String, TokenGroup)
Declaration
public override string HighlightTerm(string originalText, TokenGroup tokenGroup)
Parameters
Type | Name | Description |
---|---|---|
System.String | originalText | |
TokenGroup | tokenGroup |
Returns
Type | Description |
---|---|
System.String |