C# Class _3PA.MainFeatures.FilteredLists.FilteredItemTextRenderer

This renderer highlights substrings that match a given text filter, It only works for OVL with objects that inherit from FilteredItem and it uses FilteredItem.FilterFullyMatch
Inheritance: BrightIdeasSoftware.HighlightTextRenderer
Exibir arquivo Open project: jcaillon/3P

Public Methods

Method Description
FilteredItemTextRenderer ( ) : System.Drawing

Create a HighlightTextRenderer

Protected Methods

Method Description
DrawGdiPlusTextHighlighting ( Graphics g, Rectangle r, string txt ) : void

Draw the highlighted text using GDI+

DrawGdiTextHighlighting ( Graphics g, Rectangle r, string txt ) : void

Draw the highlighted text using GDI

DrawSubstringFrame ( Graphics g, float x, float y, float width, float height ) : void

Draw an indication around the given frame that shows a text match

DrawTextGdi ( Graphics g, Rectangle r, string txt ) : void

Draw text using GDI

DrawTextGdiPlus ( Graphics g, Rectangle r, string txt ) : void

Draw the text using GDI+

Method Details

DrawGdiPlusTextHighlighting() protected method

Draw the highlighted text using GDI+
protected DrawGdiPlusTextHighlighting ( Graphics g, Rectangle r, string txt ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
txt string
return void

DrawGdiTextHighlighting() protected method

Draw the highlighted text using GDI
protected DrawGdiTextHighlighting ( Graphics g, Rectangle r, string txt ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
txt string
return void

DrawSubstringFrame() protected method

Draw an indication around the given frame that shows a text match
protected DrawSubstringFrame ( Graphics g, float x, float y, float width, float height ) : void
g System.Drawing.Graphics
x float
y float
width float
height float
return void

DrawTextGdi() protected method

Draw text using GDI
protected DrawTextGdi ( Graphics g, Rectangle r, string txt ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
txt string
return void

DrawTextGdiPlus() protected method

Draw the text using GDI+
protected DrawTextGdiPlus ( Graphics g, Rectangle r, string txt ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
txt string
return void

FilteredItemTextRenderer() public method

Create a HighlightTextRenderer
public FilteredItemTextRenderer ( ) : System.Drawing
return System.Drawing