C# Class BrightIdeasSoftware.DescribedTaskRenderer

This renderer draws an image, a single line title, and then multi-line descrition under the title.

This class works best with FullRowSelect = true.

It's not designed to work with cell editing -- it will work but will look odd.

This class is experimental. It may not work properly and may disappear from future versions.

Inheritance: BaseRenderer
ファイルを表示 Open project: soywiz/cspspemu Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
DescribedTaskRenderer ( ) : System

Create a DescribedTaskRenderer

Render ( Graphics g, Rectangle r ) : void

Draw our item

Protected Methods

Method Description
DrawDescribedTask ( Graphics g, Rectangle r, string title, string description, Image image ) : void

Draw the task

GetDescription ( ) : string

Fetch the description from the model class

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

Handle the HitTest request

Method Details

DescribedTaskRenderer() public method

Create a DescribedTaskRenderer
public DescribedTaskRenderer ( ) : System
return System

DrawDescribedTask() protected method

Draw the task
protected DrawDescribedTask ( Graphics g, Rectangle r, string title, string description, Image image ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
title string
description string
image Image
return void

GetDescription() protected method

Fetch the description from the model class
protected GetDescription ( ) : string
return string

HandleHitTest() protected method

Handle the HitTest request
protected HandleHitTest ( Graphics g, BrightIdeasSoftware.OlvListViewHitTestInfo hti, int x, int y ) : void
g System.Drawing.Graphics
hti BrightIdeasSoftware.OlvListViewHitTestInfo
x int
y int
return void

Render() public method

Draw our item
public Render ( Graphics g, Rectangle r ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
return void