private int VScrollOffset()
{
int yOffset;
// This adds on the total height we can't see
if (this.EnableWordWrap)
{
yOffset = this.RowY(this.TopIndex);
}
else if (this.TopIndex >= 0)
{
yOffset = this.TopIndex * this.RowHeight;
}
else
{
// this might happen if this.TopIndex is -1
yOffset = 0;
}
return yOffset;
}