JVCL Help:IJvDataItemsRenderer.AvgItemSize

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Determines the average item size.


Pascal

 functionAvgItemSize(ACanvas: TCanvas): TSize;


Parameters

Parameters Description
ACanvas: TCanvas 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). 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. The caller is responsible for initializing the canvas to the brush, pen and font color.


See Also

IJvDataItemsRenderer.MeasureItem, IJvDataItemsRenderer.MeasureItemByIndex


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page