C# Class BrightIdeasSoftware.TreeListView.TreeRenderer

This class handles drawing the tree structure of the primary column.
Inheritance: HighlightTextRenderer
Afficher le fichier Open project: jcaillon/3P

Méthodes publiques

Свойство Type Description
PIXELS_PER_LEVEL int

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
Render ( System graphic, System rect ) : void

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

TreeRenderer ( ) : System

Create a TreeRenderer

Méthodes protégées

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

Method Details

DrawExpansionGlyph() protected méthode

Draw the expansion indicator
protected DrawExpansionGlyph ( Graphics g, Rectangle r, bool isExpanded ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
isExpanded bool
Résultat void

DrawExpansionGlyphManual() protected méthode

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

DrawExpansionGlyphStyled() protected méthode

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

DrawLines() protected méthode

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

HandleGetEditRectangle() protected méthode

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
Résultat System.Drawing.Rectangle

HandleHitTest() protected méthode

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

Render() public méthode

The real work of drawing the tree is done in this method
public Render ( System graphic, System rect ) : void
graphic System
rect System
Résultat void

TreeRenderer() public méthode

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

Property Details

PIXELS_PER_LEVEL public_oe static_oe property

How many pixels will be reserved for each level of indentation?
public static int PIXELS_PER_LEVEL
Résultat int