6 references to Round
PresentationCore (1)
MS\Internal\TextFormatting\TextFormatterImp.cs (1)
648
return Math.
Round
(value * pixelsPerDip, midpointRounding) / pixelsPerDip;
System.Private.CoreLib (2)
src\libraries\System.Private.CoreLib\src\System\Double.cs (1)
689
public static double Round(double x, MidpointRounding mode) => Math.
Round
(x, mode);
src\libraries\System.Private.CoreLib\src\System\Math.cs (1)
1413
value =
Round
(value * power10, mode) / power10;
System.Windows.Forms (3)
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (3)
1003
dataGridViewColumn.DesiredFillWidth = (int)Math.
Round
(desiredFillWidth, MidpointRounding.AwayFromZero);
1158
mostDeservingDataGridViewColumn.DesiredFillWidth = Math.Min(oldDesiredWidth, (int)Math.
Round
(floatDesiredWidth, MidpointRounding.AwayFromZero));
1230
mostDeservingDataGridViewColumn.DesiredFillWidth = Math.Max(mostDeservingDataGridViewColumn.MinimumWidth, (int)Math.
Round
(floatDesiredWidth, MidpointRounding.AwayFromZero));