121 references to Round
PresentationFramework (7)
src\Framework\MS\Internal\Documents\RowCache.cs (6)
332double roundedOffset = Math.Round(offset, _findOffsetPrecision); 340double rowOffset = Math.Round(_rowCache[i].VerticalOffset, _findOffsetPrecision); 341double rowHeight = Math.Round(_rowCache[i].RowSize.Height, _findOffsetPrecision); 435startOffset = Math.Round(startOffset, _findOffsetPrecision); 436endOffset = Math.Round(endOffset, _findOffsetPrecision); 442double rowOffset = Math.Round(_rowCache[i].VerticalOffset, _findOffsetPrecision);
src\Framework\System\Windows\Documents\TextStore.cs (1)
2758double angleCos = Math.Round((radCos * 180) / Math.PI, 0);
System.Web.DataVisualization (57)
Common\Annotation\LineAnnotation.cs (4)
520 if(Math.Round(point1.X , 3) == Math.Round(point2.X, 3)) 525 else if(Math.Round(point1.Y , 3) == Math.Round(point2.Y, 3))
Common\ChartTypes\AreaChart.cs (9)
937 if(Math.Round(firstPoint.xPosition, 3) == Math.Round(secondPoint.xPosition, 3) && 938 Math.Round(firstPoint.yPosition, 3) == Math.Round(secondPoint.yPosition, 3)) 973 float axisPosition = (float)Math.Round(VAxis.GetPosition(this.VAxis.Crossing), 3); 1176 if(Math.Round(firstPoint.xPosition, 3) == Math.Round(secondPoint.xPosition, 3) && 1177 Math.Round(firstPoint.yPosition, 3) == Math.Round(secondPoint.yPosition, 3))
Common\ChartTypes\FastPointChart.cs (4)
520 (int)Math.Round(markerBounds.X, 0), 521 (int)Math.Round(markerBounds.Y, 0), 522 (int)Math.Round(markerBounds.Width, 0), 523 (int)Math.Round(markerBounds.Height, 0) );
Common\ChartTypes\LineChart.cs (12)
1679 firstPoint.xPosition = Math.Round(firstPoint.xPosition, decimals); 1680 firstPoint.yPosition = Math.Round(firstPoint.yPosition, decimals); 1681 secondPoint.xPosition = Math.Round(secondPoint.xPosition, decimals); 1682 secondPoint.yPosition = Math.Round(secondPoint.yPosition, decimals); 2047 firstPoint.xPosition = Math.Round(firstPoint.xPosition, decimals); 2048 firstPoint.yPosition = Math.Round(firstPoint.yPosition, decimals); 2049 secondPoint.xPosition = Math.Round(secondPoint.xPosition, decimals); 2050 secondPoint.yPosition = Math.Round(secondPoint.yPosition, decimals); 2052 thirdPoint.X = (float)Math.Round(thirdPoint.X, decimals); 2053 thirdPoint.Y = (float)Math.Round(thirdPoint.Y, decimals); 2055 fourthPoint.X = (float)Math.Round(fourthPoint.X, decimals); 2056 fourthPoint.Y = (float)Math.Round(fourthPoint.Y, decimals);
Common\ChartTypes\RangeChart.cs (4)
1157 firstPoint.xPosition = Math.Round(firstPoint.xPosition, 5); 1158 firstPoint.yPosition = Math.Round(firstPoint.yPosition, 5); 1159 secondPoint.xPosition = Math.Round(secondPoint.xPosition, 5); 1160 secondPoint.yPosition = Math.Round(secondPoint.yPosition, 5);
Common\ChartTypes\StackedAreaChart.cs (2)
1006pointLabelValue = Math.Round(pointLabelValue, 2); 1492pointLabelValue = Math.Round(pointLabelValue, 2);
Common\ChartTypes\StackedBarChart.cs (2)
1055pointLabelValue = Math.Round(pointLabelValue, 2); 1826pointLabelValue = Math.Round(pointLabelValue, 2);
Common\ChartTypes\StackedColumnChart.cs (2)
1139pointLabelValue = Math.Round(pointLabelValue, 2); 1855pointLabelValue = Math.Round(pointLabelValue, 2);
Common\General\Axis.cs (4)
6434axisPoints[0].X = (float)Math.Round(axisPoints[0].X, 4); 6435axisPoints[0].Y = (float)Math.Round(axisPoints[0].Y, 4); 6436axisPoints[1].X = (float)Math.Round(axisPoints[1].X, 4); 6437axisPoints[1].Y = (float)Math.Round(axisPoints[1].Y, 4);
Common\General\AxisLabels.cs (1)
718 labValue = Math.Round(labValue,digits);
Common\General\AxisScaleBreaks.cs (1)
689 axisSegments[index].Size = Math.Round(((int)axisSegments[index].Tag) / (totalPointNumber / 100.0),5);
Common\General\ChartArea.cs (8)
1844 (float)Math.Round((plottingRect.X - Position.X) / (Position.Width / 100F), 5), 1845 (float)Math.Round((plottingRect.Y - Position.Y) / (Position.Height / 100F), 5), 1846 (float)Math.Round(plottingRect.Width / (Position.Width / 100F), 5), 1847 (float)Math.Round(plottingRect.Height / (Position.Height / 100F), 5)); 1907 if(Math.Round(labelsPosition, 2) < Math.Round(axis.PlotAreaPosition.Bottom, 2)) 1956 if(Math.Round(labelsPosition, 2) < Math.Round(axis.PlotAreaPosition.Y, 2))
Common\General\ChartGraphics.cs (4)
891this.DrawRectangle(new Pen(markerBorderColor, markerBorderSize), (int)Math.Round(rect.X, 0), (int)Math.Round(rect.Y, 0), (int)Math.Round(rect.Width, 0), (int)Math.Round(rect.Height, 0));
System.Windows.Forms.DataVisualization (57)
Common\Annotation\LineAnnotation.cs (4)
520 if(Math.Round(point1.X , 3) == Math.Round(point2.X, 3)) 525 else if(Math.Round(point1.Y , 3) == Math.Round(point2.Y, 3))
Common\ChartTypes\AreaChart.cs (9)
937 if(Math.Round(firstPoint.xPosition, 3) == Math.Round(secondPoint.xPosition, 3) && 938 Math.Round(firstPoint.yPosition, 3) == Math.Round(secondPoint.yPosition, 3)) 973 float axisPosition = (float)Math.Round(VAxis.GetPosition(this.VAxis.Crossing), 3); 1176 if(Math.Round(firstPoint.xPosition, 3) == Math.Round(secondPoint.xPosition, 3) && 1177 Math.Round(firstPoint.yPosition, 3) == Math.Round(secondPoint.yPosition, 3))
Common\ChartTypes\FastPointChart.cs (4)
520 (int)Math.Round(markerBounds.X, 0), 521 (int)Math.Round(markerBounds.Y, 0), 522 (int)Math.Round(markerBounds.Width, 0), 523 (int)Math.Round(markerBounds.Height, 0) );
Common\ChartTypes\LineChart.cs (12)
1679 firstPoint.xPosition = Math.Round(firstPoint.xPosition, decimals); 1680 firstPoint.yPosition = Math.Round(firstPoint.yPosition, decimals); 1681 secondPoint.xPosition = Math.Round(secondPoint.xPosition, decimals); 1682 secondPoint.yPosition = Math.Round(secondPoint.yPosition, decimals); 2047 firstPoint.xPosition = Math.Round(firstPoint.xPosition, decimals); 2048 firstPoint.yPosition = Math.Round(firstPoint.yPosition, decimals); 2049 secondPoint.xPosition = Math.Round(secondPoint.xPosition, decimals); 2050 secondPoint.yPosition = Math.Round(secondPoint.yPosition, decimals); 2052 thirdPoint.X = (float)Math.Round(thirdPoint.X, decimals); 2053 thirdPoint.Y = (float)Math.Round(thirdPoint.Y, decimals); 2055 fourthPoint.X = (float)Math.Round(fourthPoint.X, decimals); 2056 fourthPoint.Y = (float)Math.Round(fourthPoint.Y, decimals);
Common\ChartTypes\RangeChart.cs (4)
1157 firstPoint.xPosition = Math.Round(firstPoint.xPosition, 5); 1158 firstPoint.yPosition = Math.Round(firstPoint.yPosition, 5); 1159 secondPoint.xPosition = Math.Round(secondPoint.xPosition, 5); 1160 secondPoint.yPosition = Math.Round(secondPoint.yPosition, 5);
Common\ChartTypes\StackedAreaChart.cs (2)
1006pointLabelValue = Math.Round(pointLabelValue, 2); 1492pointLabelValue = Math.Round(pointLabelValue, 2);
Common\ChartTypes\StackedBarChart.cs (2)
1055pointLabelValue = Math.Round(pointLabelValue, 2); 1826pointLabelValue = Math.Round(pointLabelValue, 2);
Common\ChartTypes\StackedColumnChart.cs (2)
1139pointLabelValue = Math.Round(pointLabelValue, 2); 1855pointLabelValue = Math.Round(pointLabelValue, 2);
Common\General\Axis.cs (4)
6434axisPoints[0].X = (float)Math.Round(axisPoints[0].X, 4); 6435axisPoints[0].Y = (float)Math.Round(axisPoints[0].Y, 4); 6436axisPoints[1].X = (float)Math.Round(axisPoints[1].X, 4); 6437axisPoints[1].Y = (float)Math.Round(axisPoints[1].Y, 4);
Common\General\AxisLabels.cs (1)
718 labValue = Math.Round(labValue,digits);
Common\General\AxisScaleBreaks.cs (1)
689 axisSegments[index].Size = Math.Round(((int)axisSegments[index].Tag) / (totalPointNumber / 100.0),5);
Common\General\ChartArea.cs (8)
1844 (float)Math.Round((plottingRect.X - Position.X) / (Position.Width / 100F), 5), 1845 (float)Math.Round((plottingRect.Y - Position.Y) / (Position.Height / 100F), 5), 1846 (float)Math.Round(plottingRect.Width / (Position.Width / 100F), 5), 1847 (float)Math.Round(plottingRect.Height / (Position.Height / 100F), 5)); 1907 if(Math.Round(labelsPosition, 2) < Math.Round(axis.PlotAreaPosition.Bottom, 2)) 1956 if(Math.Round(labelsPosition, 2) < Math.Round(axis.PlotAreaPosition.Y, 2))
Common\General\ChartGraphics.cs (4)
891this.DrawRectangle(new Pen(markerBorderColor, markerBorderSize), (int)Math.Round(rect.X, 0), (int)Math.Round(rect.Y, 0), (int)Math.Round(rect.Width, 0), (int)Math.Round(rect.Height, 0));