public MoveDown ( bool Select ) : void | ||
Select | bool | True if a selection should be created from the current caret pos to the new pos |
return | void |
public void MoveDown(bool Select)
{
CropPosition();
int x = OldLogicalXPos;
//error here
try
{
Row r = CurrentRow;
Row r2 = r.NextVisibleRow;
if (r2 == null)
return;
Position.Y = r2.Index;
if (CurrentRow.IsCollapsed)
{
x = 0;
}
}
catch {}
finally
{
CropPosition();
LogicalPosition = new TextPoint(x, Position.Y);
CropPosition();
CaretMoved(Select);
}
}
Caret::MoveDown ( int rows, bool Select ) : void |