Table of Contents

Method MeasureItemSize

Namespace
Alternet.UI
Assembly
Alternet.UI.Common.dll

MeasureItemSize(int)

Measures the size of an item at the specified index.

public SizeD MeasureItemSize(int index)

Parameters

index int

The zero-based index of the item to measure.

Returns

SizeD

A SizeD structure representing the width and height of the item.

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)

Parameters

e MeasureItemEventArgs