getColumnWidthInPixels method
Returns width of the specified column in pixels.
Implementation
int getColumnWidthInPixels(int iColumnIndex) {
if (iColumnIndex > book.maxColumnCount) {
iColumnIndex = book.maxColumnCount;
}
if (iColumnIndex < 1 || iColumnIndex > book.maxColumnCount) {
throw Exception(
'Value cannot be less 1 and greater than max column index.');
}
final double widthInChars = _innerGetColumnWidth(iColumnIndex);
return _columnWidthToPixels(widthInChars);
}