JVCL Help:IJvDataItemsRenderer.MeasureItemByIndex

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

Search in JVCL Help

 
Search in all projects
 

Summary

Measure an item given its index.


Pascal

 functionMeasureItemByIndex(ACanvas: TCanvas; Index: Integer): 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.
Index: Integer Index into the items array of the item to measure.


Description

MeasureItemByIndex measures the item specified by the Index parameter. Depending on the implementation the method might first check if the item to measure supports the IJvDataItemRenderer interface; if it does, the measuring is handled by that interface instead.
The caller is responsible for initializing the canvas to the brush, pen and font color.


See Also

IJvDataItemsRenderer.AvgItemSize, IJvDataItemsRenderer.DrawItemByIndex, IJvDataItemsRenderer.MeasureItem


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