344 references to Round
mscorlib (7)
system\convert.cs (2)
1313
return checked((long)Math.
Round
(value));
1418
return checked((ulong)Math.
Round
(value));
system\globalization\datetimeparse.cs (3)
2529
time = time.AddTicks((long)Math.
Round
(raw.fraction * Calendar.TicksPerSecond));
2837
time = time.AddTicks((long)Math.
Round
(partSecond * Calendar.TicksPerSecond));
4152
result.parsedDate = result.parsedDate.AddTicks((long)Math.
Round
(result.fraction * Calendar.TicksPerSecond));
system\math.cs (2)
98
value =
Round
(value);
227
double roundedResult = Math.
Round
(divisionResult);
PresentationCore (32)
Core\CSharp\MS\Internal\Shaping\CompositeFontFamily.cs (2)
134
return Math.
Round
(_fontInfo.Baseline * emSize);
166
return Math.
Round
(_fontInfo.LineSpacing * emSize);
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (8)
492
lstTextMetrics.dvAscent = (int)Math.
Round
(typeface.Baseline(store.Pap.EmSize, Constants.DefaultIdealToReal, store.Settings.TextSource.PixelsPerDip, fullText.TextFormattingMode));
493
lstTextMetrics.dvMultiLineHeight = (int)Math.
Round
(typeface.LineSpacing(store.Pap.EmSize, Constants.DefaultIdealToReal, store.Settings.TextSource.PixelsPerDip, fullText.TextFormattingMode));
768
ulInfo.dvpFirstUnderlineOffset = (int)Math.
Round
(lsrun.EmSize * -underlinePositionInEm);
769
ulInfo.dvpFirstUnderlineSize = (int)Math.
Round
(lsrun.EmSize * underlineThicknessInEm);
826
stInfo.dvpLowerStrikethroughOffset = (int)Math.
Round
(lsrun.EmSize * strikeThroughPositionInEm);
827
stInfo.dvpLowerStrikethroughSize = (int)Math.
Round
(lsrun.EmSize * strikeThroughThicknessInEm);
1038
int baselineTop = ptOrigin.y + (int)Math.
Round
(lsrun.EmSize * strikeThroughPositionInEm);
1039
int overlineTop = baselineTop - (lsrun.BaselineOffset - (int)Math.
Round
(lsrun.EmSize * strikeThroughThicknessInEm));
Core\CSharp\MS\Internal\TextFormatting\LineServicesRun.cs (2)
82
(shapeable != null ? (int)Math.
Round
(shapeable.Baseline * realToIdeal) : 0),
83
(shapeable != null ? (int)Math.
Round
(shapeable.Height * realToIdeal) : 0),
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (3)
339
_height = formatter.IdealToReal((int)Math.
Round
(pap.DefaultTypeface.LineSpacing(pap.EmSize, Constants.DefaultIdealToReal, PixelsPerDip, _settings.TextFormattingMode)), PixelsPerDip);
340
_baselineOffset = formatter.IdealToReal((int)Math.
Round
(pap.DefaultTypeface.Baseline(pap.EmSize, Constants.DefaultIdealToReal, PixelsPerDip, _settings.TextFormattingMode)), PixelsPerDip);
374
_idealOffsetUnRounded = (int)Math.
Round
((paragraphWidth - idealWidthAtTrailing) * 0.5);
Core\CSharp\MS\Internal\TextFormatting\TextFormatterImp.cs (1)
756
int value = (int)Math.
Round
(i * ToIdeal);
Core\CSharp\MS\Internal\TextFormatting\TextMetrics.cs (4)
211
_baselineOffset = (int)Math.
Round
(
222
_textAscent = (int)Math.
Round
(pap.DefaultTypeface.Baseline(pap.EmSize, Constants.DefaultIdealToReal, _pixelsPerDip, fullText.TextFormattingMode));
223
_textHeight = (int)Math.
Round
(pap.DefaultTypeface.LineSpacing(pap.EmSize, Constants.DefaultIdealToReal, _pixelsPerDip, fullText.TextFormattingMode));
274
_paragraphToText = (int)Math.
Round
((paragraphWidth + _textStart - _textWidthAtTrailing) * 0.5);
Core\CSharp\MS\Internal\TextFormatting\TextProperties.cs (1)
396
return (int)Math.
Round
(properties.FontRenderingEmSize * 0.75 * _textRunLength * realToIdeal);
Core\CSharp\MS\Internal\TextFormatting\TextRunCacheImp.cs (1)
212
looseCharLength = (int)Math.
Round
(TextStore.TypicalCharactersPerLine * 0.25);
Core\CSharp\MS\Internal\TextFormatting\TextStore.cs (2)
1590
(int)Math.
Round
(realToIdeal * runInfo.TextRun.Properties.FontRenderingEmSize),
1742
(int)Math.
Round
(realToIdeal * runInfo.TextRun.Properties.FontRenderingEmSize),
Core\CSharp\MS\Internal\TextFormatting\ThousandthOfEmRealDoubles.cs (1)
300
thousandthOfEm = (short) Math.
Round
(scaled);
Core\CSharp\System\Windows\Media\GlyphsSerializer.cs (4)
190
int normalizedAdvance = (int)Math.
Round
(_advances[glyph] * _milToEm);
192
if (normalizedAdvance != (int)Math.
Round
(fontAdvance * EmScaleFactor))
203
int offset = (int)Math.
Round
(_offsets[glyph].X * _milToEm);
211
offset = (int)Math.
Round
(_offsets[glyph].Y * _milToEm);
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (1)
1717
int missingGlyphWidth = (int)Math.
Round
(TextFormatterImp.RoundDip(emSize * GetAdvanceWidth(0, pixelsPerDip, textFormattingMode, isSideways), pixelsPerDip, textFormattingMode) * scalingFactor);
Core\CSharp\System\Windows\UIElement.cs (2)
1103
newValue = Math.
Round
(value * dpiScale) / dpiScale;
1114
newValue = Math.
Round
(value);
PresentationFramework (16)
src\Framework\Microsoft\Win32\CommonDialog.cs (2)
367
(int)Math.
Round
(x),
368
(int)Math.
Round
(y), // new X and Y positions
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (2)
480
uint heightDeviceUnits = (uint)Math.
Round
(sizeDeviceUnits.Y);
506
uint widthDeviceUnits = (uint)Math.
Round
(sizeDeviceUnits.X);
src\Framework\MS\Internal\Ink\PenCursorManager.cs (2)
237
int xHotspot = (int)Math.
Round
(hotspot.X - drawingBounds.Left);
238
int yHotspot = (int)Math.
Round
(hotspot.Y - drawingBounds.Top);
src\Framework\MS\Internal\Text\TextDpi.cs (1)
57
return (int)Math.
Round
(d * _scale);
src\Framework\System\Windows\Controls\GridSplitter.cs (2)
658
horizontalChange = Math.
Round
(horizontalChange / dragIncrement) * dragIncrement;
659
verticalChange = Math.
Round
(verticalChange / dragIncrement) * dragIncrement;
src\Framework\System\Windows\Controls\ScrollViewer.cs (2)
1876
Math.
Round
(PanningRatio * cumulativeTranslation / _panningInfo.DeltaPerHorizontalOffet));
1886
Math.
Round
(PanningRatio * cumulativeTranslation / _panningInfo.DeltaPerVerticalOffset));
src\Framework\System\Windows\Controls\Slider.cs (2)
1140
previous = Minimum + (Math.
Round
(((value - Minimum) / TickFrequency)) * TickFrequency);
1199
double tickNumber = Math.
Round
((value - Minimum) / TickFrequency);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (2)
7446
uniformOrAverageContainerSize = Math.
Round
(sumOfContainerSizes / numContainerSizes);
7668
uniformOrAverageContainerSize = Math.
Round
(sumOfContainerSizes / numContainerSizes);
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (1)
2899
formatState.FontSize = (long)Math.
Round
(fs);
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\DesignerGeometryHelper.cs (2)
38
return new Point(Math.
Round
((point1.X + point2.X) / 2), Math.
Round
((point1.Y + point2.Y) / 2));
System.Data (1)
fx\src\data\System\Data\Common\TimeSpanStorage.cs (1)
116
ulong stDev = (ulong)Math.
Round
(Math.Sqrt(varSum / (count - 1)));
System.Data.SqlXml (2)
System\Xml\Xsl\Runtime\XslNumber.cs (1)
265
Debug.Assert(val >= 0 && val == Math.
Round
(val), "ConvertToArabic operates on non-negative integer numbers only");
System\Xml\Xsl\Runtime\XsltFunctions.cs (1)
181
double temp = Math.
Round
(value);
System.Drawing (17)
commonui\System\Drawing\Point.cs (2)
227
return new Point((int)Math.
Round
(value.X), (int)Math.
Round
(value.Y));
commonui\System\Drawing\Printing\Margins.cs (4)
148
this.Left = (int)Math.
Round
(value);
164
this.Right = (int)Math.
Round
(value);
180
this.Top = (int)Math.
Round
(value);
196
this.Bottom = (int)Math.
Round
(value);
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (1)
46
return(int) Math.
Round
(Convert((double)value, fromUnit, toUnit));
commonui\System\Drawing\Rectangle.cs (4)
324
return new Rectangle((int)Math.
Round
(value.X),
325
(int)Math.
Round
(value.Y),
326
(int)Math.
Round
(value.Width),
327
(int)Math.
Round
(value.Height));
commonui\System\Drawing\Size.cs (2)
220
return new Size((int)Math.
Round
(value.Width), (int)Math.
Round
(value.Height));
misc\DpiHelper.cs (4)
429
int dpiScalePercent = (int)Math.
Round
(LogicalToDeviceUnitsScalingFactor * 100);
508
return (int)Math.
Round
(LogicalToDeviceUnitsScalingFactor * (double)value);
511
return (int)Math.
Round
(scalingFactor * (double)value);
601
var scaledValue = (int)Math.
Round
(value * pixelFactor);
System.ServiceModel (4)
System\ServiceModel\Dispatcher\QueryFunctions.cs (3)
1157
int startAt = ((int)Math.
Round
(context.PeekDouble(arg2.basePtr))) - 1;
1181
int startAt = ((int)Math.
Round
(context.PeekDouble(argStartAt.basePtr))) - 1;
1186
int length = (int)Math.
Round
(context.PeekDouble(argLimit.basePtr));
System\ServiceModel\Dispatcher\QueryModel.cs (1)
918
return (-0.5 <= val && val <= 0.0) ? Math.
Round
(val) : Math.Floor(val + 0.5);
System.Web.DataVisualization (107)
Common\ChartTypes\AreaChart.cs (6)
297
point1.X = (float)Math.
Round
(point1.X);
298
point1.Y = (float)Math.
Round
(point1.Y);
299
point2.X = (float)Math.
Round
(point2.X);
300
point2.Y = (float)Math.
Round
(point2.Y);
306
axisPos.X = (float)Math.
Round
(axisPos.X);
307
axisPos.Y = (float)Math.
Round
(axisPos.Y);
Common\ChartTypes\BarChart.cs (1)
2103
angleXAxis = (float)Math.
Round
(angleXAxis * 180f / (float)Math.PI);
Common\ChartTypes\KagiChart.cs (8)
541
point1.X = (float)Math.
Round
(point1.X);
542
point1.Y = (float)Math.
Round
(point1.Y);
543
point2.X = (float)Math.
Round
(point2.X);
544
point2.Y = (float)Math.
Round
(point2.Y);
545
point3.X = (float)Math.
Round
(point3.X);
546
point3.Y = (float)Math.
Round
(point3.Y);
549
point4.X = (float)Math.
Round
(point4.X);
550
point4.Y = (float)Math.
Round
(point4.Y);
Common\ChartTypes\StackedAreaChart.cs (4)
578
firstPoint.X = (float)Math.
Round
(firstPoint.X);
579
secondPoint.X = (float)Math.
Round
(secondPoint.X);
887
firstPoint.X = (float)Math.
Round
(firstPoint.X);
888
secondPoint.X = (float)Math.
Round
(secondPoint.X);
Common\ChartTypes\StackedBarChart.cs (1)
2015
angleXAxis = (float)Math.
Round
(angleXAxis * 180f / (float)Math.PI);
Common\Formulas\PriceIndicators.cs (1)
492
tempPeriod = Math.
Round
(tempPeriod);
Common\Formulas\StatisticalAnalysis.cs (1)
822
freedom = (int)Math.
Round
(f);
Common\General\Axis.cs (7)
2379
angle += (int)Math.
Round
(angleAxis * 180f / (float)Math.PI);
4466
newInterval = Math.
Round
(oldInterval / 2.0);
4483
newInterval = Math.
Round
(oldInterval / 2.0);
5350
if (Math.
Round
(axisLabelSize.Width) >= Math.
Round
(rect.Width) &&
5355
if (Math.
Round
(axisLabelSize.Height) >= Math.
Round
(rect.Height) &&
Common\General\AxisScale.cs (2)
1590
return (int)Math.
Round
((max - min) / current);
1971
axisInterval = Math.
Round
( axisInterval );
Common\General\ChartGraphics.cs (26)
259
(float)Math.
Round
(firstPoint.X),
260
(float)Math.
Round
(firstPoint.Y),
261
(float)Math.
Round
(secondPoint.X),
262
(float)Math.
Round
(secondPoint.Y) );
2420
absPositionRounded.Width = (int)Math.
Round
(absPosition.Right) - absPositionRounded.X;
2421
absPositionRounded.Height = (int)Math.
Round
(absPosition.Bottom) - absPositionRounded.Y;
2559
absPositionRounded.Width = (int)Math.
Round
(absPosition.Right) - absPositionRounded.X;
2560
absPositionRounded.Height = (int)Math.
Round
(absPosition.Bottom) - absPositionRounded.Y;
2572
leftLine[2].X = (float)Math.
Round
((double)center.X - labelSize.Width/2F - 1F);
2579
rightLine[2].X = (float)Math.
Round
((double)center.X + labelSize.Width/2F - 1F);
3595
new Rectangle((int)Math.
Round
(imageRect.X),(int)Math.
Round
(imageRect.Y), (int)Math.
Round
(imageRect.Width), (int)Math.
Round
(imageRect.Height)),
4270
new Rectangle((int)Math.
Round
(imageRect.X),(int)Math.
Round
(imageRect.Y), (int)Math.
Round
(imageRect.Width), (int)Math.
Round
(imageRect.Height)),
4568
new Rectangle((int)Math.
Round
(imageRect.X),(int)Math.
Round
(imageRect.Y), (int)Math.
Round
(imageRect.Width), (int)Math.
Round
(imageRect.Height)),
5570
float left = (float)Math.
Round
( (double)rect.Left );
5571
float right = (float)Math.
Round
( (double)rect.Right );
5572
float top = (float)Math.
Round
( (double)rect.Top );
5573
float bottom = (float)Math.
Round
( (double)rect.Bottom );
Common\General\ChartGraphics3D.cs (33)
1332
(float)Math.
Round
(frontLinePoint1.X),
1333
(float)Math.
Round
(frontLinePoint1.Y),
1334
(float)Math.
Round
(frontLinePoint2.X),
1335
(float)Math.
Round
(frontLinePoint2.Y) );
2294
(float)Math.
Round
(polygonPoints[0].X),
2295
(float)Math.
Round
(polygonPoints[0].Y),
2296
(float)Math.
Round
(polygonPoints[1].X),
2297
(float)Math.
Round
(polygonPoints[1].Y) );
2305
(float)Math.
Round
(polygonPoints[0].X),
2306
(float)Math.
Round
(polygonPoints[0].Y),
2307
(float)Math.
Round
(polygonPoints[1].X),
2308
(float)Math.
Round
(polygonPoints[1].Y));
2329
(float)Math.
Round
(polygonPoints[3].X),
2330
(float)Math.
Round
(polygonPoints[3].Y),
2331
(float)Math.
Round
(polygonPoints[0].X),
2332
(float)Math.
Round
(polygonPoints[0].Y) );
2340
(float)Math.
Round
(polygonPoints[3].X),
2341
(float)Math.
Round
(polygonPoints[3].Y),
2342
(float)Math.
Round
(polygonPoints[0].X),
2343
(float)Math.
Round
(polygonPoints[0].Y));
2359
(float)Math.
Round
(polygonPoints[1].X),
2360
(float)Math.
Round
(polygonPoints[1].Y),
2361
(float)Math.
Round
(polygonPoints[2].X),
2362
(float)Math.
Round
(polygonPoints[2].Y) );
2370
(float)Math.
Round
(polygonPoints[1].X),
2371
(float)Math.
Round
(polygonPoints[1].Y),
2372
(float)Math.
Round
(polygonPoints[2].X),
2373
(float)Math.
Round
(polygonPoints[2].Y));
2390
(float)Math.
Round
(frontLinePoint1.X),
2391
(float)Math.
Round
(frontLinePoint1.Y),
2392
(float)Math.
Round
(frontLinePoint2.X),
2393
(float)Math.
Round
(frontLinePoint2.Y) );
4090
cylinderAngle = (float)Math.
Round
(cylinderAngle * 180f / (float)Math.PI);
Common\General\ImageMap.cs (7)
381
if ((int)Math.
Round
(transformedCoord[0]) == (int)Math.
Round
(transformedCoord[2]))
383
transformedCoord[2] = (float)Math.
Round
(transformedCoord[2]) + 1;
385
if ((int)Math.
Round
(transformedCoord[1]) == (int)Math.
Round
(transformedCoord[3]))
387
transformedCoord[3] = (float)Math.
Round
(transformedCoord[3]) + 1;
414
tagStringBuilder.Append((int)Math.
Round
(f));
Common\General\Legend.cs (5)
584
int newFontSize = (int)Math.
Round
(this.Font.Size - this._autoFitFontSizeAdjustment);
1005
int newFontSize = (int)Math.
Round
(this.Font.Size - this._autoFitFontSizeAdjustment);
1332
averageColumnWidth = (int)Math.
Round
((double)(legendSize.Width - horSpaceLeft) / columnNumber) / 2;
6214
int maxBorderWidth = (int)Math.
Round
((2 * dpi) / 96);
6228
borderWidth <= (int)Math.
Round
(dpi / 96) )
Common\General\LegendColumns.cs (4)
1676
int newFontSize = (int)Math.
Round
(cellFont.Size - fontSizeReducedBy);
2339
int maxShadowOffset = (int)Math.
Round
((3 * chartGraph.Graphics.DpiX) / 96);
2340
int maxBorderWidth = (int)Math.
Round
((3 * chartGraph.Graphics.DpiX) / 96);
2344
int maxBorderWidthRect = (int)Math.
Round
((2 * chartGraph.Graphics.DpiX) / 96);
Common\General\StripLine.cs (1)
789
angleXAxis = (float)Math.
Round
(angleXAxis * 180f / (float)Math.PI);
System.Windows.Forms (44)
misc\DpiHelper.cs (4)
429
int dpiScalePercent = (int)Math.
Round
(LogicalToDeviceUnitsScalingFactor * 100);
508
return (int)Math.
Round
(LogicalToDeviceUnitsScalingFactor * (double)value);
511
return (int)Math.
Round
(scalingFactor * (double)value);
601
var scaledValue = (int)Math.
Round
(value * pixelFactor);
winforms\Managed\System\WinForms\Control.cs (18)
6612
sx = (int)Math.
Round
(bounds.X * dx);
6616
sy = (int)Math.
Round
(bounds.Y * dy);
6628
sw = (int)Math.
Round
(localWidth * dx) + adornmentWidth;
6633
sh = (int)Math.
Round
(localHeight * dy) + adornmentHeight;
11510
padding.Left = (int)Math.
Round
(padding.Left * dx);
11511
padding.Right = (int)Math.
Round
(padding.Right * dx);
11512
margins.Left = (int)Math.
Round
(margins.Left * dx);
11513
margins.Right = (int)Math.
Round
(margins.Right * dx);
11517
padding.Top = (int)Math.
Round
(padding.Top * dy);
11518
padding.Bottom = (int)Math.
Round
(padding.Bottom * dy);
11519
margins.Top = (int)Math.
Round
(margins.Top * dy);
11520
margins.Bottom = (int)Math.
Round
(margins.Bottom * dy);
11583
int sx = (int)Math.
Round
(x * dx);
11584
int sy = (int)Math.
Round
(y * dy);
11588
sw = (int)(Math.
Round
((x + width) * dx)) - sx;
11592
sh = (int)(Math.
Round
((y + height) * dy)) - sy;
11624
size.Width = (int)Math.
Round
((float)size.Width * x);
11627
size.Height = (int)Math.
Round
((float)size.Height * y);
winforms\Managed\System\WinForms\Form.cs (4)
613
return new Size((int)Math.
Round
(real.Width), (int)Math.
Round
(real.Height));
3372
Size newVar = new Size((int)Math.
Round
(newVarF.Width), (int)Math.
Round
(newVarF.Height));
winforms\Managed\System\WinForms\Layout\TableLayout.cs (2)
677
strip.MinSize = (int)Math.
Round
((double)((TableLayoutStyle)styles[i]).Size);
1106
int totalWidth = (int)Math.
Round
(((strip.MinSize * totalPercent)/ style.Size));
winforms\Managed\System\WinForms\MDIClient.cs (4)
212
int sx = (int)Math.
Round
(bounds.X * dx);
213
int sy = (int)Math.
Round
(bounds.Y * dy);
214
int sw = (int)Math.
Round
((bounds.X + bounds.Width) * dx - sx);
215
int sh = (int)Math.
Round
((bounds.Y + bounds.Height) * dy - sy);
winforms\Managed\System\WinForms\PropertyGrid.cs (4)
2963
int sx = (int)Math.
Round
(Left * dx);
2964
int sy = (int)Math.
Round
(Top * dy);
2966
sw = (int)Math.
Round
((Left + Width) * dx - sx);
2968
sh = (int)Math.
Round
((Top + Height) * dy - sy);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
6132
this.Height = (int)Math.
Round
(factor * this.Height);
winforms\Managed\System\WinForms\SplitContainer.cs (1)
1896
SplitterWidth = (int)Math.
Round
((float)SplitterWidth * scale);
winforms\Managed\System\WinForms\TableLayoutPanel.cs (4)
528
cs.Width = (float)Math.
Round
(lastColumnHeight * factor.Width);
531
cs.Width = (float)Math.
Round
(cs.Width * factor.Width);
544
rs.Height = (float)Math.
Round
(lastRowHeight * factor.Height);
547
rs.Height = (float)Math.
Round
(rs.Height * factor.Height);
winforms\Managed\System\WinForms\TrackBarRenderer.cs (2)
174
visualStyleRenderer.DrawEdge(g, new Rectangle((int)Math.
Round
(x), bounds.Y, lineWidth, bounds.Height), Edges.Left, edgeStyle, EdgeEffects.None);
205
visualStyleRenderer.DrawEdge(g, new Rectangle(bounds.X, (int)Math.
Round
(y), bounds.Width, lineWidth), Edges.Top, edgeStyle, EdgeEffects.None);
System.Windows.Forms.DataVisualization (107)
Common\ChartTypes\AreaChart.cs (6)
297
point1.X = (float)Math.
Round
(point1.X);
298
point1.Y = (float)Math.
Round
(point1.Y);
299
point2.X = (float)Math.
Round
(point2.X);
300
point2.Y = (float)Math.
Round
(point2.Y);
306
axisPos.X = (float)Math.
Round
(axisPos.X);
307
axisPos.Y = (float)Math.
Round
(axisPos.Y);
Common\ChartTypes\BarChart.cs (1)
2103
angleXAxis = (float)Math.
Round
(angleXAxis * 180f / (float)Math.PI);
Common\ChartTypes\KagiChart.cs (8)
541
point1.X = (float)Math.
Round
(point1.X);
542
point1.Y = (float)Math.
Round
(point1.Y);
543
point2.X = (float)Math.
Round
(point2.X);
544
point2.Y = (float)Math.
Round
(point2.Y);
545
point3.X = (float)Math.
Round
(point3.X);
546
point3.Y = (float)Math.
Round
(point3.Y);
549
point4.X = (float)Math.
Round
(point4.X);
550
point4.Y = (float)Math.
Round
(point4.Y);
Common\ChartTypes\StackedAreaChart.cs (4)
578
firstPoint.X = (float)Math.
Round
(firstPoint.X);
579
secondPoint.X = (float)Math.
Round
(secondPoint.X);
887
firstPoint.X = (float)Math.
Round
(firstPoint.X);
888
secondPoint.X = (float)Math.
Round
(secondPoint.X);
Common\ChartTypes\StackedBarChart.cs (1)
2015
angleXAxis = (float)Math.
Round
(angleXAxis * 180f / (float)Math.PI);
Common\Formulas\PriceIndicators.cs (1)
492
tempPeriod = Math.
Round
(tempPeriod);
Common\Formulas\StatisticalAnalysis.cs (1)
822
freedom = (int)Math.
Round
(f);
Common\General\Axis.cs (7)
2379
angle += (int)Math.
Round
(angleAxis * 180f / (float)Math.PI);
4466
newInterval = Math.
Round
(oldInterval / 2.0);
4483
newInterval = Math.
Round
(oldInterval / 2.0);
5350
if (Math.
Round
(axisLabelSize.Width) >= Math.
Round
(rect.Width) &&
5355
if (Math.
Round
(axisLabelSize.Height) >= Math.
Round
(rect.Height) &&
Common\General\AxisScale.cs (2)
1590
return (int)Math.
Round
((max - min) / current);
1971
axisInterval = Math.
Round
( axisInterval );
Common\General\ChartGraphics.cs (26)
259
(float)Math.
Round
(firstPoint.X),
260
(float)Math.
Round
(firstPoint.Y),
261
(float)Math.
Round
(secondPoint.X),
262
(float)Math.
Round
(secondPoint.Y) );
2420
absPositionRounded.Width = (int)Math.
Round
(absPosition.Right) - absPositionRounded.X;
2421
absPositionRounded.Height = (int)Math.
Round
(absPosition.Bottom) - absPositionRounded.Y;
2559
absPositionRounded.Width = (int)Math.
Round
(absPosition.Right) - absPositionRounded.X;
2560
absPositionRounded.Height = (int)Math.
Round
(absPosition.Bottom) - absPositionRounded.Y;
2572
leftLine[2].X = (float)Math.
Round
((double)center.X - labelSize.Width/2F - 1F);
2579
rightLine[2].X = (float)Math.
Round
((double)center.X + labelSize.Width/2F - 1F);
3595
new Rectangle((int)Math.
Round
(imageRect.X),(int)Math.
Round
(imageRect.Y), (int)Math.
Round
(imageRect.Width), (int)Math.
Round
(imageRect.Height)),
4270
new Rectangle((int)Math.
Round
(imageRect.X),(int)Math.
Round
(imageRect.Y), (int)Math.
Round
(imageRect.Width), (int)Math.
Round
(imageRect.Height)),
4568
new Rectangle((int)Math.
Round
(imageRect.X),(int)Math.
Round
(imageRect.Y), (int)Math.
Round
(imageRect.Width), (int)Math.
Round
(imageRect.Height)),
5570
float left = (float)Math.
Round
( (double)rect.Left );
5571
float right = (float)Math.
Round
( (double)rect.Right );
5572
float top = (float)Math.
Round
( (double)rect.Top );
5573
float bottom = (float)Math.
Round
( (double)rect.Bottom );
Common\General\ChartGraphics3D.cs (33)
1332
(float)Math.
Round
(frontLinePoint1.X),
1333
(float)Math.
Round
(frontLinePoint1.Y),
1334
(float)Math.
Round
(frontLinePoint2.X),
1335
(float)Math.
Round
(frontLinePoint2.Y) );
2294
(float)Math.
Round
(polygonPoints[0].X),
2295
(float)Math.
Round
(polygonPoints[0].Y),
2296
(float)Math.
Round
(polygonPoints[1].X),
2297
(float)Math.
Round
(polygonPoints[1].Y) );
2305
(float)Math.
Round
(polygonPoints[0].X),
2306
(float)Math.
Round
(polygonPoints[0].Y),
2307
(float)Math.
Round
(polygonPoints[1].X),
2308
(float)Math.
Round
(polygonPoints[1].Y));
2329
(float)Math.
Round
(polygonPoints[3].X),
2330
(float)Math.
Round
(polygonPoints[3].Y),
2331
(float)Math.
Round
(polygonPoints[0].X),
2332
(float)Math.
Round
(polygonPoints[0].Y) );
2340
(float)Math.
Round
(polygonPoints[3].X),
2341
(float)Math.
Round
(polygonPoints[3].Y),
2342
(float)Math.
Round
(polygonPoints[0].X),
2343
(float)Math.
Round
(polygonPoints[0].Y));
2359
(float)Math.
Round
(polygonPoints[1].X),
2360
(float)Math.
Round
(polygonPoints[1].Y),
2361
(float)Math.
Round
(polygonPoints[2].X),
2362
(float)Math.
Round
(polygonPoints[2].Y) );
2370
(float)Math.
Round
(polygonPoints[1].X),
2371
(float)Math.
Round
(polygonPoints[1].Y),
2372
(float)Math.
Round
(polygonPoints[2].X),
2373
(float)Math.
Round
(polygonPoints[2].Y));
2390
(float)Math.
Round
(frontLinePoint1.X),
2391
(float)Math.
Round
(frontLinePoint1.Y),
2392
(float)Math.
Round
(frontLinePoint2.X),
2393
(float)Math.
Round
(frontLinePoint2.Y) );
4090
cylinderAngle = (float)Math.
Round
(cylinderAngle * 180f / (float)Math.PI);
Common\General\ImageMap.cs (7)
381
if ((int)Math.
Round
(transformedCoord[0]) == (int)Math.
Round
(transformedCoord[2]))
383
transformedCoord[2] = (float)Math.
Round
(transformedCoord[2]) + 1;
385
if ((int)Math.
Round
(transformedCoord[1]) == (int)Math.
Round
(transformedCoord[3]))
387
transformedCoord[3] = (float)Math.
Round
(transformedCoord[3]) + 1;
414
tagStringBuilder.Append((int)Math.
Round
(f));
Common\General\Legend.cs (5)
584
int newFontSize = (int)Math.
Round
(this.Font.Size - this._autoFitFontSizeAdjustment);
1005
int newFontSize = (int)Math.
Round
(this.Font.Size - this._autoFitFontSizeAdjustment);
1332
averageColumnWidth = (int)Math.
Round
((double)(legendSize.Width - horSpaceLeft) / columnNumber) / 2;
6214
int maxBorderWidth = (int)Math.
Round
((2 * dpi) / 96);
6228
borderWidth <= (int)Math.
Round
(dpi / 96) )
Common\General\LegendColumns.cs (4)
1676
int newFontSize = (int)Math.
Round
(cellFont.Size - fontSizeReducedBy);
2339
int maxShadowOffset = (int)Math.
Round
((3 * chartGraph.Graphics.DpiX) / 96);
2340
int maxBorderWidth = (int)Math.
Round
((3 * chartGraph.Graphics.DpiX) / 96);
2344
int maxBorderWidthRect = (int)Math.
Round
((2 * chartGraph.Graphics.DpiX) / 96);
Common\General\StripLine.cs (1)
789
angleXAxis = (float)Math.
Round
(angleXAxis * 180f / (float)Math.PI);
System.Xml (1)
System\Xml\XmlConvert.cs (1)
1147
double temp = Math.
Round
(value);
UIAutomationClientsideProviders (4)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (1)
802
return Math.
Round
((double)(-logfont.lfHeight) * 72 / lpy);
MS\Internal\AutomationProxies\WindowsListView.cs (1)
1703
int future = (int) Math.
Round
(((si.nMax - deltaPage) - si.nMin) * fScrollPos / 100.0 + si.nMin);
MS\Internal\AutomationProxies\WindowsScroll.cs (1)
313
int newPos = (int) Math.
Round
(((si.nMax - delta) - si.nMin) * fScrollPos / 100.0 + si.nMin);
MS\Internal\AutomationProxies\WindowsTab.cs (1)
516
int newPos = (int) Math.
Round
((maxPos - minPos) * horizontalPercent / 100) + minPos;