4 references to Round
PresentationCore (1)
Core\CSharp\MS\Internal\TextFormatting\TextFormatterImp.cs (1)
702
return Math.
Round
(value * pixelsPerDip, midpointRounding) / pixelsPerDip;
System.Windows.Forms (3)
winforms\Managed\System\WinForms\DataGridViewMethods.cs (3)
1006
dataGridViewColumn.DesiredFillWidth = (int)Math.
Round
(desiredFillWidth, MidpointRounding.AwayFromZero);
1152
mostDeservingDataGridViewColumn.DesiredFillWidth = Math.Min(oldDesiredWidth, (int)Math.
Round
(floatDesiredWidth, MidpointRounding.AwayFromZero));
1220
mostDeservingDataGridViewColumn.DesiredFillWidth = Math.Max(mostDeservingDataGridViewColumn.MinimumWidth, (int)Math.
Round
(floatDesiredWidth, MidpointRounding.AwayFromZero));