C# Класс BrightIdeasSoftware.TreeListView.TreeRenderer

This class handles drawing the tree structure of the primary column.
Наследование: HighlightTextRenderer
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
PIXELS_PER_LEVEL int

Private Properties

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

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

Метод Описание
Render ( System graphic, System rect ) : void

The real work of drawing the tree is done in this method

TreeRenderer ( ) : System

Create a TreeRenderer

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

Метод Описание
DrawExpansionGlyph ( Graphics g, Rectangle r, bool isExpanded ) : void

Draw the expansion indicator

DrawExpansionGlyphManual ( Graphics g, Rectangle r, bool isExpanded ) : void

Draw the expansion indicator without using styles

DrawExpansionGlyphStyled ( Graphics g, Rectangle r, bool isExpanded ) : void

Draw the expansion indicator using styles

DrawLines ( Graphics g, Rectangle r, Pen p, Branch br, int glyphMidVertical ) : void

Draw the lines of the tree

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

Calculate the edit rect

HandleHitTest ( Graphics g, BrightIdeasSoftware.OlvListViewHitTestInfo hti, int x, int y ) : void

Do the hit test

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

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

Draw the expansion indicator
protected DrawExpansionGlyph ( Graphics g, Rectangle r, bool isExpanded ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
isExpanded bool
Результат void

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

Draw the expansion indicator without using styles
protected DrawExpansionGlyphManual ( Graphics g, Rectangle r, bool isExpanded ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
isExpanded bool
Результат void

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

Draw the expansion indicator using styles
protected DrawExpansionGlyphStyled ( Graphics g, Rectangle r, bool isExpanded ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
isExpanded bool
Результат void

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

Draw the lines of the tree
protected DrawLines ( Graphics g, Rectangle r, Pen p, Branch br, int glyphMidVertical ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
p System.Drawing.Pen
br Branch
glyphMidVertical int
Результат void

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

Calculate the edit rect
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

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

Do the hit test
protected HandleHitTest ( Graphics g, BrightIdeasSoftware.OlvListViewHitTestInfo hti, int x, int y ) : void
g System.Drawing.Graphics
hti BrightIdeasSoftware.OlvListViewHitTestInfo
x int
y int
Результат void

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

The real work of drawing the tree is done in this method
public Render ( System graphic, System rect ) : void
graphic System
rect System
Результат void

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

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

Описание свойств

PIXELS_PER_LEVEL публичное статическое свойство

How many pixels will be reserved for each level of indentation?
public static int PIXELS_PER_LEVEL
Результат int