function Constrain(const Value: Integer; const Lo: Integer; const Hi: Integer): Integer;
Returns Value constrained to [Lo..Hi] range.
[See Also]: Clamp