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
Afficher le fichier Open project: soywiz/cspspemu Class Usage Examples

Private Properties

Свойство Type Description

Méthodes publiques

Méthode Description
DescribedTaskRenderer ( ) : System

Create a DescribedTaskRenderer

Render ( Graphics g, Rectangle r ) : void

Draw our item

Méthodes protégées

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

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

DrawDescribedTask() protected méthode

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

GetDescription() protected méthode

Fetch the description from the model class
protected GetDescription ( ) : string
Résultat string

HandleHitTest() protected méthode

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

Render() public méthode

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