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