/// <summary>
		/// </summary>
		/// <exception cref="ArgumentNullException">
		/// <para><paramref name="imageBoundsParams"/> is <see langword="null"/>.</para>
		/// </exception>
		public Rectangle GetImageBounds(NuGenBoundsParams imageBoundsParams)
		{
			if (imageBoundsParams == null)
			{
				throw new ArgumentNullException("imageBoundsParams");
			}

			return _buttonLayoutManager.GetImageBounds(imageBoundsParams);
		}
		/// <summary>
		/// </summary>
		/// <param name="textBoundsParams"></param>
		/// <returns></returns>
		public Rectangle GetTextBounds(NuGenBoundsParams textBoundsParams)
		{
			if (textBoundsParams == null)
			{
				throw new ArgumentNullException("textBoundsParams");
			}

			textBoundsParams.ImageAlign = NuGenControlPaint.RTLContentAlignment(
				textBoundsParams.ImageAlign
				, textBoundsParams.RightToLeft
			);

			return NuGenControlPaint.TextBoundsFromImageBounds(
				textBoundsParams.Bounds,
				textBoundsParams.ImageBounds,
				textBoundsParams.ImageAlign
			);
		}
		/// <summary>
		/// </summary>
		/// <param name="imageBoundsParams"></param>
		/// <returns></returns>
		public Rectangle GetImageBounds(NuGenBoundsParams imageBoundsParams)
		{
			if (imageBoundsParams == null)
			{
				throw new ArgumentNullException("imageBoundsParams");
			}

			imageBoundsParams.ImageAlign = NuGenControlPaint.RTLContentAlignment(
				imageBoundsParams.ImageAlign
				, imageBoundsParams.RightToLeft
			);

			return NuGenControlPaint.ImageBoundsFromContentAlignment(
				imageBoundsParams.ImageBounds.Size
				, imageBoundsParams.Bounds
				, imageBoundsParams.ImageAlign
			);
		}
예제 #4
0
        /// <summary>
        /// </summary>
        /// <param name="textBoundsParams"></param>
        /// <returns></returns>
        public Rectangle GetTextBounds(NuGenBoundsParams textBoundsParams)
        {
            if (textBoundsParams == null)
            {
                throw new ArgumentNullException("textBoundsParams");
            }

            textBoundsParams.ImageAlign = NuGenControlPaint.RTLContentAlignment(
                textBoundsParams.ImageAlign
                , textBoundsParams.RightToLeft
                );

            return(NuGenControlPaint.TextBoundsFromImageBounds(
                       textBoundsParams.Bounds,
                       textBoundsParams.ImageBounds,
                       textBoundsParams.ImageAlign
                       ));
        }
예제 #5
0
        /// <summary>
        /// </summary>
        /// <param name="imageBoundsParams"></param>
        /// <returns></returns>
        public Rectangle GetImageBounds(NuGenBoundsParams imageBoundsParams)
        {
            if (imageBoundsParams == null)
            {
                throw new ArgumentNullException("imageBoundsParams");
            }

            imageBoundsParams.ImageAlign = NuGenControlPaint.RTLContentAlignment(
                imageBoundsParams.ImageAlign
                , imageBoundsParams.RightToLeft
                );

            return(NuGenControlPaint.ImageBoundsFromContentAlignment(
                       imageBoundsParams.ImageBounds.Size
                       , imageBoundsParams.Bounds
                       , imageBoundsParams.ImageAlign
                       ));
        }
		/// <summary>
		/// </summary>
		/// <exception cref="ArgumentNullException">
		/// <para><paramref name="textBoundsParams"/> is <see langword="null"/>.</para>
		/// </exception>
		public Rectangle GetTextBounds(NuGenBoundsParams textBoundsParams)
		{
			if (textBoundsParams == null)
			{
				throw new ArgumentNullException("textBoundsParams");
			}

			return _buttonLayoutManager.GetTextBounds(textBoundsParams);
		}