Logged out, click to login

JEDI Online help - Details



Back to unit JvDataProviderIntf.pas Back Edit Search Administration

IJvDataItemsRenderer.AvgItemSize

Summary
Determines the average item size.

Parameters
ACanvas - Canvas to measure on. On entry to this method it is assumed the canvas brush, pen and font are initialized to the proper values.

Description
AvgItemSize determines the average size of the items in the list. It depends on the implementation how this value is determined (either by iterating over the items and calculate the real average or by assuming data depending on current font, etc).<br> <br> The value returned should be considered a rough indication, not an exact value. It's possible that either the width, height or both are educated guesses based on the current select font.<br> <br> The caller is responsible for initializing the canvas to the brush, pen and font color.<br>

See Also
IJvDataItemsRenderer.MeasureItem, IJvDataItemsRenderer.MeasureItemByIndex

Last changed by obones on 2009-01-04 21:13:59 CET

Copyright (c) 2004 by the JVCL Team; all rights reserved
Uses PclZip by phpconcept and parts of the PEAR library