C# Class BrightIdeasSoftware.HighlightTextRenderer

This renderer highlights substrings that match a given text filter.
Inheritance: BaseRenderer
Afficher le fichier Open project: soywiz/cspspemu Class Usage Examples

Private Properties

Свойство Type Description
HighlightTextRenderer System

Méthodes publiques

Méthode Description
HighlightTextRenderer ( ) : System

Create a HighlightTextRenderer

HighlightTextRenderer ( TextMatchFilter filter ) : System

Create a HighlightTextRenderer

Méthodes protégées

Méthode 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+

GetRoundedRect ( RectangleF rect, float diameter ) : GraphicsPath

Return a GraphicPath that is a round cornered rectangle

If I could rely on people using C# 3.0+, this should be an extension method of GraphicsPath.

GetRoundedRect ( float x, float y, float width, float height, float diameter ) : GraphicsPath

Return a GraphicPath that is a round cornered rectangle

If I could rely on people using C# 3.0+, this should be an extension method of GraphicsPath.

HandleGetEditRectangle ( Graphics g, Rectangle cellBounds, BrightIdeasSoftware.OLVListItem item, int subItemIndex, Size preferredSize ) : Rectangle

Handle a HitTest request after all state information has been initialized

Private Methods

Méthode Description
HighlightTextRenderer ( string text ) : System

Method Details

DrawGdiPlusTextHighlighting() protected méthode

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
Résultat void

DrawGdiTextHighlighting() protected méthode

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
Résultat void

DrawSubstringFrame() protected méthode

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
Résultat void

DrawTextGdi() protected méthode

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

DrawTextGdiPlus() protected méthode

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

GetRoundedRect() protected méthode

Return a GraphicPath that is a round cornered rectangle
If I could rely on people using C# 3.0+, this should be an extension method of GraphicsPath.
protected GetRoundedRect ( RectangleF rect, float diameter ) : GraphicsPath
rect System.Drawing.RectangleF The rectangle
diameter float The diameter of the corners
Résultat System.Drawing.Drawing2D.GraphicsPath

GetRoundedRect() protected méthode

Return a GraphicPath that is a round cornered rectangle
If I could rely on people using C# 3.0+, this should be an extension method of GraphicsPath.
protected GetRoundedRect ( float x, float y, float width, float height, float diameter ) : GraphicsPath
x float
y float
width float
height float
diameter float
Résultat System.Drawing.Drawing2D.GraphicsPath

HandleGetEditRectangle() protected méthode

Handle a HitTest request after all state information has been initialized
protected HandleGetEditRectangle ( Graphics g, Rectangle cellBounds, BrightIdeasSoftware.OLVListItem item, int subItemIndex, Size preferredSize ) : Rectangle
g System.Drawing.Graphics
cellBounds System.Drawing.Rectangle
item BrightIdeasSoftware.OLVListItem
subItemIndex int
preferredSize System.Drawing.Size
Résultat System.Drawing.Rectangle

HighlightTextRenderer() public méthode

Create a HighlightTextRenderer
public HighlightTextRenderer ( ) : System
Résultat System

HighlightTextRenderer() public méthode

Create a HighlightTextRenderer
public HighlightTextRenderer ( TextMatchFilter filter ) : System
filter TextMatchFilter
Résultat System