public void SetViewport(double fraction) { if (fraction >= 0 && fraction <= 1.0) { this.viewFraction = fraction; this.Refresh(); } }