344 references to Round
mscorlib (7)
system\convert.cs (2)
1313return checked((long)Math.Round(value)); 1418return checked((ulong)Math.Round(value));
system\globalization\datetimeparse.cs (3)
2529time = time.AddTicks((long)Math.Round(raw.fraction * Calendar.TicksPerSecond)); 2837time = time.AddTicks((long)Math.Round(partSecond * Calendar.TicksPerSecond)); 4152result.parsedDate = result.parsedDate.AddTicks((long)Math.Round(result.fraction * Calendar.TicksPerSecond));
system\math.cs (2)
98value = Round(value); 227double roundedResult = Math.Round(divisionResult);
PresentationCore (32)
Core\CSharp\MS\Internal\Shaping\CompositeFontFamily.cs (2)
134return Math.Round(_fontInfo.Baseline * emSize); 166return Math.Round(_fontInfo.LineSpacing * emSize);
Core\CSharp\MS\Internal\TextFormatting\LineServicesCallbacks.cs (8)
492lstTextMetrics.dvAscent = (int)Math.Round(typeface.Baseline(store.Pap.EmSize, Constants.DefaultIdealToReal, store.Settings.TextSource.PixelsPerDip, fullText.TextFormattingMode)); 493lstTextMetrics.dvMultiLineHeight = (int)Math.Round(typeface.LineSpacing(store.Pap.EmSize, Constants.DefaultIdealToReal, store.Settings.TextSource.PixelsPerDip, fullText.TextFormattingMode)); 768ulInfo.dvpFirstUnderlineOffset = (int)Math.Round(lsrun.EmSize * -underlinePositionInEm); 769ulInfo.dvpFirstUnderlineSize = (int)Math.Round(lsrun.EmSize * underlineThicknessInEm); 826stInfo.dvpLowerStrikethroughOffset = (int)Math.Round(lsrun.EmSize * strikeThroughPositionInEm); 827stInfo.dvpLowerStrikethroughSize = (int)Math.Round(lsrun.EmSize * strikeThroughThicknessInEm); 1038int baselineTop = ptOrigin.y + (int)Math.Round(lsrun.EmSize * strikeThroughPositionInEm); 1039int 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)
756int 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)
396return (int)Math.Round(properties.FontRenderingEmSize * 0.75 * _textRunLength * realToIdeal);
Core\CSharp\MS\Internal\TextFormatting\TextRunCacheImp.cs (1)
212looseCharLength = (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)
300thousandthOfEm = (short) Math.Round(scaled);
Core\CSharp\System\Windows\Media\GlyphsSerializer.cs (4)
190int normalizedAdvance = (int)Math.Round(_advances[glyph] * _milToEm); 192if (normalizedAdvance != (int)Math.Round(fontAdvance * EmScaleFactor)) 203int offset = (int)Math.Round(_offsets[glyph].X * _milToEm); 211offset = (int)Math.Round(_offsets[glyph].Y * _milToEm);
Core\CSharp\System\Windows\Media\GlyphTypeface.cs (1)
1717int missingGlyphWidth = (int)Math.Round(TextFormatterImp.RoundDip(emSize * GetAdvanceWidth(0, pixelsPerDip, textFormattingMode, isSideways), pixelsPerDip, textFormattingMode) * scalingFactor);
Core\CSharp\System\Windows\UIElement.cs (2)
1103newValue = Math.Round(value * dpiScale) / dpiScale; 1114newValue = 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)
480uint heightDeviceUnits = (uint)Math.Round(sizeDeviceUnits.Y); 506uint widthDeviceUnits = (uint)Math.Round(sizeDeviceUnits.X);
src\Framework\MS\Internal\Ink\PenCursorManager.cs (2)
237int xHotspot = (int)Math.Round(hotspot.X - drawingBounds.Left); 238int yHotspot = (int)Math.Round(hotspot.Y - drawingBounds.Top);
src\Framework\MS\Internal\Text\TextDpi.cs (1)
57return (int)Math.Round(d * _scale);
src\Framework\System\Windows\Controls\GridSplitter.cs (2)
658horizontalChange = Math.Round(horizontalChange / dragIncrement) * dragIncrement; 659verticalChange = Math.Round(verticalChange / dragIncrement) * dragIncrement;
src\Framework\System\Windows\Controls\ScrollViewer.cs (2)
1876Math.Round(PanningRatio * cumulativeTranslation / _panningInfo.DeltaPerHorizontalOffet)); 1886Math.Round(PanningRatio * cumulativeTranslation / _panningInfo.DeltaPerVerticalOffset));
src\Framework\System\Windows\Controls\Slider.cs (2)
1140previous = Minimum + (Math.Round(((value - Minimum) / TickFrequency)) * TickFrequency); 1199double tickNumber = Math.Round((value - Minimum) / TickFrequency);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (2)
7446uniformOrAverageContainerSize = Math.Round(sumOfContainerSizes / numContainerSizes); 7668uniformOrAverageContainerSize = Math.Round(sumOfContainerSizes / numContainerSizes);
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (1)
2899formatState.FontSize = (long)Math.Round(fs);
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\DesignerGeometryHelper.cs (2)
38return 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)
116ulong stDev = (ulong)Math.Round(Math.Sqrt(varSum / (count - 1)));
System.Data.SqlXml (2)
System\Xml\Xsl\Runtime\XslNumber.cs (1)
265Debug.Assert(val >= 0 && val == Math.Round(val), "ConvertToArabic operates on non-negative integer numbers only");
System\Xml\Xsl\Runtime\XsltFunctions.cs (1)
181double temp = Math.Round(value);
System.Drawing (17)
commonui\System\Drawing\Point.cs (2)
227return new Point((int)Math.Round(value.X), (int)Math.Round(value.Y));
commonui\System\Drawing\Printing\Margins.cs (4)
148this.Left = (int)Math.Round(value); 164this.Right = (int)Math.Round(value); 180this.Top = (int)Math.Round(value); 196this.Bottom = (int)Math.Round(value);
commonui\System\Drawing\Printing\PrinterUnitConvert.cs (1)
46return(int) Math.Round(Convert((double)value, fromUnit, toUnit));
commonui\System\Drawing\Rectangle.cs (4)
324return 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)
220return new Size((int)Math.Round(value.Width), (int)Math.Round(value.Height));
misc\DpiHelper.cs (4)
429int dpiScalePercent = (int)Math.Round(LogicalToDeviceUnitsScalingFactor * 100); 508return (int)Math.Round(LogicalToDeviceUnitsScalingFactor * (double)value); 511return (int)Math.Round(scalingFactor * (double)value); 601var scaledValue = (int)Math.Round(value * pixelFactor);
System.ServiceModel (4)
System\ServiceModel\Dispatcher\QueryFunctions.cs (3)
1157int startAt = ((int)Math.Round(context.PeekDouble(arg2.basePtr))) - 1; 1181int startAt = ((int)Math.Round(context.PeekDouble(argStartAt.basePtr))) - 1; 1186int length = (int)Math.Round(context.PeekDouble(argLimit.basePtr));
System\ServiceModel\Dispatcher\QueryModel.cs (1)
918return (-0.5 <= val && val <= 0.0) ? Math.Round(val) : Math.Floor(val + 0.5);
System.Web.DataVisualization (107)
Common\ChartTypes\AreaChart.cs (6)
297point1.X = (float)Math.Round(point1.X); 298point1.Y = (float)Math.Round(point1.Y); 299point2.X = (float)Math.Round(point2.X); 300point2.Y = (float)Math.Round(point2.Y); 306axisPos.X = (float)Math.Round(axisPos.X); 307axisPos.Y = (float)Math.Round(axisPos.Y);
Common\ChartTypes\BarChart.cs (1)
2103angleXAxis = (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)
2015angleXAxis = (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)
2379angle += (int)Math.Round(angleAxis * 180f / (float)Math.PI); 4466 newInterval = Math.Round(oldInterval / 2.0); 4483 newInterval = Math.Round(oldInterval / 2.0); 5350if (Math.Round(axisLabelSize.Width) >= Math.Round(rect.Width) && 5355if (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)
381if ((int)Math.Round(transformedCoord[0]) == (int)Math.Round(transformedCoord[2])) 383transformedCoord[2] = (float)Math.Round(transformedCoord[2]) + 1; 385if ((int)Math.Round(transformedCoord[1]) == (int)Math.Round(transformedCoord[3])) 387transformedCoord[3] = (float)Math.Round(transformedCoord[3]) + 1; 414tagStringBuilder.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; 6214int maxBorderWidth = (int)Math.Round((2 * dpi) / 96); 6228borderWidth <= (int)Math.Round(dpi / 96) )
Common\General\LegendColumns.cs (4)
1676 int newFontSize = (int)Math.Round(cellFont.Size - fontSizeReducedBy); 2339int maxShadowOffset = (int)Math.Round((3 * chartGraph.Graphics.DpiX) / 96); 2340int maxBorderWidth = (int)Math.Round((3 * chartGraph.Graphics.DpiX) / 96); 2344int maxBorderWidthRect = (int)Math.Round((2 * chartGraph.Graphics.DpiX) / 96);
Common\General\StripLine.cs (1)
789angleXAxis = (float)Math.Round(angleXAxis * 180f / (float)Math.PI);
System.Windows.Forms (44)
misc\DpiHelper.cs (4)
429int dpiScalePercent = (int)Math.Round(LogicalToDeviceUnitsScalingFactor * 100); 508return (int)Math.Round(LogicalToDeviceUnitsScalingFactor * (double)value); 511return (int)Math.Round(scalingFactor * (double)value); 601var scaledValue = (int)Math.Round(value * pixelFactor);
winforms\Managed\System\WinForms\Control.cs (18)
6612sx = (int)Math.Round(bounds.X * dx); 6616sy = (int)Math.Round(bounds.Y * dy); 6628sw = (int)Math.Round(localWidth * dx) + adornmentWidth; 6633sh = (int)Math.Round(localHeight * dy) + adornmentHeight; 11510padding.Left = (int)Math.Round(padding.Left * dx); 11511padding.Right = (int)Math.Round(padding.Right * dx); 11512margins.Left = (int)Math.Round(margins.Left * dx); 11513margins.Right = (int)Math.Round(margins.Right * dx); 11517padding.Top = (int)Math.Round(padding.Top * dy); 11518padding.Bottom = (int)Math.Round(padding.Bottom * dy); 11519margins.Top = (int)Math.Round(margins.Top * dy); 11520margins.Bottom = (int)Math.Round(margins.Bottom * dy); 11583int sx = (int)Math.Round(x * dx); 11584int sy = (int)Math.Round(y * dy); 11588sw = (int)(Math.Round((x + width) * dx)) - sx; 11592sh = (int)(Math.Round((y + height) * dy)) - sy; 11624size.Width = (int)Math.Round((float)size.Width * x); 11627size.Height = (int)Math.Round((float)size.Height * y);
winforms\Managed\System\WinForms\Form.cs (4)
613return new Size((int)Math.Round(real.Width), (int)Math.Round(real.Height)); 3372Size newVar = new Size((int)Math.Round(newVarF.Width), (int)Math.Round(newVarF.Height));
winforms\Managed\System\WinForms\Layout\TableLayout.cs (2)
677strip.MinSize = (int)Math.Round((double)((TableLayoutStyle)styles[i]).Size); 1106int totalWidth = (int)Math.Round(((strip.MinSize * totalPercent)/ style.Size));
winforms\Managed\System\WinForms\MDIClient.cs (4)
212int sx = (int)Math.Round(bounds.X * dx); 213int sy = (int)Math.Round(bounds.Y * dy); 214int sw = (int)Math.Round((bounds.X + bounds.Width) * dx - sx); 215int sh = (int)Math.Round((bounds.Y + bounds.Height) * dy - sy);
winforms\Managed\System\WinForms\PropertyGrid.cs (4)
2963int sx = (int)Math.Round(Left * dx); 2964int sy = (int)Math.Round(Top * dy); 2966sw = (int)Math.Round((Left + Width) * dx - sx); 2968sh = (int)Math.Round((Top + Height) * dy - sy);
winforms\Managed\System\WinForms\PropertyGridInternal\PropertyGridView.cs (1)
6132this.Height = (int)Math.Round(factor * this.Height);
winforms\Managed\System\WinForms\SplitContainer.cs (1)
1896SplitterWidth = (int)Math.Round((float)SplitterWidth * scale);
winforms\Managed\System\WinForms\TableLayoutPanel.cs (4)
528cs.Width = (float)Math.Round(lastColumnHeight * factor.Width); 531cs.Width = (float)Math.Round(cs.Width * factor.Width); 544rs.Height = (float)Math.Round(lastRowHeight * factor.Height); 547rs.Height = (float)Math.Round(rs.Height * factor.Height);
winforms\Managed\System\WinForms\TrackBarRenderer.cs (2)
174visualStyleRenderer.DrawEdge(g, new Rectangle((int)Math.Round(x), bounds.Y, lineWidth, bounds.Height), Edges.Left, edgeStyle, EdgeEffects.None); 205visualStyleRenderer.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)
297point1.X = (float)Math.Round(point1.X); 298point1.Y = (float)Math.Round(point1.Y); 299point2.X = (float)Math.Round(point2.X); 300point2.Y = (float)Math.Round(point2.Y); 306axisPos.X = (float)Math.Round(axisPos.X); 307axisPos.Y = (float)Math.Round(axisPos.Y);
Common\ChartTypes\BarChart.cs (1)
2103angleXAxis = (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)
2015angleXAxis = (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)
2379angle += (int)Math.Round(angleAxis * 180f / (float)Math.PI); 4466 newInterval = Math.Round(oldInterval / 2.0); 4483 newInterval = Math.Round(oldInterval / 2.0); 5350if (Math.Round(axisLabelSize.Width) >= Math.Round(rect.Width) && 5355if (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)
381if ((int)Math.Round(transformedCoord[0]) == (int)Math.Round(transformedCoord[2])) 383transformedCoord[2] = (float)Math.Round(transformedCoord[2]) + 1; 385if ((int)Math.Round(transformedCoord[1]) == (int)Math.Round(transformedCoord[3])) 387transformedCoord[3] = (float)Math.Round(transformedCoord[3]) + 1; 414tagStringBuilder.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; 6214int maxBorderWidth = (int)Math.Round((2 * dpi) / 96); 6228borderWidth <= (int)Math.Round(dpi / 96) )
Common\General\LegendColumns.cs (4)
1676 int newFontSize = (int)Math.Round(cellFont.Size - fontSizeReducedBy); 2339int maxShadowOffset = (int)Math.Round((3 * chartGraph.Graphics.DpiX) / 96); 2340int maxBorderWidth = (int)Math.Round((3 * chartGraph.Graphics.DpiX) / 96); 2344int maxBorderWidthRect = (int)Math.Round((2 * chartGraph.Graphics.DpiX) / 96);
Common\General\StripLine.cs (1)
789angleXAxis = (float)Math.Round(angleXAxis * 180f / (float)Math.PI);
System.Xml (1)
System\Xml\XmlConvert.cs (1)
1147double temp = Math.Round(value);
UIAutomationClientsideProviders (4)
MS\Internal\AutomationProxies\WindowsEditBoxRange.cs (1)
802return Math.Round((double)(-logfont.lfHeight) * 72 / lpy);
MS\Internal\AutomationProxies\WindowsListView.cs (1)
1703int future = (int) Math.Round (((si.nMax - deltaPage) - si.nMin) * fScrollPos / 100.0 + si.nMin);
MS\Internal\AutomationProxies\WindowsScroll.cs (1)
313int newPos = (int) Math.Round (((si.nMax - delta) - si.nMin) * fScrollPos / 100.0 + si.nMin);
MS\Internal\AutomationProxies\WindowsTab.cs (1)
516int newPos = (int) Math.Round ((maxPos - minPos) * horizontalPercent / 100) + minPos;