/// <summary> /// </summary> /// <exception cref="ArgumentNullException"> /// <para> /// <paramref name="g"/> is <see langword="null"/>. /// </para> /// </exception> public void DrawHalfRoundBackground(Graphics g, Rectangle bounds, NuGenControlState state) { if (g == null) { throw new ArgumentNullException("g"); } using (Brush brush = this.GetBackgroundBrush(bounds, state)) using (GraphicsPath path = NuGenControlPaint.GetHalfRoundRectangleGraphicsPath(bounds, _roundRectangleRadius)) { g.FillPath(brush, path); } }