7 references to Clamp
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
231InternalWrite(Math.Clamp((int)eventType, 0, 255));
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
660public static int Clamp(int value, int min, int max) => Math.Clamp(value, min, max);
src\libraries\System.Private.CoreLib\src\System\Number.Parsing.cs (1)
748value = new decimal(0, 0, 0, sign, (byte)Math.Clamp(-e, 0, 28));
src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (1)
560int rentalLength = Math.Clamp(remainingOuterEncodedBytes.Length, MinWriteRentedArraySize, MaxWriteRentedArraySize);
System.Windows.Forms (2)
System\Windows\Forms\Printing\PrintPreviewControl.cs (2)
764_hScrollBar.Value = Math.Clamp(value.X, _hScrollBar.Minimum, _hScrollBar.Maximum); 765_vScrollBar.Value = Math.Clamp(value.Y, _vScrollBar.Minimum, _vScrollBar.Maximum);
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
242textScale = Math.Clamp(textScale, MinTextScaleValue, MaxTextScaleValue);