10 references to Clamp
ReachFramework (10)
PrintConfig\PrintSchemaShim.cs (10)
560ticket.JobCopyCount.Value = Clamp(devModeCopies, 1, short.MaxValue); 565devMode.Copies = Clamp(copyCount, 1, short.MaxValue); 751w = LengthValueFromTenthOfMillimeterToDIP(Clamp(devModePaperWidth, 1, short.MaxValue)); 757h = LengthValueFromTenthOfMillimeterToDIP(Clamp(devModePaperHeight, 1, short.MaxValue)); 778devMode.PaperLength = Clamp(LengthValueFromDIPToTenthOfMillimeter(pageHeightInDIPs), 1, short.MaxValue); 783devMode.PaperWidth = Clamp(LengthValueFromDIPToTenthOfMillimeter(pageWidthInDIPs), 1, short.MaxValue); 995short devModXResolution = Clamp(dpiX, 1, short.MaxValue); 1005short devModYResolution = Clamp(dpiY, 1, short.MaxValue); 1016short devModYResolution = Clamp(dpiY, 1, short.MaxValue); 1077devMode.Scale = Clamp(scale, short.MinValue, short.MaxValue);