Method MeasureItemSize
MeasureItemSize(int)
Measures the size of an item at the specified index.
public SizeD MeasureItemSize(int index)
Parameters
indexintThe zero-based index of the item to measure.
Returns
Remarks
This method calculates the dimensions of an item based on its index and returns the measured size. The returned size can be used for layout or rendering purposes.
MeasureItemSize(MeasureItemEventArgs)
Measures item size. If ItemPainter is assigned, uses GetSize(object, int), otherwise calls DefaultMeasureItemSize(IListControlItemContainer, Graphics, int). Additionally calls MeasureItem event and OnMeasureItem(MeasureItemEventArgs) method if drawing mode is not Normal.
public virtual void MeasureItemSize(MeasureItemEventArgs e)