C# 클래스 BrightIdeasSoftware.TreeListView.TreeRenderer

This class handles drawing the tree structure of the primary column.
상속: HighlightTextRenderer
파일 보기 프로젝트 열기: jcaillon/3P

공개 프로퍼티들

프로퍼티 타입 설명
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