C# Класс 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.

Наследование: BaseRenderer
Показать файл Открыть проект Примеры использования класса

Private Properties

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

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

Метод Описание
DescribedTaskRenderer ( ) : System

Create a DescribedTaskRenderer

Render ( Graphics g, Rectangle r ) : void

Draw our item

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

Метод Описание
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

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

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

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

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

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
Результат void

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

Fetch the description from the model class
protected GetDescription ( ) : string
Результат string

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

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
Результат void

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

Draw our item
public Render ( Graphics g, Rectangle r ) : void
g System.Drawing.Graphics
r System.Drawing.Rectangle
Результат void