public ScatterplotBox SetSize(int width, int height) { if (this.InvokeRequired) { this.Invoke((Action)(() => SetSize(width, height))); return this; } this.Width = width; this.Height = height; Refresh(); return this; }