Beispiel #1
0
        /// <summary>
        /// </summary>
        /// <param name="g"></param>
        /// <param name="bounds"></param>
        /// <param name="state"></param>
        /// <exception cref="ArgumentNullException">
        ///	<para>
        ///		<paramref name="g"/> is <see langword="null"/>.
        /// </para>
        /// </exception>
        public void DrawHalfRoundBorder(Graphics g, Rectangle bounds, NuGenControlState state)
        {
            if (g == null)
            {
                throw new ArgumentNullException("g");
            }

            using (Pen pen = this.GetBorderPen(state))
            {
                NuGenControlPaint.DrawHalfRoundRectangle(g, pen, bounds, _roundRectangleRadius);
            }
        }