10 references to Clamp
ReachFramework (10)
PrintConfig\PrintSchemaShim.cs (10)
556ticket.JobCopyCount.Value = Clamp(devModeCopies, 1, short.MaxValue); 561devMode.Copies = Clamp(copyCount, 1, short.MaxValue); 747w = LengthValueFromTenthOfMillimeterToDIP(Clamp(devModePaperWidth, 1, short.MaxValue)); 753h = LengthValueFromTenthOfMillimeterToDIP(Clamp(devModePaperHeight, 1, short.MaxValue)); 774devMode.PaperLength = Clamp(LengthValueFromDIPToTenthOfMillimeter(pageHeightInDIPs), 1, short.MaxValue); 779devMode.PaperWidth = Clamp(LengthValueFromDIPToTenthOfMillimeter(pageWidthInDIPs), 1, short.MaxValue); 991short devModXResolution = Clamp(dpiX, 1, short.MaxValue); 1001short devModYResolution = Clamp(dpiY, 1, short.MaxValue); 1012short devModYResolution = Clamp(dpiY, 1, short.MaxValue); 1073devMode.Scale = Clamp(scale, short.MinValue, short.MaxValue);