System.Windows.Forms.ScrollBar.GetScaledBounds C# (CSharp) Method

GetScaledBounds() protected method

protected GetScaledBounds ( Rectangle bounds, SizeF factor, BoundsSpecified specified ) : Rectangle
bounds System.Drawing.Rectangle
factor System.Drawing.SizeF
specified BoundsSpecified
return System.Drawing.Rectangle
		protected override Rectangle GetScaledBounds (Rectangle bounds, SizeF factor, BoundsSpecified specified)
		{
			// Basically, we want to keep our small edge and scale the long edge
			// ie: if we are vertical, don't scale our width
			if (vert)
				return base.GetScaledBounds (bounds, factor, (specified & BoundsSpecified.Height) | (specified & BoundsSpecified.Location));
			else
				return base.GetScaledBounds (bounds, factor, (specified & BoundsSpecified.Width) | (specified & BoundsSpecified.Location));
		}
#endif