C# Класс BrightIdeasSoftware.HighlightTextRenderer

This renderer highlights substrings that match a given text filter.
Наследование: BaseRenderer
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
HighlightTextRenderer System

Открытые методы

Метод Описание
HighlightTextRenderer ( ) : System

Create a HighlightTextRenderer

HighlightTextRenderer ( TextMatchFilter filter ) : System

Create a HighlightTextRenderer

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
HighlightTextRenderer ( string text ) : System

Описание методов

DrawGdiPlusTextHighlighting() защищенный Метод

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
Результат void

DrawGdiTextHighlighting() защищенный Метод

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
Результат void

DrawSubstringFrame() защищенный Метод

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
Результат void

DrawTextGdi() защищенный Метод

Draw text using GDI
protected DrawTextGdi ( Graphics g, Rectangle r, string txt ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
txt string
Результат void

DrawTextGdiPlus() защищенный Метод

Draw the text using GDI+
protected DrawTextGdiPlus ( Graphics g, Rectangle r, string txt ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
txt string
Результат void

GetRoundedRect() защищенный Метод

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
Результат System.Drawing.Drawing2D.GraphicsPath

GetRoundedRect() защищенный Метод

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
Результат System.Drawing.Drawing2D.GraphicsPath

HandleGetEditRectangle() защищенный Метод

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
Результат System.Drawing.Rectangle

HighlightTextRenderer() публичный Метод

Create a HighlightTextRenderer
public HighlightTextRenderer ( ) : System
Результат System

HighlightTextRenderer() публичный Метод

Create a HighlightTextRenderer
public HighlightTextRenderer ( TextMatchFilter filter ) : System
filter TextMatchFilter
Результат System