/// <summary> /// Overrides the <c>Paint</c> handler on this <c>YataPanelRows</c>. /// </summary> /// <param name="e"></param> /// <remarks>Assigns <c>e.Graphics</c> to /// <c><see cref="YataGrid.graphics">YataGrid.graphics</see></c> for /// <c><see cref="YataGrid.LabelRowheads()">YataGrid.LabelRowheads()</see></c>.</remarks> protected override void OnPaint(PaintEventArgs e) { if (!YataGrid._init) { YataGrid.graphics = e.Graphics; YataGrid.graphics.PixelOffsetMode = PixelOffsetMode.HighQuality; YataGrid.graphics.DrawLine(Pencils.DarkLine, Width, 0, Width, Height); YataGrid.graphics.DrawLine(Pencils.DarkLine, Width - 1, 0, Width - 1, Height); _grid.LabelRowheads(); } }