Method MeasureRows
MeasureRows(Graphics, int?, int?)
Measures the sizes of rows within the specified index range and returns their dimensions.
public virtual SizeD[] MeasureRows(Graphics dc, int? fromIndex = null, int? toIndex = null)
Parameters
dcGraphicsThe graphics context used to perform the measurement. Cannot be null.
fromIndexint?The zero-based index of the first row to measure. If null, measurement starts from the first visible row.
toIndexint?The zero-based index after the last row to measure. If null, measurement continues to the last visible row.
Returns
- SizeD[]
An array of SizeD values representing the measured size of each row in the specified range. The length of the array equals the number of rows measured.
Remarks
The method measures rows in the range [fromIndex, toIndex), where fromIndex is inclusive and toIndex is exclusive. If fromIndex or toIndex is not specified, the method uses the visible row range as determined by GetVisibleBegin() and GetVisibleEnd(). The returned array contains the sizes in the order corresponding to the measured rows.