7 references to Clamp
System.Diagnostics.TextWriterTraceListener (1)
System\Diagnostics\XmlWriterTraceListener.cs (1)
231
InternalWrite(Math.
Clamp
((int)eventType, 0, 255));
System.Private.CoreLib (3)
src\libraries\System.Private.CoreLib\src\System\Int32.cs (1)
660
public 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)
748
value = new decimal(0, 0, 0, sign, (byte)Math.
Clamp
(-e, 0, 28));
src\libraries\System.Private.CoreLib\src\System\Text\TranscodingStream.cs (1)
560
int 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)
242
textScale = Math.
Clamp
(textScale, MinTextScaleValue, MaxTextScaleValue);