public void ForTextBounds(int startIndex, int endIndex, Action <Box2> action) { validate(); var inverseScaling = 1 / scaling; textLayout.ForTextBounds(startIndex, endIndex, bounds => action(new Box2(bounds.Left * inverseScaling, bounds.Top * inverseScaling, bounds.Right * inverseScaling, bounds.Bottom * inverseScaling))); }