Size::ClampedToHeight

Size::ClampedToHeight
inline Size<T> ClampedToHeight(T h) const;
Description

ClampedToHeight clamps the current Height to an alternate value. The lesser value is chosen. The following expression may be used to represent the result:

   (result.Width, result.Height) = (Width, min(Height, h))
Parameters
Parameters 
Description 
T h 
A value that is clamped to the Height component of the current size. 
Return Value

A new Size whose Width is equal to that of the current size, and whose Height represents the clamp of the current Height with a passed value.

See Also