public void Print(IGraphics g) { if (view != null) { view.OnPaint(g, Width, Height); } }
protected internal override void OnPaint(IGraphics g, int width, int height) { if (widths == null) { InitSizes(width, height); } PaintSplitters(g, width, height); for (int row = 0; row < RowCount; row++) { for (int col = 0; col < ColumnCount; col++) { Tuple <int, int> key = new Tuple <int, int>(row, col); if (components.ContainsKey(key)) { BasicView v = components[key]; g.SetClip(new Rectangle(xpos[col], ypos[row], widths[col], heights[row])); g.TranslateTransform(xpos[col], ypos[row]); v.OnPaint(g, widths[col], heights[row]); g.ResetTransform(); g.ResetClip(); } } } }