673 writes to X
System.Drawing (3)
commonui\System\Drawing\Graphics.cs (2)
4145currentOffset.X = elements[4]; 4161totalOffset.X += currentOffset.X;
commonui\System\Drawing\GraphicsContext.cs (1)
64this.transformOffset.X = elements[4];
System.Web.DataVisualization (335)
Common\Annotation\AnnotationBase.cs (6)
3166 firstPoint.X -= movingDistance.Width; 3197 firstPoint.X -= movingDistance.Width; 3203 firstPoint.X -= movingDistance.Width; 3208 anchorPoint.X -= movingDistance.Width; 3213 firstPoint.X -= movingDistance.Width; 3235 firstPoint.X = float.NaN;
Common\Annotation\CalloutAnnotation.cs (10)
1217 ellipseLocation.X -= dxAbs / 3f + (index * (dxAbs / 10f) ); 1494 lineSecondPoint.X = rectanglePosition.X; 1498 lineSecondPoint.X = rectanglePosition.Right; 1502 lineSecondPoint.X = rectanglePosition.X + rectanglePosition.Width / 2f; 1600 textLinePoint1.X = rectanglePosition.X; 1601 textLinePoint2.X = rectanglePosition.X; 1605 textLinePoint1.X = rectanglePosition.Right; 1606 textLinePoint2.X = rectanglePosition.Right; 1806 intersectionPoint.X = (pointY - firstPoint.Y) * 1824 intersectionPoint.X = pointX;
Common\Annotation\LineAnnotation.cs (5)
527 point1.X = (point1.X < point2.X) ? 0f : 100f; 528 point2.X = (point1.X < point2.X) ? 100f : 0f; 535 intersectionPoint1.X = (0f - point1.Y) * 541 intersectionPoint2.X = (100f - point1.Y) * 799 point2.X = point1.X;
Common\Annotation\PolygonAnnotation.cs (2)
605 pathPoints[pointIndex].X = rectanglePositionAbs.X + pathPoints[pointIndex].X * groupScaleX; 898 pathPoints[pointIndex].X -= movingDistance.Width;
Common\ChartTypes\AreaChart.cs (4)
297point1.X = (float)Math.Round(point1.X); 299point2.X = (float)Math.Round(point2.X); 303axisPos.X = (float)VAxis.GetPosition(this.VAxis.Crossing); 306axisPos.X = (float)Math.Round(axisPos.X);
Common\ChartTypes\BarChart.cs (7)
779 markerPosition.X = rectSize.Right; 783 markerPosition.X = rectSize.X; 1762 markerPosition.X = rectSize.Right; 1766 markerPosition.X = rectSize.X; 2047rotationCenter.X = rectLabel.X + size.Width / 2; 2051rotationCenter.X = rectLabel.Right - size.Width / 2; 2055rotationCenter.X = (rectLabel.Left + rectLabel.Right) / 2;
Common\ChartTypes\ColumnChart.cs (4)
1112 markerPosition.X = intersection.X + intersection.Width / 2f; 1239labelPosition.X = intersection.X + intersection.Width / 2f; 1353labelPosition.X = columnPosition.X + columnPosition.Width / 2f; 1361labelPosition.X = marker3DPosition[0].X;
Common\ChartTypes\FastLineChart.cs (3)
456 currentPoint.X = (float) 464 prevPoint.X = (float) 530 prevPoint.X = (float)
Common\ChartTypes\FastPointChart.cs (21)
386 currentPoint.X = (float) 454 location.X = points[0].X; 536 points[0].X = location.X - crossSize/2F; 538 points[1].X = location.X - crossSize/2F; 541 points[2].X = location.X - crossLineWidth/2F; 543 points[3].X = location.X - crossLineWidth/2F; 545 points[4].X = location.X + crossLineWidth/2F; 548 points[5].X = location.X + crossLineWidth/2F; 550 points[6].X = location.X + crossSize/2F; 552 points[7].X = location.X + crossSize/2F; 555 points[8].X = location.X + crossLineWidth/2F; 557 points[9].X = location.X + crossLineWidth/2F; 559 points[10].X = location.X - crossLineWidth/2F; 561 points[11].X = location.X - crossLineWidth/2F; 583 points[0].X = markerBounds.X; 585 points[1].X = markerBounds.X + markerBounds.Width/2F; 587 points[2].X = markerBounds.Right; 589 points[3].X = markerBounds.X + markerBounds.Width/2F; 604 points[0].X = markerBounds.X; 606 points[1].X = markerBounds.X + markerBounds.Width/2F; 608 points[2].X = markerBounds.Right;
Common\ChartTypes\FunnelChart.cs (16)
1535 labelInfo.CalloutPoint2.X -= spacing.Width / 2f; 1538 labelInfo.CalloutPoint1.X += 2; 1542 labelInfo.CalloutPoint2.X += spacing.Width / 2f; 1545 labelInfo.CalloutPoint1.X += 2; 1864 labelInfo.CalloutPoint1.X = plotAreaCenterXAbs + 1869 labelInfo.CalloutPoint1.X = plotAreaCenterXAbs + 1872 labelInfo.CalloutPoint2.X = labelInfo.Position.X; 1883 labelInfo.CalloutPoint1.X = plotAreaCenterXAbs - 1888 labelInfo.CalloutPoint1.X = plotAreaCenterXAbs - 1891 labelInfo.CalloutPoint2.X = labelInfo.Position.Right; 1964 labelInfo.CalloutPoint1.X = plotAreaCenterXAbs + 1966 labelInfo.CalloutPoint2.X = labelInfo.Position.X; 1976 labelInfo.CalloutPoint1.X = plotAreaCenterXAbs - 1978 labelInfo.CalloutPoint2.X = labelInfo.Position.Right; 2938 startIntersection.X = plotAreaPositionAbs.X + plotAreaPositionAbs.Width / 2f; 2950 endIntersection.X = plotAreaPositionAbs.X + plotAreaPositionAbs.Width / 2f;
Common\ChartTypes\KagiChart.cs (5)
535 point4.X = point2.X; 541 point1.X = (float)Math.Round(point1.X); 543 point2.X = (float)Math.Round(point2.X); 545 point3.X = (float)Math.Round(point3.X); 549 point4.X = (float)Math.Round(point4.X);
Common\ChartTypes\LineChart.cs (8)
438 dataPointPos[pointIndex].X = dataPointPos[pointIndex - 1].X + minDifference; 442 dataPointPos[pointIndex].X = dataPointPos[pointIndex - 1].X - minDifference; 876first.X = (first.X + second.X) / 2f; 899second.X = (first.X + second.X) / 2f; 1018intersectionPoint.X = (pointY - firstPoint.Y) * 1036intersectionPoint.X = pointX; 2052 thirdPoint.X = (float)Math.Round(thirdPoint.X, decimals); 2055 fourthPoint.X = (float)Math.Round(fourthPoint.X, decimals);
Common\ChartTypes\PieChart.cs (8)
1034 point.positionRel.X = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * rectangle.Width * expShift / 2 + middlePoint.X; 2737point.positionRel.X = points[(int)PiePoints.TopLabelLine].X; 4949 position.X = _innerPlotPosition.Right + _chartAreaPosition.Width * this._labelLineSize; 4953 position.X = _innerPlotPosition.Left - _chartAreaPosition.Width * this._labelLineSize; 4975 position.X += correct; 4979 position.X -= correct; 5462labelPoint.X = points[(int)PiePoints.TopLabelLineout].X + 10; 5482labelPoint.X = points[(int)PiePoints.TopLabelLineout].X - 10;
Common\ChartTypes\PointChart.cs (14)
431 markerPosition.X = (float)HAxis.GetPosition( (double)index ); 435 markerPosition.X = (float)HAxis.GetPosition( point.XValue ); 440 markerPosition.X += (float)ShiftedX; 795position.X -= sizeMarker.Height / 1.75F + horizontalSpacing / 2f; 799position.X -= sizeMarker.Height / 1.75F + horizontalSpacing / 2f; 805position.X -= sizeMarker.Height / 1.75F + horizontalSpacing / 2f; 811position.X += sizeMarker.Height / 1.75F + horizontalSpacing / 2f; 815position.X += sizeMarker.Height / 1.75F + horizontalSpacing / 2f; 821position.X += sizeMarker.Height / 1.75F + horizontalSpacing / 2f; 1164 markerPosition.X = (float)HAxis.GetLinearPosition(xValue); // No Log transformation required. Done above! 1168 markerPosition.X += (float)ShiftedX; 1712 markerPosition.X = (float)hAxis.GetPosition( (double)index ); 1716 markerPosition.X = (float)hAxis.GetPosition( point.XValue ); 1721 markerPosition.X += (float)ShiftedX;
Common\ChartTypes\RadarChart.cs (7)
936 middlePoint.X = (p1.X + p2.X) / 2f; 1163position.X -= sizeMarker.Height / 1.75F; 1167position.X -= sizeMarker.Height / 1.75F; 1173position.X -= sizeMarker.Height / 1.75F; 1179position.X += sizeMarker.Height / 1.75F; 1183position.X += sizeMarker.Height / 1.75F; 1189position.X += sizeMarker.Height / 1.75F;
Common\ChartTypes\StackedAreaChart.cs (18)
497 axisPos.X = (float)VAxis.GetPosition(this.VAxis.Crossing); 553 firstPoint.X = xPosition; 567 secondPoint.X = xPosition; 578 firstPoint.X = (float)Math.Round(firstPoint.X); 579 secondPoint.X = (float)Math.Round(secondPoint.X); 819 axisPos.X = (float)VAxis.GetPosition(this.VAxis.Crossing); 861 firstPoint.X = xPosition; 874 secondPoint.X = xPosition; 887 firstPoint.X = (float)Math.Round(firstPoint.X); 888 secondPoint.X = (float)Math.Round(secondPoint.X); 925 axisPos.X = (float)VAxis.GetPosition(this.VAxis.Crossing); 967 firstPoint.X = xPosition; 980 secondPoint.X = xPosition; 1028labelPosition.X = secondPoint.X; 1371 thirdPoint.X = (float)((firstPoint.xCenterVal == 0.0) ? firstPoint.xPosition : firstPoint.xCenterVal); 1381 thirdPoint.X = thirdPointPosition.X; 1390 fourthPoint.X = (float)((secondPoint.xCenterVal == 0.0) ? secondPoint.xPosition : secondPoint.xCenterVal); 1400 fourthPoint.X = fourthPointPosition.X;
Common\ChartTypes\StackedBarChart.cs (7)
1078labelPosition.X = rectangle.X + rectangle.Width / 2f; 1128labelPosition.X = rectangle.X + sizeFont.Width / 2f; 1132labelPosition.X = rectangle.Right - sizeFont.Width / 2f; 1136labelPosition.X = rectangle.Right + sizeFont.Width / 2f; 1960rotationCenter.X = rectLabel.X + size.Width / 2; 1964rotationCenter.X = rectLabel.Right - size.Width / 2; 1968rotationCenter.X = (rectLabel.Left + rectLabel.Right) / 2;
Common\ChartTypes\StackedColumnChart.cs (4)
1158labelPosition.X = rectangle.X + rectangle.Width / 2f; 1220absPosition.X = (float)Math.Ceiling(absPosition.X) + 1f; 1874labelPosition.X = rectangle.X + rectangle.Width / 2f; 1882labelPosition.X = marker3DPosition[0].X;
Common\ChartTypes\StockChart.cs (4)
554 markerPosition.X = xPosition; 1381 markerPosition.X = xPosition; 1861 markerPosition.X = (float)hAxis.GetPosition( (double)index ); 1865 markerPosition.X = (float)hAxis.GetPosition( point.XValue );
Common\General\Axis.cs (28)
2008center.X = titlePosition.X + titlePosition.Width / 2F; 2313rotationCenter.X = ChartArea.PlotAreaPosition.X + axisTitleSize.Width / 2f; 2317rotationCenter.X = ChartArea.PlotAreaPosition.Right - axisTitleSize.Width / 2f; 2325rotationCenter.X = ChartArea.PlotAreaPosition.X + axisTitleSize.Width / 2f; 2329rotationCenter.X = ChartArea.PlotAreaPosition.Right - axisTitleSize.Width / 2f; 2391rotationCenter.X -= dX; 2396rotationCenter.X += dX; 2405rotationCenter.X += dX; 2409rotationCenter.X -= dX; 2419rotationCenter.X -= dX; 2423rotationCenter.X += dX; 2480first.X = (float)GetAxisPosition(); 2482second.X = (float)GetAxisPosition(); 2493first.X = (float)GetAxisPosition(); 2495second.X = (float)GetAxisPosition(); 2506first.X = PlotAreaPosition.X; 2508second.X = PlotAreaPosition.Right; 2519first.X = PlotAreaPosition.X; 2521second.X = PlotAreaPosition.Right; 2632first.X = axisPosition - (labelSize + markSize); 2634second.X = axisPosition; 2639first.X = axisPosition; 2641second.X = axisPosition + labelSize + markSize; 2646first.X = PlotAreaPosition.X; 2648second.X = PlotAreaPosition.Right; 2653first.X = PlotAreaPosition.X; 2655second.X = PlotAreaPosition.Right; 2782point1.X = point2.X;
Common\General\ChartGraphics.cs (58)
863focusScale.X = 0; 902points[0].X = point.X - crossSize / 2F; 904points[1].X = point.X - crossSize / 2F; 907points[2].X = point.X - crossLineWidth / 2F; 909points[3].X = point.X - crossLineWidth / 2F; 911points[4].X = point.X + crossLineWidth / 2F; 914points[5].X = point.X + crossLineWidth / 2F; 916points[6].X = point.X + crossSize / 2F; 918points[7].X = point.X + crossSize / 2F; 921points[8].X = point.X + crossLineWidth / 2F; 923points[9].X = point.X + crossLineWidth / 2F; 925points[10].X = point.X - crossLineWidth / 2F; 927points[11].X = point.X - crossLineWidth / 2F; 974focusScale.X = 0; 1006points[0].X = rect.X; 1008points[1].X = rect.X + rect.Width / 2F; 1010points[2].X = rect.Right; 1012points[3].X = rect.X + rect.Width / 2F; 1061points[0].X = rect.X; 1063points[1].X = rect.X + rect.Width / 2F; 1065points[2].X = rect.Right; 1103focusScale.X = 0; 1846rotationPoint.X = absPosition.Right; 1851rotationPoint.X = absPosition.Left; 1856rotationPoint.X = absPosition.X + absPosition.Width / 2F; 1861rotationPoint.X = absPosition.X + absPosition.Width / 2F; 1872rotationPoint.X = absPosition.X + absPosition.Width / 2F; 1928rotationPoint.X = absPosition.X + absPosition.Width / 2F; 2568 leftLine[0].X = absPositionRounded.Left; 2570 leftLine[1].X = absPositionRounded.Left; 2572 leftLine[2].X = (float)Math.Round((double)center.X - labelSize.Width/2F - 1F); 2575 rightLine[0].X = absPositionRounded.Right; 2577 rightLine[1].X = absPositionRounded.Right; 2579 rightLine[2].X = (float)Math.Round((double)center.X + labelSize.Width/2F - 1F); 2781 rotationCenter.X = rect.X + size.Width / 2; 2786 rotationCenter.X = rect.Right - size.Width / 2; 2791 rotationCenter.X = ( rect.Left + rect.Right ) / 2; 3835 focusScale.X = 0; 4678 relative.X = point.X * 100F / ((float)(_width - 1)); 4723 absolute.X = point.X * (_width - 1) / 100F; 5421 points[0].X = position.X - (float)size; 5423 points[1].X = position.X + (float)size; 5425 points[2].X = position.X; 5428 endPoint.X = position.X; 5450 points[0].X = position.X - (float)size; 5452 points[1].X = position.X + (float)size; 5454 points[2].X = position.X; 5457 endPoint.X = position.X; 5476 points[0].X = position.X - (float)shift; 5478 points[1].X = position.X - (float)shift; 5480 points[2].X = position.X - (float)shift - (float)sharp; 5484 endPoint.X = points[1].X; 5486 endPoint.X = points[2].X; 5501 points[0].X = position.X + (float)shift; 5503 points[1].X = position.X + (float)shift; 5505 points[2].X = position.X + (float)shift + (float)sharp; 5509 endPoint.X = points[1].X; 5511 endPoint.X = points[2].X;
Common\General\ChartGraphics3D.cs (15)
362 point1.X = Math.Min(point1.X, point2.X); 366 point1.X = Math.Max(point1.X, point2.X); 3580focusScale.X = 0; 3892 result.X = x1; 3898 result.X = x3; 3904 result.X = x1; 3912 result.X = x3; 3926 result.X = (b2 - b1)/(a1 - a2); 4175 boundsRectMiddlePoint.X = boundsRect.X + boundsRect.Width/2f; 4182 centralLinePoint.X = boundsRectMiddlePoint.X + 100f; 4187 centralLinePoint.X = boundsRectMiddlePoint.X; 4192 centralLinePoint.X = boundsRectMiddlePoint.X + 100f; 4199 centralLinePoint.X = (float)(centralLinePoint.Y - (boundsRectMiddlePoint.Y - Math.Tan(centralLineAngle) * boundsRectMiddlePoint.X)); 4200 centralLinePoint.X /= (float)(Math.Tan(centralLineAngle)); 4644this._coordXY.X = value;
Common\General\GridTickMarks.cs (54)
274 first.X = axisPosition; 275 second.X = axisPosition + _size; 279 first.X = axisPosition - _size - scrollBarSize; 280 second.X = axisPosition; 284 first.X = axisPosition - _size/2 - scrollBarSize; 285 second.X = axisPosition + _size/2; 301 first.X = axisPosition - _size; 302 second.X = axisPosition; 306 first.X = axisPosition; 307 second.X = axisPosition + _size + scrollBarSize; 311 first.X = axisPosition - _size/2; 312 second.X = axisPosition + _size/2 + scrollBarSize; 486first.X = (float)Axis.GetLinearPosition(current); 487 second.X = first.X; 493first.X = (float)Axis.GetLinearPosition(current); 494 second.X = first.X; 614 first.X = axisPosition; 615 second.X = axisPosition + _size; 619 first.X = axisPosition - _size - scrollBarSize; 620 second.X = axisPosition; 624 first.X = axisPosition - _size/2 - scrollBarSize; 625 second.X = axisPosition + _size/2; 641 first.X = axisPosition - _size; 642 second.X = axisPosition; 646 first.X = axisPosition; 647 second.X = axisPosition + _size + scrollBarSize; 651 first.X = axisPosition - _size/2; 652 second.X = axisPosition + _size/2 + scrollBarSize; 735first.X = (float)Axis.GetLinearPosition(position); 736 second.X = first.X; 742first.X = (float)Axis.GetLinearPosition(position); 743 second.X = first.X; 835 point1.X -= area.areaSceneWallWidth.Width; 841 point2.X += area.areaSceneWallWidth.Width; 903 point1.X = axisPosition; 904 point2.X = axisPosition + _size; 911 point1.X = axisPosition; 912 point2.X = axisPosition; 919 point1.X = axisPosition; 920 point2.X = axisPosition + _size/2; 944 point1.X = axisPosition - _size; 945 point2.X = axisPosition; 952 point1.X = axisPosition; 953 point2.X = axisPosition; 961 point1.X = axisPosition - _size/2; 962 point2.X = axisPosition; 1472 first.X = plotArea.X; 1473 second.X = plotArea.Right; 1483 first.X = (float)_axis.GetLinearPosition( current ); 1484 second.X = first.X; 1570 first.X = plotArea.X; 1571 second.X = plotArea.Right; 1582 first.X = (float)_axis.GetLinearPosition( position ); 1583 second.X = first.X;
Common\General\ImageMap.cs (1)
396pOriginal.X = this.Coordinates[index];
Common\General\Legend.cs (1)
2561 point.X += step;
Common\General\LegendColumns.cs (1)
2461 pointF.X -= 0.5f;
Common\General\Selection.cs (10)
3043first.X = (float)axis.GetAxisPosition(); 3045second.X = (float)axis.GetAxisPosition(); 3047first.X -= axis.labelSize + axis.markSize; 3052first.X = (float)axis.GetAxisPosition(); 3054second.X = (float)axis.GetAxisPosition(); 3056second.X += axis.labelSize + axis.markSize; 3061first.X = axis.PlotAreaPosition.X; 3063second.X = axis.PlotAreaPosition.Right; 3070first.X = axis.PlotAreaPosition.X; 3072second.X = axis.PlotAreaPosition.Right;
Common\General\SmartLabels.cs (6)
1505 position.X -= sizeMarker.Height / 1.75F; 1509 position.X -= sizeMarker.Height / 1.75F; 1515 position.X -= sizeMarker.Height / 1.75F; 1520 position.X += sizeMarker.Height / 1.75F; 1523 position.X += sizeMarker.Height / 1.75F; 1528 position.X += sizeMarker.Height / 1.75F;
Common\General\StripLine.cs (7)
442 point1.X = plotAreaPosition.X; 444 point2.X = plotAreaPosition.Right; 449 point1.X = (float)this.Axis.GetLinearPosition(currentPosition); 451 point2.X = point1.X; 725rotationCenter.X = rect.X + size.Width / 2 + sizeBorder.Width; 729rotationCenter.X = rect.Right - size.Width / 2 - sizeBorder.Width; 733rotationCenter.X = (rect.Left + rect.Right) / 2;
Common\General\Title.cs (1)
1649center.X = absPosition.X + absPosition.Width / 2F;
System.Windows.Forms.DataVisualization (335)
Common\Annotation\AnnotationBase.cs (6)
3166 firstPoint.X -= movingDistance.Width; 3197 firstPoint.X -= movingDistance.Width; 3203 firstPoint.X -= movingDistance.Width; 3208 anchorPoint.X -= movingDistance.Width; 3213 firstPoint.X -= movingDistance.Width; 3235 firstPoint.X = float.NaN;
Common\Annotation\CalloutAnnotation.cs (10)
1217 ellipseLocation.X -= dxAbs / 3f + (index * (dxAbs / 10f) ); 1494 lineSecondPoint.X = rectanglePosition.X; 1498 lineSecondPoint.X = rectanglePosition.Right; 1502 lineSecondPoint.X = rectanglePosition.X + rectanglePosition.Width / 2f; 1600 textLinePoint1.X = rectanglePosition.X; 1601 textLinePoint2.X = rectanglePosition.X; 1605 textLinePoint1.X = rectanglePosition.Right; 1606 textLinePoint2.X = rectanglePosition.Right; 1806 intersectionPoint.X = (pointY - firstPoint.Y) * 1824 intersectionPoint.X = pointX;
Common\Annotation\LineAnnotation.cs (5)
527 point1.X = (point1.X < point2.X) ? 0f : 100f; 528 point2.X = (point1.X < point2.X) ? 100f : 0f; 535 intersectionPoint1.X = (0f - point1.Y) * 541 intersectionPoint2.X = (100f - point1.Y) * 799 point2.X = point1.X;
Common\Annotation\PolygonAnnotation.cs (2)
605 pathPoints[pointIndex].X = rectanglePositionAbs.X + pathPoints[pointIndex].X * groupScaleX; 898 pathPoints[pointIndex].X -= movingDistance.Width;
Common\ChartTypes\AreaChart.cs (4)
297point1.X = (float)Math.Round(point1.X); 299point2.X = (float)Math.Round(point2.X); 303axisPos.X = (float)VAxis.GetPosition(this.VAxis.Crossing); 306axisPos.X = (float)Math.Round(axisPos.X);
Common\ChartTypes\BarChart.cs (7)
779 markerPosition.X = rectSize.Right; 783 markerPosition.X = rectSize.X; 1762 markerPosition.X = rectSize.Right; 1766 markerPosition.X = rectSize.X; 2047rotationCenter.X = rectLabel.X + size.Width / 2; 2051rotationCenter.X = rectLabel.Right - size.Width / 2; 2055rotationCenter.X = (rectLabel.Left + rectLabel.Right) / 2;
Common\ChartTypes\ColumnChart.cs (4)
1112 markerPosition.X = intersection.X + intersection.Width / 2f; 1239labelPosition.X = intersection.X + intersection.Width / 2f; 1353labelPosition.X = columnPosition.X + columnPosition.Width / 2f; 1361labelPosition.X = marker3DPosition[0].X;
Common\ChartTypes\FastLineChart.cs (3)
456 currentPoint.X = (float) 464 prevPoint.X = (float) 530 prevPoint.X = (float)
Common\ChartTypes\FastPointChart.cs (21)
386 currentPoint.X = (float) 454 location.X = points[0].X; 536 points[0].X = location.X - crossSize/2F; 538 points[1].X = location.X - crossSize/2F; 541 points[2].X = location.X - crossLineWidth/2F; 543 points[3].X = location.X - crossLineWidth/2F; 545 points[4].X = location.X + crossLineWidth/2F; 548 points[5].X = location.X + crossLineWidth/2F; 550 points[6].X = location.X + crossSize/2F; 552 points[7].X = location.X + crossSize/2F; 555 points[8].X = location.X + crossLineWidth/2F; 557 points[9].X = location.X + crossLineWidth/2F; 559 points[10].X = location.X - crossLineWidth/2F; 561 points[11].X = location.X - crossLineWidth/2F; 583 points[0].X = markerBounds.X; 585 points[1].X = markerBounds.X + markerBounds.Width/2F; 587 points[2].X = markerBounds.Right; 589 points[3].X = markerBounds.X + markerBounds.Width/2F; 604 points[0].X = markerBounds.X; 606 points[1].X = markerBounds.X + markerBounds.Width/2F; 608 points[2].X = markerBounds.Right;
Common\ChartTypes\FunnelChart.cs (16)
1535 labelInfo.CalloutPoint2.X -= spacing.Width / 2f; 1538 labelInfo.CalloutPoint1.X += 2; 1542 labelInfo.CalloutPoint2.X += spacing.Width / 2f; 1545 labelInfo.CalloutPoint1.X += 2; 1864 labelInfo.CalloutPoint1.X = plotAreaCenterXAbs + 1869 labelInfo.CalloutPoint1.X = plotAreaCenterXAbs + 1872 labelInfo.CalloutPoint2.X = labelInfo.Position.X; 1883 labelInfo.CalloutPoint1.X = plotAreaCenterXAbs - 1888 labelInfo.CalloutPoint1.X = plotAreaCenterXAbs - 1891 labelInfo.CalloutPoint2.X = labelInfo.Position.Right; 1964 labelInfo.CalloutPoint1.X = plotAreaCenterXAbs + 1966 labelInfo.CalloutPoint2.X = labelInfo.Position.X; 1976 labelInfo.CalloutPoint1.X = plotAreaCenterXAbs - 1978 labelInfo.CalloutPoint2.X = labelInfo.Position.Right; 2938 startIntersection.X = plotAreaPositionAbs.X + plotAreaPositionAbs.Width / 2f; 2950 endIntersection.X = plotAreaPositionAbs.X + plotAreaPositionAbs.Width / 2f;
Common\ChartTypes\KagiChart.cs (5)
535 point4.X = point2.X; 541 point1.X = (float)Math.Round(point1.X); 543 point2.X = (float)Math.Round(point2.X); 545 point3.X = (float)Math.Round(point3.X); 549 point4.X = (float)Math.Round(point4.X);
Common\ChartTypes\LineChart.cs (8)
438 dataPointPos[pointIndex].X = dataPointPos[pointIndex - 1].X + minDifference; 442 dataPointPos[pointIndex].X = dataPointPos[pointIndex - 1].X - minDifference; 876first.X = (first.X + second.X) / 2f; 899second.X = (first.X + second.X) / 2f; 1018intersectionPoint.X = (pointY - firstPoint.Y) * 1036intersectionPoint.X = pointX; 2052 thirdPoint.X = (float)Math.Round(thirdPoint.X, decimals); 2055 fourthPoint.X = (float)Math.Round(fourthPoint.X, decimals);
Common\ChartTypes\PieChart.cs (8)
1034 point.positionRel.X = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * rectangle.Width * expShift / 2 + middlePoint.X; 2737point.positionRel.X = points[(int)PiePoints.TopLabelLine].X; 4949 position.X = _innerPlotPosition.Right + _chartAreaPosition.Width * this._labelLineSize; 4953 position.X = _innerPlotPosition.Left - _chartAreaPosition.Width * this._labelLineSize; 4975 position.X += correct; 4979 position.X -= correct; 5462labelPoint.X = points[(int)PiePoints.TopLabelLineout].X + 10; 5482labelPoint.X = points[(int)PiePoints.TopLabelLineout].X - 10;
Common\ChartTypes\PointChart.cs (14)
431 markerPosition.X = (float)HAxis.GetPosition( (double)index ); 435 markerPosition.X = (float)HAxis.GetPosition( point.XValue ); 440 markerPosition.X += (float)ShiftedX; 795position.X -= sizeMarker.Height / 1.75F + horizontalSpacing / 2f; 799position.X -= sizeMarker.Height / 1.75F + horizontalSpacing / 2f; 805position.X -= sizeMarker.Height / 1.75F + horizontalSpacing / 2f; 811position.X += sizeMarker.Height / 1.75F + horizontalSpacing / 2f; 815position.X += sizeMarker.Height / 1.75F + horizontalSpacing / 2f; 821position.X += sizeMarker.Height / 1.75F + horizontalSpacing / 2f; 1164 markerPosition.X = (float)HAxis.GetLinearPosition(xValue); // No Log transformation required. Done above! 1168 markerPosition.X += (float)ShiftedX; 1712 markerPosition.X = (float)hAxis.GetPosition( (double)index ); 1716 markerPosition.X = (float)hAxis.GetPosition( point.XValue ); 1721 markerPosition.X += (float)ShiftedX;
Common\ChartTypes\RadarChart.cs (7)
936 middlePoint.X = (p1.X + p2.X) / 2f; 1163position.X -= sizeMarker.Height / 1.75F; 1167position.X -= sizeMarker.Height / 1.75F; 1173position.X -= sizeMarker.Height / 1.75F; 1179position.X += sizeMarker.Height / 1.75F; 1183position.X += sizeMarker.Height / 1.75F; 1189position.X += sizeMarker.Height / 1.75F;
Common\ChartTypes\StackedAreaChart.cs (18)
497 axisPos.X = (float)VAxis.GetPosition(this.VAxis.Crossing); 553 firstPoint.X = xPosition; 567 secondPoint.X = xPosition; 578 firstPoint.X = (float)Math.Round(firstPoint.X); 579 secondPoint.X = (float)Math.Round(secondPoint.X); 819 axisPos.X = (float)VAxis.GetPosition(this.VAxis.Crossing); 861 firstPoint.X = xPosition; 874 secondPoint.X = xPosition; 887 firstPoint.X = (float)Math.Round(firstPoint.X); 888 secondPoint.X = (float)Math.Round(secondPoint.X); 925 axisPos.X = (float)VAxis.GetPosition(this.VAxis.Crossing); 967 firstPoint.X = xPosition; 980 secondPoint.X = xPosition; 1028labelPosition.X = secondPoint.X; 1371 thirdPoint.X = (float)((firstPoint.xCenterVal == 0.0) ? firstPoint.xPosition : firstPoint.xCenterVal); 1381 thirdPoint.X = thirdPointPosition.X; 1390 fourthPoint.X = (float)((secondPoint.xCenterVal == 0.0) ? secondPoint.xPosition : secondPoint.xCenterVal); 1400 fourthPoint.X = fourthPointPosition.X;
Common\ChartTypes\StackedBarChart.cs (7)
1078labelPosition.X = rectangle.X + rectangle.Width / 2f; 1128labelPosition.X = rectangle.X + sizeFont.Width / 2f; 1132labelPosition.X = rectangle.Right - sizeFont.Width / 2f; 1136labelPosition.X = rectangle.Right + sizeFont.Width / 2f; 1960rotationCenter.X = rectLabel.X + size.Width / 2; 1964rotationCenter.X = rectLabel.Right - size.Width / 2; 1968rotationCenter.X = (rectLabel.Left + rectLabel.Right) / 2;
Common\ChartTypes\StackedColumnChart.cs (4)
1158labelPosition.X = rectangle.X + rectangle.Width / 2f; 1220absPosition.X = (float)Math.Ceiling(absPosition.X) + 1f; 1874labelPosition.X = rectangle.X + rectangle.Width / 2f; 1882labelPosition.X = marker3DPosition[0].X;
Common\ChartTypes\StockChart.cs (4)
554 markerPosition.X = xPosition; 1381 markerPosition.X = xPosition; 1861 markerPosition.X = (float)hAxis.GetPosition( (double)index ); 1865 markerPosition.X = (float)hAxis.GetPosition( point.XValue );
Common\General\Axis.cs (28)
2008center.X = titlePosition.X + titlePosition.Width / 2F; 2313rotationCenter.X = ChartArea.PlotAreaPosition.X + axisTitleSize.Width / 2f; 2317rotationCenter.X = ChartArea.PlotAreaPosition.Right - axisTitleSize.Width / 2f; 2325rotationCenter.X = ChartArea.PlotAreaPosition.X + axisTitleSize.Width / 2f; 2329rotationCenter.X = ChartArea.PlotAreaPosition.Right - axisTitleSize.Width / 2f; 2391rotationCenter.X -= dX; 2396rotationCenter.X += dX; 2405rotationCenter.X += dX; 2409rotationCenter.X -= dX; 2419rotationCenter.X -= dX; 2423rotationCenter.X += dX; 2480first.X = (float)GetAxisPosition(); 2482second.X = (float)GetAxisPosition(); 2493first.X = (float)GetAxisPosition(); 2495second.X = (float)GetAxisPosition(); 2506first.X = PlotAreaPosition.X; 2508second.X = PlotAreaPosition.Right; 2519first.X = PlotAreaPosition.X; 2521second.X = PlotAreaPosition.Right; 2632first.X = axisPosition - (labelSize + markSize); 2634second.X = axisPosition; 2639first.X = axisPosition; 2641second.X = axisPosition + labelSize + markSize; 2646first.X = PlotAreaPosition.X; 2648second.X = PlotAreaPosition.Right; 2653first.X = PlotAreaPosition.X; 2655second.X = PlotAreaPosition.Right; 2782point1.X = point2.X;
Common\General\ChartGraphics.cs (58)
863focusScale.X = 0; 902points[0].X = point.X - crossSize / 2F; 904points[1].X = point.X - crossSize / 2F; 907points[2].X = point.X - crossLineWidth / 2F; 909points[3].X = point.X - crossLineWidth / 2F; 911points[4].X = point.X + crossLineWidth / 2F; 914points[5].X = point.X + crossLineWidth / 2F; 916points[6].X = point.X + crossSize / 2F; 918points[7].X = point.X + crossSize / 2F; 921points[8].X = point.X + crossLineWidth / 2F; 923points[9].X = point.X + crossLineWidth / 2F; 925points[10].X = point.X - crossLineWidth / 2F; 927points[11].X = point.X - crossLineWidth / 2F; 974focusScale.X = 0; 1006points[0].X = rect.X; 1008points[1].X = rect.X + rect.Width / 2F; 1010points[2].X = rect.Right; 1012points[3].X = rect.X + rect.Width / 2F; 1061points[0].X = rect.X; 1063points[1].X = rect.X + rect.Width / 2F; 1065points[2].X = rect.Right; 1103focusScale.X = 0; 1846rotationPoint.X = absPosition.Right; 1851rotationPoint.X = absPosition.Left; 1856rotationPoint.X = absPosition.X + absPosition.Width / 2F; 1861rotationPoint.X = absPosition.X + absPosition.Width / 2F; 1872rotationPoint.X = absPosition.X + absPosition.Width / 2F; 1928rotationPoint.X = absPosition.X + absPosition.Width / 2F; 2568 leftLine[0].X = absPositionRounded.Left; 2570 leftLine[1].X = absPositionRounded.Left; 2572 leftLine[2].X = (float)Math.Round((double)center.X - labelSize.Width/2F - 1F); 2575 rightLine[0].X = absPositionRounded.Right; 2577 rightLine[1].X = absPositionRounded.Right; 2579 rightLine[2].X = (float)Math.Round((double)center.X + labelSize.Width/2F - 1F); 2781 rotationCenter.X = rect.X + size.Width / 2; 2786 rotationCenter.X = rect.Right - size.Width / 2; 2791 rotationCenter.X = ( rect.Left + rect.Right ) / 2; 3835 focusScale.X = 0; 4678 relative.X = point.X * 100F / ((float)(_width - 1)); 4723 absolute.X = point.X * (_width - 1) / 100F; 5421 points[0].X = position.X - (float)size; 5423 points[1].X = position.X + (float)size; 5425 points[2].X = position.X; 5428 endPoint.X = position.X; 5450 points[0].X = position.X - (float)size; 5452 points[1].X = position.X + (float)size; 5454 points[2].X = position.X; 5457 endPoint.X = position.X; 5476 points[0].X = position.X - (float)shift; 5478 points[1].X = position.X - (float)shift; 5480 points[2].X = position.X - (float)shift - (float)sharp; 5484 endPoint.X = points[1].X; 5486 endPoint.X = points[2].X; 5501 points[0].X = position.X + (float)shift; 5503 points[1].X = position.X + (float)shift; 5505 points[2].X = position.X + (float)shift + (float)sharp; 5509 endPoint.X = points[1].X; 5511 endPoint.X = points[2].X;
Common\General\ChartGraphics3D.cs (15)
362 point1.X = Math.Min(point1.X, point2.X); 366 point1.X = Math.Max(point1.X, point2.X); 3580focusScale.X = 0; 3892 result.X = x1; 3898 result.X = x3; 3904 result.X = x1; 3912 result.X = x3; 3926 result.X = (b2 - b1)/(a1 - a2); 4175 boundsRectMiddlePoint.X = boundsRect.X + boundsRect.Width/2f; 4182 centralLinePoint.X = boundsRectMiddlePoint.X + 100f; 4187 centralLinePoint.X = boundsRectMiddlePoint.X; 4192 centralLinePoint.X = boundsRectMiddlePoint.X + 100f; 4199 centralLinePoint.X = (float)(centralLinePoint.Y - (boundsRectMiddlePoint.Y - Math.Tan(centralLineAngle) * boundsRectMiddlePoint.X)); 4200 centralLinePoint.X /= (float)(Math.Tan(centralLineAngle)); 4644this._coordXY.X = value;
Common\General\GridTickMarks.cs (54)
274 first.X = axisPosition; 275 second.X = axisPosition + _size; 279 first.X = axisPosition - _size - scrollBarSize; 280 second.X = axisPosition; 284 first.X = axisPosition - _size/2 - scrollBarSize; 285 second.X = axisPosition + _size/2; 301 first.X = axisPosition - _size; 302 second.X = axisPosition; 306 first.X = axisPosition; 307 second.X = axisPosition + _size + scrollBarSize; 311 first.X = axisPosition - _size/2; 312 second.X = axisPosition + _size/2 + scrollBarSize; 486first.X = (float)Axis.GetLinearPosition(current); 487 second.X = first.X; 493first.X = (float)Axis.GetLinearPosition(current); 494 second.X = first.X; 614 first.X = axisPosition; 615 second.X = axisPosition + _size; 619 first.X = axisPosition - _size - scrollBarSize; 620 second.X = axisPosition; 624 first.X = axisPosition - _size/2 - scrollBarSize; 625 second.X = axisPosition + _size/2; 641 first.X = axisPosition - _size; 642 second.X = axisPosition; 646 first.X = axisPosition; 647 second.X = axisPosition + _size + scrollBarSize; 651 first.X = axisPosition - _size/2; 652 second.X = axisPosition + _size/2 + scrollBarSize; 735first.X = (float)Axis.GetLinearPosition(position); 736 second.X = first.X; 742first.X = (float)Axis.GetLinearPosition(position); 743 second.X = first.X; 835 point1.X -= area.areaSceneWallWidth.Width; 841 point2.X += area.areaSceneWallWidth.Width; 903 point1.X = axisPosition; 904 point2.X = axisPosition + _size; 911 point1.X = axisPosition; 912 point2.X = axisPosition; 919 point1.X = axisPosition; 920 point2.X = axisPosition + _size/2; 944 point1.X = axisPosition - _size; 945 point2.X = axisPosition; 952 point1.X = axisPosition; 953 point2.X = axisPosition; 961 point1.X = axisPosition - _size/2; 962 point2.X = axisPosition; 1472 first.X = plotArea.X; 1473 second.X = plotArea.Right; 1483 first.X = (float)_axis.GetLinearPosition( current ); 1484 second.X = first.X; 1570 first.X = plotArea.X; 1571 second.X = plotArea.Right; 1582 first.X = (float)_axis.GetLinearPosition( position ); 1583 second.X = first.X;
Common\General\ImageMap.cs (1)
396pOriginal.X = this.Coordinates[index];
Common\General\Legend.cs (1)
2561 point.X += step;
Common\General\LegendColumns.cs (1)
2461 pointF.X -= 0.5f;
Common\General\Selection.cs (10)
3043first.X = (float)axis.GetAxisPosition(); 3045second.X = (float)axis.GetAxisPosition(); 3047first.X -= axis.labelSize + axis.markSize; 3052first.X = (float)axis.GetAxisPosition(); 3054second.X = (float)axis.GetAxisPosition(); 3056second.X += axis.labelSize + axis.markSize; 3061first.X = axis.PlotAreaPosition.X; 3063second.X = axis.PlotAreaPosition.Right; 3070first.X = axis.PlotAreaPosition.X; 3072second.X = axis.PlotAreaPosition.Right;
Common\General\SmartLabels.cs (6)
1505 position.X -= sizeMarker.Height / 1.75F; 1509 position.X -= sizeMarker.Height / 1.75F; 1515 position.X -= sizeMarker.Height / 1.75F; 1520 position.X += sizeMarker.Height / 1.75F; 1523 position.X += sizeMarker.Height / 1.75F; 1528 position.X += sizeMarker.Height / 1.75F;
Common\General\StripLine.cs (7)
442 point1.X = plotAreaPosition.X; 444 point2.X = plotAreaPosition.Right; 449 point1.X = (float)this.Axis.GetLinearPosition(currentPosition); 451 point2.X = point1.X; 725rotationCenter.X = rect.X + size.Width / 2 + sizeBorder.Width; 729rotationCenter.X = rect.Right - size.Width / 2 - sizeBorder.Width; 733rotationCenter.X = (rect.Left + rect.Right) / 2;
Common\General\Title.cs (1)
1649center.X = absPosition.X + absPosition.Width / 2F;
1509 references to X
System.Drawing (50)
commonui\System\Drawing\Advanced\GPPOINT.cs (1)
27 X = (int) pt.X;
commonui\System\Drawing\Advanced\GPPOINTF.cs (1)
24X = pt.X;
commonui\System\Drawing\Advanced\GraphicsPath.cs (9)
490pt.X, 604pt.X, 689AddLine(pt1.X, pt1.Y, pt2.X, pt2.Y); 833AddBezier(pt1.X, pt1.Y, pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y); 1363GPRECTF rectf = new GPRECTF(origin.X, origin.Y, 0, 0);
commonui\System\Drawing\Advanced\Matrix.cs (4)
375status = SafeNativeMethods.Gdip.GdipTranslateMatrix(new HandleRef(this, nativeMatrix), point.X, point.Y, order); 377status |= SafeNativeMethods.Gdip.GdipTranslateMatrix(new HandleRef(this, nativeMatrix), -point.X, -point.Y, order); 380status = SafeNativeMethods.Gdip.GdipTranslateMatrix(new HandleRef(this, nativeMatrix), -point.X, -point.Y, order); 382status |= SafeNativeMethods.Gdip.GdipTranslateMatrix(new HandleRef(this, nativeMatrix), point.X, point.Y, order);
commonui\System\Drawing\Advanced\PathGradientBrush.cs (1)
823int status = SafeNativeMethods.Gdip.GdipSetPathGradientFocusScales(new HandleRef(this, this.NativeBrush), value.X, value.Y);
commonui\System\Drawing\Advanced\PointF.cs (10)
142/// whether the values of the <see cref='System.Drawing.PointF.X'/> and <see cref='System.Drawing.PointF.Y'/> properties of the two <see cref='System.Drawing.PointF'/> 147return left.X == right.X && left.Y == right.Y; 154/// of the <see cref='System.Drawing.PointF.X'/> or <see cref='System.Drawing.PointF.Y'/> properties of the two 169return new PointF(pt.X + sz.Width, pt.Y + sz.Height); 178return new PointF(pt.X - sz.Width, pt.Y - sz.Height); 187return new PointF(pt.X + sz.Width, pt.Y + sz.Height); 196return new PointF(pt.X - sz.Width, pt.Y - sz.Height); 207comp.X == this.X &&
commonui\System\Drawing\Advanced\RectangleF.cs (4)
65this.x = location.X; 99X = value.X; 321return Contains(pt.X, pt.Y); 453Offset(pos.X, pos.Y);
commonui\System\Drawing\Advanced\SizeF.cs (1)
67width = pt.X;
commonui\System\Drawing\Graphics.cs (15)
1166DrawLine(pen, pt1.X, pt1.Y, pt2.X, pt2.Y); 1338DrawBezier(pen, pt1.X, pt1.Y, pt2.X, pt2.Y, pt3.X, pt3.Y, pt4.X, pt4.Y); 2463DrawString(s, font, brush, new RectangleF(point.X, point.Y, 0, 0), null); 2477DrawString(s, font, brush, new RectangleF(point.X, point.Y, 0, 0), format); 2550grf.X = origin.X; 2752DrawImage(image, point.X, point.Y); 4153cumulTransform.Translate(context.TransformOffset.X, context.TransformOffset.Y); 4160cumulClip.Translate(currentOffset.X, currentOffset.Y); 4161totalOffset.X += currentOffset.X; 4184cumulClip.Translate(-totalOffset.X, -totalOffset.Y); 4333int status = SafeNativeMethods.Gdip.GdipIsVisiblePoint(new HandleRef(this, this.NativeGraphics), point.X, point.Y, out isVisible);
commonui\System\Drawing\Point.cs (3)
209return new Point((int)Math.Ceiling(value.X), (int)Math.Ceiling(value.Y)); 218return new Point((int)value.X, (int)value.Y); 227return new Point((int)Math.Round(value.X), (int)Math.Round(value.Y));
commonui\System\Drawing\Region.cs (1)
817int status = SafeNativeMethods.Gdip.GdipIsVisibleRegionPoint(new HandleRef(this, nativeRegion), point.X, point.Y,
System.Web.DataVisualization (726)
Common\Annotation\AnnotationBase.cs (12)
2138 handlePosition.X - markerSizeRel.Width/2f, 2366 anchorX = this.AnchorDataPoint.positionRel.X; 2422 horizAxis.PositionToValue(this._anchorDataPoint2.positionRel.X, false) - 2423 horizAxis.PositionToValue(this._anchorDataPoint.positionRel.X, false); 2645 relativeX += groupLocation.X; 2762 relativeX = groupLocation.X; 2810 float maxAnchorOffsetAbs = Math.Max(anchorOffsetAbs.X, anchorOffsetAbs.Y); 2880 currentAnchorLocationRel = new PointF(anchorLocation.X, anchorLocation.Y); 2912 double newAnchorX = anchorPoint.X; 2919 this.currentAnchorLocationRel = new PointF(anchorPoint.X, anchorPoint.Y); 2987 !float.IsNaN(anchorPoint.X) ) 2989 newRight = horizAxis.PositionToValue(anchorPoint.X + position.Width, false);
Common\Annotation\ArrowAnnotation.cs (29)
314 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 317 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y)); 320 if( float.IsNaN(firstPoint.X) || 322 float.IsNaN(secondPoint.X) || 396 float deltaX = secondPoint.X - firstPoint.X; 410 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y - this.ArrowSize*pointerRatio), 411 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y - this.ArrowSize), 412 new PointF(firstPoint.X + arrowLength, firstPoint.Y - this.ArrowSize), 413 new PointF(firstPoint.X + arrowLength, firstPoint.Y + this.ArrowSize), 414 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y + this.ArrowSize), 415 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y + this.ArrowSize*pointerRatio) }; 421 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y - this.ArrowSize*pointerRatio), 422 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y - this.ArrowSize), 423 new PointF(firstPoint.X + arrowLength - this.ArrowSize*pointerRatio, firstPoint.Y - this.ArrowSize), 424 new PointF(firstPoint.X + arrowLength - this.ArrowSize*pointerRatio, firstPoint.Y - this.ArrowSize*pointerRatio), 425 new PointF(firstPoint.X + arrowLength, firstPoint.Y), 426 new PointF(firstPoint.X + arrowLength - this.ArrowSize*pointerRatio, firstPoint.Y + this.ArrowSize*pointerRatio), 427 new PointF(firstPoint.X + arrowLength - this.ArrowSize*pointerRatio, firstPoint.Y + this.ArrowSize), 428 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y + this.ArrowSize), 429 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y + this.ArrowSize*pointerRatio) }; 436 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y - this.ArrowSize*pointerRatio), 437 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y - this.ArrowSize), 438 new PointF(firstPoint.X + arrowLength, firstPoint.Y - this.ArrowSize*tailRatio), 439 new PointF(firstPoint.X + arrowLength - this.ArrowSize*tailRatio, firstPoint.Y), 440 new PointF(firstPoint.X + arrowLength, firstPoint.Y + this.ArrowSize*tailRatio), 441 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y + this.ArrowSize), 442 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y + this.ArrowSize*pointerRatio) };
Common\Annotation\CalloutAnnotation.cs (61)
651 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 654 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y)); 838 if(!float.IsNaN(anchorPoint.X) && !float.IsNaN(anchorPoint.Y)) 841 if(!rectanglePosition.Contains(anchorPoint.X, anchorPoint.Y)) 844 PointF anchorPointAbs = graphics.GetAbsolutePoint(new PointF(anchorPoint.X, anchorPoint.Y)); 856 float deltaX = point.X - anchorPointAbs.X; 916 if(!float.IsNaN(anchorPoint.X) && !float.IsNaN(anchorPoint.Y)) 926 if(!inflatedPosition.Contains(anchorPoint.X, anchorPoint.Y)) 934 PointF anchorPointAbs = graphics.GetAbsolutePoint(new PointF(anchorPoint.X, anchorPoint.Y)); 942 if(anchorPoint.X < rectanglePosition.X && 953 else if(anchorPoint.X >= rectanglePosition.X && 954 anchorPoint.X <= rectanglePosition.Right && 965 else if(anchorPoint.X > rectanglePosition.Right && 976 else if(anchorPoint.X > rectanglePosition.Right && 988 else if(anchorPoint.X > rectanglePosition.Right && 999 else if(anchorPoint.X >= rectanglePosition.X && 1000 anchorPoint.X <= rectanglePosition.Right && 1011 else if(anchorPoint.X < rectanglePosition.X && 1022 else if(anchorPoint.X < rectanglePosition.X && 1109 if(!float.IsNaN(anchorPoint.X) && !float.IsNaN(anchorPoint.Y)) 1112 if(!rectanglePosition.Contains(anchorPoint.X, anchorPoint.Y)) 1126 new PointF(anchorPoint.X, anchorPoint.Y)); 1130 float dxAbs = anchorPointAbs.X - cloudCenterAbs.X; 1137 if(point.X < rectanglePositionAbs.X) 1141 else if(point.X > rectanglePositionAbs.Right) 1149 if(point.X < rectanglePositionAbs.X) 1153 else if(point.X > rectanglePositionAbs.Right) 1160 if(anchorPoint.X < rectanglePosition.X) 1170 SizeF size = new SizeF(Math.Abs(cloudCenterAbs.X - point.X), Math.Abs(cloudCenterAbs.Y - point.Y)); 1189 ellipseLocation.X - ellipseSize.Width / 2f, 1308 if(!float.IsNaN(anchorPoint.X) && !float.IsNaN(anchorPoint.Y)) 1311 if(!rectanglePosition.Contains(anchorPoint.X, anchorPoint.Y)) 1332 points1[2] = new PointF(anchorPointAbs.X, anchorPointAbs.Y); 1334 if(anchorPoint.X < rectanglePosition.X) 1339 points2[2] = new PointF(anchorPointAbs.X, anchorPointAbs.Y); 1342 else if(anchorPoint.X > rectanglePosition.Right) 1347 points2[2] = new PointF(anchorPointAbs.X, anchorPointAbs.Y); 1356 points1[2] = new PointF(anchorPointAbs.X, anchorPointAbs.Y); 1358 if(anchorPoint.X < rectanglePosition.X) 1363 points2[2] = new PointF(anchorPointAbs.X, anchorPointAbs.Y); 1366 else if(anchorPoint.X > rectanglePosition.Right) 1371 points2[2] = new PointF(anchorPointAbs.X, anchorPointAbs.Y); 1377 if(anchorPoint.X < rectanglePosition.X) 1382 points2[2] = new PointF(anchorPointAbs.X, anchorPointAbs.Y); 1385 else if(anchorPoint.X > rectanglePosition.Right) 1390 points2[2] = new PointF(anchorPointAbs.X, anchorPointAbs.Y); 1486 if(!float.IsNaN(anchorPoint.X) && !float.IsNaN(anchorPoint.Y)) 1489 if(!rectanglePosition.Contains(anchorPoint.X, anchorPoint.Y)) 1492 if(anchorPoint.X < rectanglePosition.X) 1496 else if(anchorPoint.X > rectanglePosition.Right) 1598 if(anchorPoint.X < rectanglePosition.X) 1807 (secondPoint.X - firstPoint.X) / 1809 firstPoint.X; 1825 intersectionPoint.Y = (pointX - firstPoint.X) * 1827 (secondPoint.X - firstPoint.X) +
Common\Annotation\GroupAnnotation.cs (3)
921 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 924 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y));
Common\Annotation\ImageAnnotation.cs (3)
525 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 528 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y));
Common\Annotation\LineAnnotation.cs (18)
520 if(Math.Round(point1.X , 3) == Math.Round(point2.X, 3)) 527 point1.X = (point1.X < point2.X) ? 0f : 100f; 528 point2.X = (point1.X < point2.X) ? 100f : 0f; 536 (point2.X - point1.X) / 538 point1.X; 542 (point2.X - point1.X) / 544 point1.X; 569 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 572 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y)); 578 if( float.IsNaN(firstPoint.X) || 580 float.IsNaN(secondPoint.X) || 799 point2.X = point1.X;
Common\Annotation\PolygonAnnotation.cs (5)
527_pathPoints.Add(new AnnotationPathPoint(points[index].X, points[index].Y, types[index])); 566 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 569 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y)); 605 pathPoints[pointIndex].X = rectanglePositionAbs.X + pathPoints[pointIndex].X * groupScaleX;
Common\Annotation\RectangleAnnotation.cs (6)
389 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 392 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y)); 627 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 630 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y));
Common\Annotation\TextAnnotation.cs (3)
419 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 422 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y));
Common\ChartTypes\AreaChart.cs (27)
297point1.X = (float)Math.Round(point1.X); 299point2.X = (float)Math.Round(point2.X); 306axisPos.X = (float)Math.Round(axisPos.X); 339path.AddLine(point1.X, axisPos.Y, point1.X, point1.Y); 348path.AddLine(point2.X, point2.Y, point2.X, axisPos.Y); 426if (!(points[pointIndex - 1].X == points[pointIndex].X || 451areaPath.AddLine(point1.X, axisPos.Y, point1.X, point1.Y); 496mapAreaPath.AddLine(point1.X, axisPos.Y, point1.X, point1.Y); 506mapAreaPath.AddLine(point2.X, point2.Y, point2.X, axisPos.Y); 507mapAreaPath.AddLine(point2.X, axisPos.Y, point1.X, axisPos.Y); 516coord[2 * i] = pointNew.X; 572coord[2 * i] = pointNew.X; 602 areaPath.AddLine(areaPath.GetLastPoint().X, areaPath.GetLastPoint().Y, areaPath.GetLastPoint().X, axisPos.Y); 806 dp1.xPosition = splinePoints[pIndex - 1].X; 811 dp2.xPosition = splinePoints[pIndex].X; 818 dp2.xPosition = splinePoints[pIndex - 1].X; 823 dp1.xPosition = splinePoints[pIndex].X; 1046 if(float.IsNaN(thirdPoint.X) || 1048 float.IsNaN(fourthPoint.X) ||
Common\ChartTypes\BarChart.cs (6)
1116 common.HotRegionsList.AddHotRegion( insertIndex, graph, markerPosition.X, markerPosition.Y, relativeMarkerSize.Width/2f, point, seriesName, pointIndex ); 1123 new RectangleF(markerPosition.X - relativeMarkerSize.Width/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.Width, relativeMarkerSize.Height), 1775 marker3DPosition[0] = new Point3D(markerPosition.X, markerPosition.Y, (float)(pointEx.zPosition + pointEx.depth/2f)); 2083 new Point3D(rotationCenter.X, rotationCenter.Y, pointEx.zPosition + pointEx.depth), 2084 new Point3D(rotationCenter.X - 20f, rotationCenter.Y, pointEx.zPosition + pointEx.depth) }; 2118rotationCenter.X - sizeLabel.Width / 2,
Common\ChartTypes\ColumnChart.cs (5)
1116 point.positionRel = new PointF(markerPosition.X, markerPosition.Y); 1152 new RectangleF(markerPosition.X, markerPosition.Y, markerSize.Width, markerSize.Height)); 1173 circCoord[0] = markerPosition.X; 1191 new RectangleF(markerPosition.X - relativeMarkerSize.Width/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.Width, relativeMarkerSize.Height), 1358marker3DPosition[0] = new Point3D(labelPosition.X, labelPosition.Y, (float)(pointEx.zPosition + pointEx.depth));
Common\ChartTypes\FastLineChart.cs (8)
485 prevPoint.X, 487 prevPoint.X, 508 prevPoint.X, 510 currentPoint.X, 548 prevPoint.X, 550 prevPoint.X, 606 points[0] = new Point3D(firstPoint.X, firstPoint.Y, seriesZCoordinate); 607 points[1] = new Point3D(secondPoint.X, secondPoint.Y, seriesZCoordinate);
Common\ChartTypes\FastPointChart.cs (14)
452 points[0] = new Point3D(location.X, location.Y, this.seriesZCoordinate); 461 location.X - markerSize / 2f, location.Y - markerSize / 2f, markerSize, markerSize); 536 points[0].X = location.X - crossSize/2F; 538 points[1].X = location.X - crossSize/2F; 541 points[2].X = location.X - crossLineWidth/2F; 543 points[3].X = location.X - crossLineWidth/2F; 545 points[4].X = location.X + crossLineWidth/2F; 548 points[5].X = location.X + crossLineWidth/2F; 550 points[6].X = location.X + crossSize/2F; 552 points[7].X = location.X + crossSize/2F; 555 points[8].X = location.X + crossLineWidth/2F; 557 points[9].X = location.X + crossLineWidth/2F; 559 points[10].X = location.X - crossLineWidth/2F; 561 points[11].X = location.X - crossLineWidth/2F;
Common\ChartTypes\FunnelChart.cs (14)
602 startIntersection.X) * 2f; 604 endIntersection.X) * 2f; 1062 intersection.X, intersection.Y); 1064 intersection.X, intersection.Y, 1065 intersection.X, location + height); 1135 intersection.X, location + height, 1136 intersection.X, intersection.Y); 1138 intersection.X, intersection.Y, 1527 !float.IsNaN(labelInfo.CalloutPoint1.X) && 1529 !float.IsNaN(labelInfo.CalloutPoint2.X) && 2936 if(startIntersection.X > (plotAreaPositionAbs.X + plotAreaPositionAbs.Width / 2f) ) 2948 if(endIntersection.X > (plotAreaPositionAbs.X + plotAreaPositionAbs.Width / 2f)) 2955 startIntersection.X) * 2f; 2957 endIntersection.X) * 2f;
Common\ChartTypes\KagiChart.cs (7)
501 PointF point2 = new PointF(points[pointIndex].X, points[pointIndex - 1].Y); 535 point4.X = point2.X; 541 point1.X = (float)Math.Round(point1.X); 543 point2.X = (float)Math.Round(point2.X); 545 point3.X = (float)Math.Round(point3.X); 549 point4.X = (float)Math.Round(point4.X); 613coord[2 * i] = pointNew.X;
Common\ChartTypes\LineChart.cs (57)
434 if( Math.Abs(dataPointPos[pointIndex - 1].X - dataPointPos[pointIndex].X ) < minDifference ) 436 if(dataPointPos[pointIndex].X > dataPointPos[pointIndex - 1].X) 438 dataPointPos[pointIndex].X = dataPointPos[pointIndex - 1].X + minDifference; 442 dataPointPos[pointIndex].X = dataPointPos[pointIndex - 1].X - minDifference; 876first.X = (first.X + second.X) / 2f; 879if (Math.Abs(first.X - second.X) > Math.Abs(first.Y - second.Y)) 881path.AddLine(first.X, first.Y - width, second.X, second.Y - width); 882path.AddLine(second.X, second.Y + width, first.X, first.Y + width); 887path.AddLine(first.X - width, first.Y, second.X - width, second.Y); 888path.AddLine(second.X + width, second.Y, first.X + width, first.Y); 899second.X = (first.X + second.X) / 2f; 908if (Math.Abs(first.X - second.X) > Math.Abs(first.Y - second.Y)) 910path.AddLine(first.X, first.Y - width, second.X, second.Y - width); 911path.AddLine(second.X, second.Y + width, first.X, first.Y + width); 916path.AddLine(first.X - width, first.Y, second.X - width, second.Y); 917path.AddLine(second.X + width, second.Y, first.X + width, first.Y); 954coord[2 * i] = pointNew.X; 968return point.X <= -maxGDIRange || point.X >= maxGDIRange || point.Y <= -maxGDIRange || point.Y >= maxGDIRange; 987bool topBottomLine = (Math.Abs(pt2.Y - pt1.Y) > Math.Abs(pt2.X - pt1.X)); 1019(secondPoint.X - firstPoint.X) / 1021firstPoint.X; 1037intersectionPoint.Y = (pointX - firstPoint.X) * 1039(secondPoint.X - firstPoint.X) + 2052 thirdPoint.X = (float)Math.Round(thirdPoint.X, decimals); 2055 fourthPoint.X = (float)Math.Round(fourthPoint.X, decimals); 2069 PointF prevThirdPoint = new PointF(thirdPoint.X, thirdPoint.Y); 2070 PointF prevFourthPoint = new PointF(fourthPoint.X, fourthPoint.Y); 2099 new PointF(thirdPoint.X, thirdPoint.Y), 2100 new PointF(fourthPoint.X, fourthPoint.Y), 2105 thirdPoint = new PointF(prevThirdPoint.X, prevThirdPoint.Y); 2106 fourthPoint = new PointF(prevFourthPoint.X, prevFourthPoint.Y); 2122 (thirdPoint.X - fourthPoint.X) / 2124 fourthPoint.X; 2160 (thirdPoint.X - fourthPoint.X) / 2162 fourthPoint.X; 2387 thirdPoint = new PointF(prevThirdPoint.X, prevThirdPoint.Y); 2388 fourthPoint = new PointF(prevFourthPoint.X, prevFourthPoint.Y);
Common\ChartTypes\PieChart.cs (29)
802 rectangle = new RectangleF( middlePoint.X - relativeSize.Width / 2, middlePoint.Y - relativeSize.Height / 2, relativeSize.Width, relativeSize.Height ); 1034 point.positionRel.X = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * rectangle.Width * expShift / 2 + middlePoint.X; 1242 x = (float)Math.Cos( (startAngle + sweepAngle / 2) * Math.PI / 180 ) * width + middlePoint.X; 1309 float x1 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.Width * expShift / 2 + middlePoint.X; 1312 float x2 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.Width * shift * expShift + middlePoint.X; 1343x3Overlap = -relativeSize.Width * shift * expShift + middlePoint.X - relativeSize.Width / 10 * labelsHorizontalLineSize; 1344x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.Width * shift * expShift + middlePoint.X - relativeSize.Width / 10 * labelsHorizontalLineSize; 1360x3Overlap = relativeSize.Width * shift * expShift + middlePoint.X + relativeSize.Width / 10 * labelsHorizontalLineSize; 1361x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.Width * shift * expShift + middlePoint.X + relativeSize.Width / 10 * labelsHorizontalLineSize; 1489 labelRect.Width = labelPosition.X - area.Position.X; 1494 labelRect.X = labelPosition.X; 1496 labelRect.Width = area.Position.Right - labelPosition.X; 1720 x3 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.Width * shift * expShift + middlePoint.X - relativeSize.Width / 10 * labelsHorizontalLineSize; 1724 x3 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.Width * shift * expShift + middlePoint.X + relativeSize.Width / 10 * labelsHorizontalLineSize; 1753 float xOverlap = -relativeSize.Width * shift * expShift + middlePoint.X - relativeSize.Width / 10 * labelsHorizontalLineSize; 1761 float xOverlap = relativeSize.Width * shift * expShift + middlePoint.X + relativeSize.Width / 10 * labelsHorizontalLineSize; 1861coord[2 * index] = pointNew[index].X; 2565 rectangle = new RectangleF( middlePoint.X - relativeSize.Width / 2, middlePoint.Y - relativeSize.Height / 2, relativeSize.Width, relativeSize.Height ); 2737point.positionRel.X = points[(int)PiePoints.TopLabelLine].X; 4959 angle = (float)Math.Atan( ( position.Y - _innerPlotPosition.Top - _innerPlotPosition.Height / 2) / ( position.X - _innerPlotPosition.Left - _innerPlotPosition.Width / 2 )); 5460if (points[(int)PiePoints.TopLabelLineout].X > labelPoint.X) 5462labelPoint.X = points[(int)PiePoints.TopLabelLineout].X + 10; 5465labelPosition.X = labelPoint.X; 5480if (points[(int)PiePoints.TopLabelLineout].X < labelPoint.X) 5482labelPoint.X = points[(int)PiePoints.TopLabelLineout].X - 10; 5486labelPosition.Width = labelPoint.X - labelPosition.X; 5580 labelPosition.X - sizeLabel.Width/2,
Common\ChartTypes\PointChart.cs (15)
443 point.positionRel = new PointF(markerPosition.X, markerPosition.Y); 493 new RectangleF(markerPosition.X, markerPosition.Y, markerSize.Width, markerSize.Height)); 628 common.HotRegionsList.AddHotRegion( insertIndex, graph, markerPosition.X, markerPosition.Y, relativeMarkerSize.Width/2f, point, seriesName, pointIndex ); 635 new RectangleF(markerPosition.X - relativeMarkerSize.Width/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.Width, relativeMarkerSize.Height), 777PointF position = new PointF(markerPosition.X, markerPosition.Y); 986 labelPosition.X = position.X - size.Width; 995 labelPosition.X = position.X; 1003 labelPosition.X = position.X - size.Width/2F; 1171 point.positionRel = new PointF(markerPosition.X, markerPosition.Y); 1192 marker3DPosition[0] = new Point3D(markerPosition.X, markerPosition.Y, (float)(pointEx.zPosition + ((this.middleMarker) ? pointEx.depth/2f : pointEx.depth))); 1235 new RectangleF(markerRotatedPosition.X, markerRotatedPosition.Y, markerSize.Width, markerSize.Height), 1283 circCoord[0] = markerRotatedPosition.X; 1316 new RectangleF(markerRotatedPosition.X - relativeMarkerSize.Width/2f, markerRotatedPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.Width, relativeMarkerSize.Height), 1746 markerPosition.X, 1767 markerPosition.X - markerSize.Width / 2f,
Common\ChartTypes\PolarChart.cs (1)
246 double xPosition = area.circularCenter.X;
Common\ChartTypes\RadarChart.cs (8)
768 new RectangleF(dataPointPos[index].X, dataPointPos[index].Y, markerSize.Width, markerSize.Height), 810 circCoord[0] = relativeMarkerPosition.X; 829 new RectangleF(relativeMarkerPosition.X - relativeMarkerSize.Width/2f, relativeMarkerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.Width, relativeMarkerSize.Height), 936 middlePoint.X = (p1.X + p2.X) / 2f; 993 double xPosition = area.circularCenter.X; 1144PointF position = new PointF(markerPosition.X, markerPosition.Y); 1592 markerPosition.X - markerSize.Width/2f,
Common\ChartTypes\RangeChart.cs (31)
263 areaPath.GetLastPoint().X, 265 areaPath.GetLastPoint().X, 423 path.AddLine(highPoint1.X, lowPoint1.Y, highPoint1.X, highPoint1.Y); 433 path.AddLine(highPoint2.X, highPoint2.Y, highPoint2.X, lowPoint2.Y); 538graph.DrawLine(areaLinePen, highPoint1.X, lowPoint1.Y, highPoint1.X, highPoint1.Y); 542graph.DrawLine(areaLinePen, highPoint2.X, highPoint2.Y, highPoint2.X, lowPoint2.Y); 593 graph.DrawLine(areaLinePen, highPoint1.X, lowPoint1.Y, highPoint1.X, highPoint1.Y); 597 graph.DrawLine(areaLinePen, highPoint2.X, highPoint2.Y, highPoint2.X, lowPoint2.Y); 624 areaPath.AddLine(highPoint1.X, lowPoint1.Y, highPoint1.X, highPoint1.Y); 668 path.AddLine(highPoint1.X, lowPoint1.Y, highPoint1.X, highPoint1.Y); 677 path.AddLine(highPoint2.X, highPoint2.Y, highPoint2.X, lowPoint2.Y); 689 mapAreaPath.AddLine(highPoint1.X, lowPoint1.Y, highPoint1.X, highPoint1.Y); 699 mapAreaPath.AddLine(highPoint2.X, highPoint2.Y, highPoint2.X, lowPoint2.Y); 717 coord[2*i] = pointNew.X; 1000 thirdPoint.X, thirdPoint.Y, 1001 fourthPoint.X, fourthPoint.Y); 1003 intersectionPoint.xPosition = intersectionCoordinates.X; 1008 if( double.IsNaN(intersectionCoordinates.X) || 1015 if( (decimal)intersectionCoordinates.X == (decimal)firstPoint.xPosition && 1020 if( (decimal)intersectionCoordinates.X == (decimal)secondPoint.xPosition &&
Common\ChartTypes\StackedAreaChart.cs (43)
578 firstPoint.X = (float)Math.Round(firstPoint.X); 579 secondPoint.X = (float)Math.Round(secondPoint.X); 585path.AddLine(firstPoint.X, firstPoint.Y, secondPoint.X, secondPoint.Y); 586path.AddLine(secondPoint.X, secondPoint.Y, secondPoint.X, prevYValue2); 587path.AddLine(secondPoint.X, prevYValue2, firstPoint.X, prevYValue1); 588path.AddLine(firstPoint.X, prevYValue1, firstPoint.X, firstPoint.Y); 663if (!(firstPoint.X == secondPoint.X || firstPoint.Y == secondPoint.Y)) 665graph.DrawLine(areaLinePen, firstPoint.X, firstPoint.Y, secondPoint.X, secondPoint.Y); 667if (!(firstPoint.X == secondPoint.X || prevYValue2 == prevYValue1)) 669graph.DrawLine(areaLinePen, secondPoint.X, prevYValue2, firstPoint.X, prevYValue1); 680areaPath.AddLine(firstPoint.X, firstPoint.Y, secondPoint.X, secondPoint.Y); 681areaBottomPath.AddLine(firstPoint.X, prevYValue1, secondPoint.X, prevYValue2); 701coord[2 * i] = pointNew.X; 723linePath.AddLine(firstPoint.X, firstPoint.Y, secondPoint.X, secondPoint.Y); 743coord[2 * i] = pointNew.X; 887 firstPoint.X = (float)Math.Round(firstPoint.X); 888 secondPoint.X = (float)Math.Round(secondPoint.X); 1028labelPosition.X = secondPoint.X; 1046labelPosition.X - sizeLabel.Width / 2, 1369 if(!float.IsNaN(thirdPointPosition.X)) 1375 thirdPoint.Y = (thirdPointPosition.X - fourthPoint.X) / 1376 (thirdPoint.X - fourthPoint.X) * 1381 thirdPoint.X = thirdPointPosition.X; 1388 if(!float.IsNaN(fourthPointPosition.X)) 1394 fourthPoint.Y = (fourthPointPosition.X - fourthPoint.X) / 1395 (thirdPoint.X - fourthPoint.X) * 1400 fourthPoint.X = fourthPointPosition.X; 1528points[0].PointF.X - sizeLabel.Width / 2,
Common\ChartTypes\StackedBarChart.cs (4)
1184labelPosition.X - sizeLabel.Width / 2, 1996 new Point3D(rotationCenter.X, rotationCenter.Y, pointEx.zPosition + pointEx.depth), 1997 new Point3D(rotationCenter.X - 20f, rotationCenter.Y, pointEx.zPosition + pointEx.depth) }; 2088rotationCenter.X - sizeLabel.Width / 2,
Common\ChartTypes\StackedColumnChart.cs (4)
1220absPosition.X = (float)Math.Ceiling(absPosition.X) + 1f; 1241labelPosition.X - sizeLabel.Width / 2, 1879marker3DPosition[0] = new Point3D(labelPosition.X, labelPosition.Y, (float)(pointEx.zPosition + pointEx.depth)); 1953labelPosition.X - sizeLabel.Width / 2,
Common\ChartTypes\StepLineChart.cs (3)
121 PointF point2 = new PointF(points[pointIndex].X, points[pointIndex - 1].Y); 155 coord[2*i] = pointNew.X; 189 coord[2*i] = pointNew.X;
Common\ChartTypes\StockChart.cs (8)
571 new RectangleF(markerPosition.X, markerPosition.Y, markerSize.Width, markerSize.Height)); 586 circCoord[0] = markerPosition.X; 604 new RectangleF(markerPosition.X - relativeMarkerSize.Width/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.Width, relativeMarkerSize.Height), 1398 new RectangleF(markerPosition.X, markerPosition.Y, markerSize.Width, markerSize.Height)); 1413 circCoord[0] = markerPosition.X; 1431 new RectangleF(markerPosition.X - relativeMarkerSize.Width/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.Width, relativeMarkerSize.Height), 1896 markerPosition.X, 1916 markerPosition.X - markerSize.Width / 2f,
Common\General\Axis.cs (29)
1966rectPoints[0].X, 1968rectPoints[1].X - rectPoints[0].X, 2341 new Point3D(rotationCenter.X, rotationCenter.Y, zPosition), 2342 new Point3D(rotationCenter.X - 20f, rotationCenter.Y, zPosition) }; 2360 new Point3D(rotationCenter.X, rotationCenter.Y, zPosition), 2361 new Point3D(rotationCenter.X, rotationCenter.Y - 20f, zPosition) }; 2432if (rotationCenter.IsEmpty || float.IsNaN(rotationCenter.X) || float.IsNaN(rotationCenter.Y)) 2667RectangleF rect = new RectangleF(first.X, first.Y, second.X - first.X, second.Y - first.Y); 2696points3D[i] = new Point3D(points[i].X, points[i].Y, zPositon); 2778if ((horizontal && point1.X > point2.X) || 2781PointF tempPoint = new PointF(point1.X, point1.Y); 2782point1.X = point2.X; 2800new Point3D(point1.X, point1.Y, zPositon), 2801new Point3D(point2.X, point2.Y, zPositon), 2830new Point3D(point1.X, point1.Y, zPositon), 2831new Point3D(point2.X, point2.Y, zPositon), 2861new Point3D(point1.X, point1.Y, ChartArea.areaSceneDepth), 2862new Point3D(point1.X, point1.Y, 0f), 2893new Point3D(point2.X, point2.Y, ChartArea.areaSceneDepth), 2894new Point3D(point2.X, point2.Y, 0f), 4908PointF outsidePoint = new PointF(areaCenterAbs.X, plotAreaRectAbs.Y); 4941PointF[] labelPosition = new PointF[] { new PointF(areaCenterAbs.X, plotAreaRectAbs.Y) }; 4950labelPosition[0].X, 4956curLabelPosition.X = labelPosition[0].X - textSize.Width / 2f; 4961curLabelPosition.X = labelPosition[0].X - textSize.Width / 2f;
Common\General\ChartArea.cs (2)
2738 PointF[] labelPosition = new PointF[] { new PointF(areaCenterAbs.X, plotAreaRectAbs.Y) }; 2745 width -= areaRectAbs.Right - labelPosition[0].X;
Common\General\ChartGraphics.cs (56)
250 if(firstPoint.X == secondPoint.X || 259 (float)Math.Round(firstPoint.X), 261 (float)Math.Round(secondPoint.X), 331 PointF firstShadow = new PointF( firstPoint.X + shadowOffset, firstPoint.Y + shadowOffset); 332 PointF secondShadow = new PointF( secondPoint.X + shadowOffset, secondPoint.Y + shadowOffset ); 722rect.X = point.X - imageScaleRect.Width / 2F; 778rect.X = point.X - ((float)markerSize) / 2F; 857shadowBrush.CenterPoint = new PointF(point.X, point.Y); 861if (focusScale.X < 0) 902points[0].X = point.X - crossSize / 2F; 904points[1].X = point.X - crossSize / 2F; 907points[2].X = point.X - crossLineWidth / 2F; 909points[3].X = point.X - crossLineWidth / 2F; 911points[4].X = point.X + crossLineWidth / 2F; 914points[5].X = point.X + crossLineWidth / 2F; 916points[6].X = point.X + crossSize / 2F; 918points[7].X = point.X + crossSize / 2F; 921points[8].X = point.X + crossLineWidth / 2F; 923points[9].X = point.X + crossLineWidth / 2F; 925points[10].X = point.X - crossLineWidth / 2F; 927points[11].X = point.X - crossLineWidth / 2F; 968shadowBrush.CenterPoint = new PointF(point.X, point.Y); 972if (focusScale.X < 0) 1038diamondRect.X = point.X - ((float)diamondSize) / 2F; 1097shadowBrush.CenterPoint = new PointF(point.X, point.Y); 1101if (focusScale.X < 0) 1719new PointF(absCenter.X - size.Width / 2f, absCenter.Y - size.Height / 2f), 1720new PointF(absCenter.X + size.Width / 2f, absCenter.Y - size.Height / 2f), 1721new PointF(absCenter.X + size.Width / 2f, absCenter.Y + size.Height / 2f), 1722new PointF(absCenter.X - size.Width / 2f, absCenter.Y + size.Height / 2f)}; 1933newRect.X = rotationPoint.X - absPosition.Height / 2F; 2404 newRect.X = centerNotRound.X - absPosition.Height / 2F; 2452 axisPositionAbs.X, 2475 axisPositionAbs.X, 3834 if(focusScale.X < 0) 4678 relative.X = point.X * 100F / ((float)(_width - 1)); 4723 absolute.X = point.X * (_width - 1) / 100F; 5421 points[0].X = position.X - (float)size; 5423 points[1].X = position.X + (float)size; 5425 points[2].X = position.X; 5428 endPoint.X = position.X; 5450 points[0].X = position.X - (float)size; 5452 points[1].X = position.X + (float)size; 5454 points[2].X = position.X; 5457 endPoint.X = position.X; 5476 points[0].X = position.X - (float)shift; 5478 points[1].X = position.X - (float)shift; 5480 points[2].X = position.X - (float)shift - (float)sharp; 5484 endPoint.X = points[1].X; 5486 endPoint.X = points[2].X; 5501 points[0].X = position.X + (float)shift; 5503 points[1].X = position.X + (float)shift; 5505 points[2].X = position.X + (float)shift + (float)sharp; 5509 endPoint.X = points[1].X; 5511 endPoint.X = points[2].X;
Common\General\ChartGraphics3D.cs (113)
350 new Point3D(point1.X, point1.Y, zPositon), 351 new Point3D(point2.X, point2.Y, zPositon), 362 point1.X = Math.Min(point1.X, point2.X); 366 point1.X = Math.Max(point1.X, point2.X); 372 new Point3D(point1.X, point1.Y, 0f), 373 new Point3D(point1.X, point1.Y, area.areaSceneDepth), 388 new Point3D(point1.X, point1.Y, 0f), 389 new Point3D(point1.X, point1.Y, area.areaSceneDepth), 712pieTopRectangle.X = topFirstRectPoint.X; 715pieTopRectangle.Width = topSecondRectPoint.X - topFirstRectPoint.X; 718pieBottomRectangle.X = bottomFirstRectPoint.X; 721pieBottomRectangle.Width = bottomSecondRectPoint.X - bottomFirstRectPoint.X; 739path.AddLine(bottomFirstPoint.X, bottomFirstPoint.Y, bottomSecondPoint.X, bottomSecondPoint.Y); 753path.AddLine(topFirstPoint.X, topFirstPoint.Y, topSecondPoint.X, topSecondPoint.Y); 843pieRectangle.X = firstRectPoint.X; 846pieRectangle.Width = secondRectPoint.X - firstRectPoint.X; 969pieRectangle.X = firstRectPoint.X; 972pieRectangle.Width = secondRectPoint.X - firstRectPoint.X; 1305 if( (frontLinePoint1.X == polygonPoints[0].X && 1307 frontLinePoint2.X == polygonPoints[1].X && 1310 (frontLinePoint1.X == polygonPoints[1].X && 1312 frontLinePoint2.X == polygonPoints[0].X && 1315 (frontLinePoint1.X == polygonPoints[3].X && 1317 frontLinePoint2.X == polygonPoints[2].X && 1320 (frontLinePoint1.X == polygonPoints[2].X && 1322 frontLinePoint2.X == polygonPoints[3].X && 1332 (float)Math.Round(frontLinePoint1.X), 1334 (float)Math.Round(frontLinePoint2.X), 1469 points3D[index] = new Point3D(polygonPointsFront[index].X, polygonPointsFront[index].Y, positionZ); 1620 dp1.xPosition = splinePathPoints[pIndex - 1].X; 1625 dp2.xPosition = splinePathPoints[pIndex].X; 1632 dp2.xPosition = splinePathPoints[pIndex - 1].X; 1637 dp1.xPosition = splinePathPoints[pIndex].X; 2294 (float)Math.Round(polygonPoints[0].X), 2296 (float)Math.Round(polygonPoints[1].X), 2305 (float)Math.Round(polygonPoints[0].X), 2307 (float)Math.Round(polygonPoints[1].X), 2329 (float)Math.Round(polygonPoints[3].X), 2331 (float)Math.Round(polygonPoints[0].X), 2340 (float)Math.Round(polygonPoints[3].X), 2342 (float)Math.Round(polygonPoints[0].X), 2359 (float)Math.Round(polygonPoints[1].X), 2361 (float)Math.Round(polygonPoints[2].X), 2370 (float)Math.Round(polygonPoints[1].X), 2372 (float)Math.Round(polygonPoints[2].X), 2390 (float)Math.Round(frontLinePoint1.X), 2392 (float)Math.Round(frontLinePoint2.X), 3483 marker3DPosition[0] = new Point3D(point.X, point.Y, positionZ); 3509 rect.X = markerRotatedPosition.X - ((float)markerSize)/2F; 3531rect.X = markerRotatedPosition.X - ((float)markerSize) / 2F; 3574shadowBrush.CenterPoint = new PointF(markerRotatedPosition.X, markerRotatedPosition.Y); 3578if (focusScale.X < 0) 3607Point3D[] centerPoint = new Point3D[] { new Point3D(point.X, point.Y, positionZ + markerRelativeSize.Width) }; 3632rectNonRotated.X = point.X - ((float)markerRelativeSize.Width) / 2F; 3905 result.Y = (result.X - x3) * (y4 - y3); 3913 result.Y = (result.X - x1) * (y2 - y1); 3927 result.Y = a1*result.X + b1; 4088 (cubePoints[4].PointF.X - cubePoints[5].PointF.X) / 4182 centralLinePoint.X = boundsRectMiddlePoint.X + 100f; 4187 centralLinePoint.X = boundsRectMiddlePoint.X; 4192 centralLinePoint.X = boundsRectMiddlePoint.X + 100f; 4193 centralLinePoint.Y = (float)(Math.Tan(centralLineAngle) * centralLinePoint.X); 4194 centralLinePoint.Y += (float)(boundsRectMiddlePoint.Y - Math.Tan(centralLineAngle) * boundsRectMiddlePoint.X); 4199 centralLinePoint.X = (float)(centralLinePoint.Y - (boundsRectMiddlePoint.Y - Math.Tan(centralLineAngle) * boundsRectMiddlePoint.X)); 4205 boundsRectMiddlePoint.X, boundsRectMiddlePoint.Y, 4206 centralLinePoint.X, centralLinePoint.Y, 4207 leftSideLinePoint.X, leftSideLinePoint.Y, 4208 leftOppSideLinePoint.X, leftOppSideLinePoint.Y); 4211 boundsRectMiddlePoint.X, boundsRectMiddlePoint.Y, 4212 centralLinePoint.X, centralLinePoint.Y, 4213 rightSideLinePoint.X, rightSideLinePoint.Y, 4214 rightOppSideLinePoint.X, rightOppSideLinePoint.Y); 4217 if(middlePoint1.X != middlePoint2.X || middlePoint1.Y != middlePoint2.Y) 4369 if(ellipsePoints[leftBottomPoint].X > ellipsePoints[pointIndex].X) 4373 if(ellipsePoints[rigthTopPoint].X < ellipsePoints[pointIndex].X) 4417 float linePointX = oppositeEllipsePoints[pointOppositeIndex].X - ellipsePoints[pointIndex].X; 4431 x += ellipsePoints[pointIndex].X; 4433 if(x > ellipsePoints[innerPointIndex].X) 4437 if(x < ellipsePoints[innerPointIndex].X) 4459 x += ellipsePoints[pointIndex].X; 4461 if(x > oppositeEllipsePoints[innerPointIndex].X) 4465 if(x < oppositeEllipsePoints[innerPointIndex].X) 4478 if(oppositeEllipsePoints[pointOppositeIndex].X == ellipsePoints[pointIndex].X) 4484 linePointY /= oppositeEllipsePoints[pointOppositeIndex].X - ellipsePoints[pointIndex].X; 4496 y *= ellipsePoints[innerPointIndex].X - ellipsePoints[pointIndex].X; 4524 y *= oppositeEllipsePoints[innerPointIndex].X - ellipsePoints[pointIndex].X; 4640return this._coordXY.X; 4706this._coordXY = new PointF(value.X, value.Y);
Common\General\GridTickMarks.cs (47)
487 second.X = first.X; 494 second.X = first.X; 501 RectangleF rect = new RectangleF( first.X - 0.5f, first.Y - 0.5f, Math.Abs( second.X - first.X ) + 1, Math.Abs( second.Y - first.Y ) + 1 ); 515 RectangleF rect = new RectangleF( first.X - 0.5f, first.Y - 0.5f, Math.Abs( second.X - first.X ) + 1, Math.Abs( second.Y - first.Y ) + 1 ); 736 second.X = first.X; 743 second.X = first.X; 750 RectangleF rect = new RectangleF( first.X - 0.5f, first.Y - 0.5f, Math.Abs( second.X - first.X ) + 1, Math.Abs( second.Y - first.Y ) + 1 ); 865 point3 = new Point3D(point1.X, point1.Y, - area.areaSceneWallWidth.Width); 866 point4 = new Point3D(point1.X, point1.Y, 0f); 873 point3 = new Point3D(point1.X, axisPosition, wallZPosition); 874 point4 = new Point3D(point1.X, point1.Y, - _size - area.areaSceneWallWidth.Width); 881 point3 = new Point3D(point1.X, axisPosition, wallZPosition); 882 point4 = new Point3D(point1.X, point1.Y, - _size/2 - area.areaSceneWallWidth.Width); 906 point3 = new Point3D(point1.X, point1.Y, - area.areaSceneWallWidth.Width); 907 point4 = new Point3D(point1.X, point1.Y, 0f); 947 point3 = new Point3D(point2.X, point2.Y, - area.areaSceneWallWidth.Width); 948 point4 = new Point3D(point2.X, point2.Y, 0f); 983 new Point3D(point1.X, point1.Y, wallZPosition), 984 new Point3D(point2.X, point2.Y, wallZPosition), 1484 second.X = first.X; 1498if (Math.Abs(first.X - second.X) > Math.Abs(first.Y - second.Y)) 1500path.AddLine(first.X, first.Y - 1, second.X, second.Y - 1); 1501path.AddLine(second.X, second.Y + 1, first.X, first.Y + 1); 1506path.AddLine(first.X - 1, first.Y, second.X - 1, second.Y); 1507path.AddLine(second.X + 1, second.Y, first.X + 1, first.Y); 1583 second.X = first.X; 1593if (Math.Abs(first.X - second.X) > Math.Abs(first.Y - second.Y)) 1595path.AddLine(first.X, first.Y - 1, second.X, second.Y - 1); 1596path.AddLine(second.X, second.Y + 1, first.X, first.Y + 1); 1601path.AddLine(first.X - 1, first.Y, second.X - 1, second.Y); 1602path.AddLine(second.X + 1, second.Y, first.X + 1, first.Y);
Common\General\ImageMap.cs (7)
251 coord[index++] = point.X; 366transformedCoord[0] = p.X; 369transformedCoord[2] = p.X; 374transformedCoord[0] = p.X; 377transformedCoord[2] = p.X; 399transformedCoord[index] = pConverted.X; 860 coord[i++] = point.X;
Common\General\Label.cs (4)
1162this._axis.ChartArea.circularCenter.X, 1329 labelPosition.X = position.X - size.Width; 1333 labelPosition.X = position.X; 1337 labelPosition.X = position.X - size.Width/2F;
Common\General\Selection.cs (16)
859 circleCenter.X - circleRadius.Width, 2037relativeX = this.Graph.GetRelativePoint(new PointF(x, y)).X; 2533RectangleF rect = RectangleF.FromLTRB(points[i].X, points[i].Y, points[i + 2].X, points[i + 2].Y); 2809PointF middleP0P3 = new PointF((points[i].X + points[i + 3].X) / 2f, (points[i].Y + points[i + 3].Y) / 2f); 2810PointF middleP1P2 = new PointF((points[i + 1].X + points[i + 2].X) / 2f, (points[i + 1].Y + points[i + 2].Y) / 2f); 2830if (!(float.IsNaN(pp.X) || float.IsNaN(pp.Y))) 3010if (float.IsNaN(pp.X) || float.IsNaN(pp.Y)) 3084RectangleF rect1 = new RectangleF(first.X, first.Y, second.X - first.X, second.Y - first.Y); 3107points[i] = new Point3D(((PointF)list1[i]).X, ((PointF)list1[i]).Y, zPositon); 3147points[i] = new Point3D(((PointF)list1[i]).X, ((PointF)list1[i]).Y, zPositon); 3308annot3DPoints[0] = new Point3D(pf.X, pf.Y, positionZ);
Common\General\SmartLabels.cs (18)
1012 markerPositionAbs.X, 1014 connectorPosition.X, 1222 if(point1.X == point2.X) 1224 if(point1.X >= rect.X && point1.X <= rect.Right) 1244 if(point1.X < rect.X && point2.X < rect.X) 1248 if(point1.X > rect.Right && point2.X > rect.Right) 1259 if(point1.X < rect.X && point2.X < rect.X) 1263 else if(point1.X > rect.Right && point2.X > rect.Right) 1426 labelPosition.X = position.X - size.Width; 1435 labelPosition.X = position.X; 1443 labelPosition.X = position.X - size.Width/2F; 1487 PointF position = new PointF(markerPosition.X, markerPosition.Y);
Common\General\StripLine.cs (10)
451 point2.X = point1.X; 485 lineRect.X = point1.X; 487 lineRect.Width = point2.X - point1.X; 492 lineRect.X = point1.X - relBorderWidth.Width / 2f; 623 rect.X = point1.X; 626 rect.Width = point2.X - rect.X; 757rotationCenterProjection[0] = new Point3D(rotationCenter.X, rotationCenter.Y, zPositon); 760rotationCenterProjection[1] = new Point3D(rotationCenter.X, rotationCenter.Y - 20f, zPositon); 764rotationCenterProjection[1] = new Point3D(rotationCenter.X - 20f, rotationCenter.Y, zPositon);
System.Windows.Forms.DataVisualization (729)
Common\Annotation\AnnotationBase.cs (12)
2138 handlePosition.X - markerSizeRel.Width/2f, 2366 anchorX = this.AnchorDataPoint.positionRel.X; 2422 horizAxis.PositionToValue(this._anchorDataPoint2.positionRel.X, false) - 2423 horizAxis.PositionToValue(this._anchorDataPoint.positionRel.X, false); 2645 relativeX += groupLocation.X; 2762 relativeX = groupLocation.X; 2810 float maxAnchorOffsetAbs = Math.Max(anchorOffsetAbs.X, anchorOffsetAbs.Y); 2880 currentAnchorLocationRel = new PointF(anchorLocation.X, anchorLocation.Y); 2912 double newAnchorX = anchorPoint.X; 2919 this.currentAnchorLocationRel = new PointF(anchorPoint.X, anchorPoint.Y); 2987 !float.IsNaN(anchorPoint.X) ) 2989 newRight = horizAxis.PositionToValue(anchorPoint.X + position.Width, false);
Common\Annotation\ArrowAnnotation.cs (29)
314 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 317 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y)); 320 if( float.IsNaN(firstPoint.X) || 322 float.IsNaN(secondPoint.X) || 396 float deltaX = secondPoint.X - firstPoint.X; 410 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y - this.ArrowSize*pointerRatio), 411 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y - this.ArrowSize), 412 new PointF(firstPoint.X + arrowLength, firstPoint.Y - this.ArrowSize), 413 new PointF(firstPoint.X + arrowLength, firstPoint.Y + this.ArrowSize), 414 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y + this.ArrowSize), 415 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y + this.ArrowSize*pointerRatio) }; 421 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y - this.ArrowSize*pointerRatio), 422 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y - this.ArrowSize), 423 new PointF(firstPoint.X + arrowLength - this.ArrowSize*pointerRatio, firstPoint.Y - this.ArrowSize), 424 new PointF(firstPoint.X + arrowLength - this.ArrowSize*pointerRatio, firstPoint.Y - this.ArrowSize*pointerRatio), 425 new PointF(firstPoint.X + arrowLength, firstPoint.Y), 426 new PointF(firstPoint.X + arrowLength - this.ArrowSize*pointerRatio, firstPoint.Y + this.ArrowSize*pointerRatio), 427 new PointF(firstPoint.X + arrowLength - this.ArrowSize*pointerRatio, firstPoint.Y + this.ArrowSize), 428 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y + this.ArrowSize), 429 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y + this.ArrowSize*pointerRatio) }; 436 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y - this.ArrowSize*pointerRatio), 437 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y - this.ArrowSize), 438 new PointF(firstPoint.X + arrowLength, firstPoint.Y - this.ArrowSize*tailRatio), 439 new PointF(firstPoint.X + arrowLength - this.ArrowSize*tailRatio, firstPoint.Y), 440 new PointF(firstPoint.X + arrowLength, firstPoint.Y + this.ArrowSize*tailRatio), 441 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y + this.ArrowSize), 442 new PointF(firstPoint.X + this.ArrowSize*pointerRatio, firstPoint.Y + this.ArrowSize*pointerRatio) };
Common\Annotation\CalloutAnnotation.cs (61)
651 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 654 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y)); 838 if(!float.IsNaN(anchorPoint.X) && !float.IsNaN(anchorPoint.Y)) 841 if(!rectanglePosition.Contains(anchorPoint.X, anchorPoint.Y)) 844 PointF anchorPointAbs = graphics.GetAbsolutePoint(new PointF(anchorPoint.X, anchorPoint.Y)); 856 float deltaX = point.X - anchorPointAbs.X; 916 if(!float.IsNaN(anchorPoint.X) && !float.IsNaN(anchorPoint.Y)) 926 if(!inflatedPosition.Contains(anchorPoint.X, anchorPoint.Y)) 934 PointF anchorPointAbs = graphics.GetAbsolutePoint(new PointF(anchorPoint.X, anchorPoint.Y)); 942 if(anchorPoint.X < rectanglePosition.X && 953 else if(anchorPoint.X >= rectanglePosition.X && 954 anchorPoint.X <= rectanglePosition.Right && 965 else if(anchorPoint.X > rectanglePosition.Right && 976 else if(anchorPoint.X > rectanglePosition.Right && 988 else if(anchorPoint.X > rectanglePosition.Right && 999 else if(anchorPoint.X >= rectanglePosition.X && 1000 anchorPoint.X <= rectanglePosition.Right && 1011 else if(anchorPoint.X < rectanglePosition.X && 1022 else if(anchorPoint.X < rectanglePosition.X && 1109 if(!float.IsNaN(anchorPoint.X) && !float.IsNaN(anchorPoint.Y)) 1112 if(!rectanglePosition.Contains(anchorPoint.X, anchorPoint.Y)) 1126 new PointF(anchorPoint.X, anchorPoint.Y)); 1130 float dxAbs = anchorPointAbs.X - cloudCenterAbs.X; 1137 if(point.X < rectanglePositionAbs.X) 1141 else if(point.X > rectanglePositionAbs.Right) 1149 if(point.X < rectanglePositionAbs.X) 1153 else if(point.X > rectanglePositionAbs.Right) 1160 if(anchorPoint.X < rectanglePosition.X) 1170 SizeF size = new SizeF(Math.Abs(cloudCenterAbs.X - point.X), Math.Abs(cloudCenterAbs.Y - point.Y)); 1189 ellipseLocation.X - ellipseSize.Width / 2f, 1308 if(!float.IsNaN(anchorPoint.X) && !float.IsNaN(anchorPoint.Y)) 1311 if(!rectanglePosition.Contains(anchorPoint.X, anchorPoint.Y)) 1332 points1[2] = new PointF(anchorPointAbs.X, anchorPointAbs.Y); 1334 if(anchorPoint.X < rectanglePosition.X) 1339 points2[2] = new PointF(anchorPointAbs.X, anchorPointAbs.Y); 1342 else if(anchorPoint.X > rectanglePosition.Right) 1347 points2[2] = new PointF(anchorPointAbs.X, anchorPointAbs.Y); 1356 points1[2] = new PointF(anchorPointAbs.X, anchorPointAbs.Y); 1358 if(anchorPoint.X < rectanglePosition.X) 1363 points2[2] = new PointF(anchorPointAbs.X, anchorPointAbs.Y); 1366 else if(anchorPoint.X > rectanglePosition.Right) 1371 points2[2] = new PointF(anchorPointAbs.X, anchorPointAbs.Y); 1377 if(anchorPoint.X < rectanglePosition.X) 1382 points2[2] = new PointF(anchorPointAbs.X, anchorPointAbs.Y); 1385 else if(anchorPoint.X > rectanglePosition.Right) 1390 points2[2] = new PointF(anchorPointAbs.X, anchorPointAbs.Y); 1486 if(!float.IsNaN(anchorPoint.X) && !float.IsNaN(anchorPoint.Y)) 1489 if(!rectanglePosition.Contains(anchorPoint.X, anchorPoint.Y)) 1492 if(anchorPoint.X < rectanglePosition.X) 1496 else if(anchorPoint.X > rectanglePosition.Right) 1598 if(anchorPoint.X < rectanglePosition.X) 1807 (secondPoint.X - firstPoint.X) / 1809 firstPoint.X; 1825 intersectionPoint.Y = (pointX - firstPoint.X) * 1827 (secondPoint.X - firstPoint.X) +
Common\Annotation\GroupAnnotation.cs (3)
921 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 924 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y));
Common\Annotation\ImageAnnotation.cs (3)
525 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 528 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y));
Common\Annotation\LineAnnotation.cs (18)
520 if(Math.Round(point1.X , 3) == Math.Round(point2.X, 3)) 527 point1.X = (point1.X < point2.X) ? 0f : 100f; 528 point2.X = (point1.X < point2.X) ? 100f : 0f; 536 (point2.X - point1.X) / 538 point1.X; 542 (point2.X - point1.X) / 544 point1.X; 569 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 572 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y)); 578 if( float.IsNaN(firstPoint.X) || 580 float.IsNaN(secondPoint.X) || 799 point2.X = point1.X;
Common\Annotation\PolygonAnnotation.cs (5)
527_pathPoints.Add(new AnnotationPathPoint(points[index].X, points[index].Y, types[index])); 566 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 569 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y)); 605 pathPoints[pointIndex].X = rectanglePositionAbs.X + pathPoints[pointIndex].X * groupScaleX;
Common\Annotation\RectangleAnnotation.cs (6)
389 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 392 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y)); 627 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 630 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y));
Common\Annotation\TextAnnotation.cs (3)
419 PointF secondPoint = new PointF(firstPoint.X + size.Width, firstPoint.Y + size.Height); 422 RectangleF selectionRect = new RectangleF(firstPoint, new SizeF(secondPoint.X - firstPoint.X, secondPoint.Y - firstPoint.Y));
Common\ChartTypes\AreaChart.cs (27)
297point1.X = (float)Math.Round(point1.X); 299point2.X = (float)Math.Round(point2.X); 306axisPos.X = (float)Math.Round(axisPos.X); 339path.AddLine(point1.X, axisPos.Y, point1.X, point1.Y); 348path.AddLine(point2.X, point2.Y, point2.X, axisPos.Y); 426if (!(points[pointIndex - 1].X == points[pointIndex].X || 451areaPath.AddLine(point1.X, axisPos.Y, point1.X, point1.Y); 496mapAreaPath.AddLine(point1.X, axisPos.Y, point1.X, point1.Y); 506mapAreaPath.AddLine(point2.X, point2.Y, point2.X, axisPos.Y); 507mapAreaPath.AddLine(point2.X, axisPos.Y, point1.X, axisPos.Y); 516coord[2 * i] = pointNew.X; 572coord[2 * i] = pointNew.X; 602 areaPath.AddLine(areaPath.GetLastPoint().X, areaPath.GetLastPoint().Y, areaPath.GetLastPoint().X, axisPos.Y); 806 dp1.xPosition = splinePoints[pIndex - 1].X; 811 dp2.xPosition = splinePoints[pIndex].X; 818 dp2.xPosition = splinePoints[pIndex - 1].X; 823 dp1.xPosition = splinePoints[pIndex].X; 1046 if(float.IsNaN(thirdPoint.X) || 1048 float.IsNaN(fourthPoint.X) ||
Common\ChartTypes\BarChart.cs (6)
1116 common.HotRegionsList.AddHotRegion( insertIndex, graph, markerPosition.X, markerPosition.Y, relativeMarkerSize.Width/2f, point, seriesName, pointIndex ); 1123 new RectangleF(markerPosition.X - relativeMarkerSize.Width/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.Width, relativeMarkerSize.Height), 1775 marker3DPosition[0] = new Point3D(markerPosition.X, markerPosition.Y, (float)(pointEx.zPosition + pointEx.depth/2f)); 2083 new Point3D(rotationCenter.X, rotationCenter.Y, pointEx.zPosition + pointEx.depth), 2084 new Point3D(rotationCenter.X - 20f, rotationCenter.Y, pointEx.zPosition + pointEx.depth) }; 2118rotationCenter.X - sizeLabel.Width / 2,
Common\ChartTypes\ColumnChart.cs (5)
1116 point.positionRel = new PointF(markerPosition.X, markerPosition.Y); 1152 new RectangleF(markerPosition.X, markerPosition.Y, markerSize.Width, markerSize.Height)); 1173 circCoord[0] = markerPosition.X; 1191 new RectangleF(markerPosition.X - relativeMarkerSize.Width/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.Width, relativeMarkerSize.Height), 1358marker3DPosition[0] = new Point3D(labelPosition.X, labelPosition.Y, (float)(pointEx.zPosition + pointEx.depth));
Common\ChartTypes\FastLineChart.cs (8)
485 prevPoint.X, 487 prevPoint.X, 508 prevPoint.X, 510 currentPoint.X, 548 prevPoint.X, 550 prevPoint.X, 606 points[0] = new Point3D(firstPoint.X, firstPoint.Y, seriesZCoordinate); 607 points[1] = new Point3D(secondPoint.X, secondPoint.Y, seriesZCoordinate);
Common\ChartTypes\FastPointChart.cs (14)
452 points[0] = new Point3D(location.X, location.Y, this.seriesZCoordinate); 461 location.X - markerSize / 2f, location.Y - markerSize / 2f, markerSize, markerSize); 536 points[0].X = location.X - crossSize/2F; 538 points[1].X = location.X - crossSize/2F; 541 points[2].X = location.X - crossLineWidth/2F; 543 points[3].X = location.X - crossLineWidth/2F; 545 points[4].X = location.X + crossLineWidth/2F; 548 points[5].X = location.X + crossLineWidth/2F; 550 points[6].X = location.X + crossSize/2F; 552 points[7].X = location.X + crossSize/2F; 555 points[8].X = location.X + crossLineWidth/2F; 557 points[9].X = location.X + crossLineWidth/2F; 559 points[10].X = location.X - crossLineWidth/2F; 561 points[11].X = location.X - crossLineWidth/2F;
Common\ChartTypes\FunnelChart.cs (14)
602 startIntersection.X) * 2f; 604 endIntersection.X) * 2f; 1062 intersection.X, intersection.Y); 1064 intersection.X, intersection.Y, 1065 intersection.X, location + height); 1135 intersection.X, location + height, 1136 intersection.X, intersection.Y); 1138 intersection.X, intersection.Y, 1527 !float.IsNaN(labelInfo.CalloutPoint1.X) && 1529 !float.IsNaN(labelInfo.CalloutPoint2.X) && 2936 if(startIntersection.X > (plotAreaPositionAbs.X + plotAreaPositionAbs.Width / 2f) ) 2948 if(endIntersection.X > (plotAreaPositionAbs.X + plotAreaPositionAbs.Width / 2f)) 2955 startIntersection.X) * 2f; 2957 endIntersection.X) * 2f;
Common\ChartTypes\KagiChart.cs (7)
501 PointF point2 = new PointF(points[pointIndex].X, points[pointIndex - 1].Y); 535 point4.X = point2.X; 541 point1.X = (float)Math.Round(point1.X); 543 point2.X = (float)Math.Round(point2.X); 545 point3.X = (float)Math.Round(point3.X); 549 point4.X = (float)Math.Round(point4.X); 613coord[2 * i] = pointNew.X;
Common\ChartTypes\LineChart.cs (57)
434 if( Math.Abs(dataPointPos[pointIndex - 1].X - dataPointPos[pointIndex].X ) < minDifference ) 436 if(dataPointPos[pointIndex].X > dataPointPos[pointIndex - 1].X) 438 dataPointPos[pointIndex].X = dataPointPos[pointIndex - 1].X + minDifference; 442 dataPointPos[pointIndex].X = dataPointPos[pointIndex - 1].X - minDifference; 876first.X = (first.X + second.X) / 2f; 879if (Math.Abs(first.X - second.X) > Math.Abs(first.Y - second.Y)) 881path.AddLine(first.X, first.Y - width, second.X, second.Y - width); 882path.AddLine(second.X, second.Y + width, first.X, first.Y + width); 887path.AddLine(first.X - width, first.Y, second.X - width, second.Y); 888path.AddLine(second.X + width, second.Y, first.X + width, first.Y); 899second.X = (first.X + second.X) / 2f; 908if (Math.Abs(first.X - second.X) > Math.Abs(first.Y - second.Y)) 910path.AddLine(first.X, first.Y - width, second.X, second.Y - width); 911path.AddLine(second.X, second.Y + width, first.X, first.Y + width); 916path.AddLine(first.X - width, first.Y, second.X - width, second.Y); 917path.AddLine(second.X + width, second.Y, first.X + width, first.Y); 954coord[2 * i] = pointNew.X; 968return point.X <= -maxGDIRange || point.X >= maxGDIRange || point.Y <= -maxGDIRange || point.Y >= maxGDIRange; 987bool topBottomLine = (Math.Abs(pt2.Y - pt1.Y) > Math.Abs(pt2.X - pt1.X)); 1019(secondPoint.X - firstPoint.X) / 1021firstPoint.X; 1037intersectionPoint.Y = (pointX - firstPoint.X) * 1039(secondPoint.X - firstPoint.X) + 2052 thirdPoint.X = (float)Math.Round(thirdPoint.X, decimals); 2055 fourthPoint.X = (float)Math.Round(fourthPoint.X, decimals); 2069 PointF prevThirdPoint = new PointF(thirdPoint.X, thirdPoint.Y); 2070 PointF prevFourthPoint = new PointF(fourthPoint.X, fourthPoint.Y); 2099 new PointF(thirdPoint.X, thirdPoint.Y), 2100 new PointF(fourthPoint.X, fourthPoint.Y), 2105 thirdPoint = new PointF(prevThirdPoint.X, prevThirdPoint.Y); 2106 fourthPoint = new PointF(prevFourthPoint.X, prevFourthPoint.Y); 2122 (thirdPoint.X - fourthPoint.X) / 2124 fourthPoint.X; 2160 (thirdPoint.X - fourthPoint.X) / 2162 fourthPoint.X; 2387 thirdPoint = new PointF(prevThirdPoint.X, prevThirdPoint.Y); 2388 fourthPoint = new PointF(prevFourthPoint.X, prevFourthPoint.Y);
Common\ChartTypes\PieChart.cs (29)
802 rectangle = new RectangleF( middlePoint.X - relativeSize.Width / 2, middlePoint.Y - relativeSize.Height / 2, relativeSize.Width, relativeSize.Height ); 1034 point.positionRel.X = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * rectangle.Width * expShift / 2 + middlePoint.X; 1242 x = (float)Math.Cos( (startAngle + sweepAngle / 2) * Math.PI / 180 ) * width + middlePoint.X; 1309 float x1 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.Width * expShift / 2 + middlePoint.X; 1312 float x2 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.Width * shift * expShift + middlePoint.X; 1343x3Overlap = -relativeSize.Width * shift * expShift + middlePoint.X - relativeSize.Width / 10 * labelsHorizontalLineSize; 1344x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.Width * shift * expShift + middlePoint.X - relativeSize.Width / 10 * labelsHorizontalLineSize; 1360x3Overlap = relativeSize.Width * shift * expShift + middlePoint.X + relativeSize.Width / 10 * labelsHorizontalLineSize; 1361x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.Width * shift * expShift + middlePoint.X + relativeSize.Width / 10 * labelsHorizontalLineSize; 1489 labelRect.Width = labelPosition.X - area.Position.X; 1494 labelRect.X = labelPosition.X; 1496 labelRect.Width = area.Position.Right - labelPosition.X; 1720 x3 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.Width * shift * expShift + middlePoint.X - relativeSize.Width / 10 * labelsHorizontalLineSize; 1724 x3 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.Width * shift * expShift + middlePoint.X + relativeSize.Width / 10 * labelsHorizontalLineSize; 1753 float xOverlap = -relativeSize.Width * shift * expShift + middlePoint.X - relativeSize.Width / 10 * labelsHorizontalLineSize; 1761 float xOverlap = relativeSize.Width * shift * expShift + middlePoint.X + relativeSize.Width / 10 * labelsHorizontalLineSize; 1861coord[2 * index] = pointNew[index].X; 2565 rectangle = new RectangleF( middlePoint.X - relativeSize.Width / 2, middlePoint.Y - relativeSize.Height / 2, relativeSize.Width, relativeSize.Height ); 2737point.positionRel.X = points[(int)PiePoints.TopLabelLine].X; 4959 angle = (float)Math.Atan( ( position.Y - _innerPlotPosition.Top - _innerPlotPosition.Height / 2) / ( position.X - _innerPlotPosition.Left - _innerPlotPosition.Width / 2 )); 5460if (points[(int)PiePoints.TopLabelLineout].X > labelPoint.X) 5462labelPoint.X = points[(int)PiePoints.TopLabelLineout].X + 10; 5465labelPosition.X = labelPoint.X; 5480if (points[(int)PiePoints.TopLabelLineout].X < labelPoint.X) 5482labelPoint.X = points[(int)PiePoints.TopLabelLineout].X - 10; 5486labelPosition.Width = labelPoint.X - labelPosition.X; 5580 labelPosition.X - sizeLabel.Width/2,
Common\ChartTypes\PointChart.cs (15)
443 point.positionRel = new PointF(markerPosition.X, markerPosition.Y); 493 new RectangleF(markerPosition.X, markerPosition.Y, markerSize.Width, markerSize.Height)); 628 common.HotRegionsList.AddHotRegion( insertIndex, graph, markerPosition.X, markerPosition.Y, relativeMarkerSize.Width/2f, point, seriesName, pointIndex ); 635 new RectangleF(markerPosition.X - relativeMarkerSize.Width/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.Width, relativeMarkerSize.Height), 777PointF position = new PointF(markerPosition.X, markerPosition.Y); 986 labelPosition.X = position.X - size.Width; 995 labelPosition.X = position.X; 1003 labelPosition.X = position.X - size.Width/2F; 1171 point.positionRel = new PointF(markerPosition.X, markerPosition.Y); 1192 marker3DPosition[0] = new Point3D(markerPosition.X, markerPosition.Y, (float)(pointEx.zPosition + ((this.middleMarker) ? pointEx.depth/2f : pointEx.depth))); 1235 new RectangleF(markerRotatedPosition.X, markerRotatedPosition.Y, markerSize.Width, markerSize.Height), 1283 circCoord[0] = markerRotatedPosition.X; 1316 new RectangleF(markerRotatedPosition.X - relativeMarkerSize.Width/2f, markerRotatedPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.Width, relativeMarkerSize.Height), 1746 markerPosition.X, 1767 markerPosition.X - markerSize.Width / 2f,
Common\ChartTypes\PolarChart.cs (1)
246 double xPosition = area.circularCenter.X;
Common\ChartTypes\RadarChart.cs (8)
768 new RectangleF(dataPointPos[index].X, dataPointPos[index].Y, markerSize.Width, markerSize.Height), 810 circCoord[0] = relativeMarkerPosition.X; 829 new RectangleF(relativeMarkerPosition.X - relativeMarkerSize.Width/2f, relativeMarkerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.Width, relativeMarkerSize.Height), 936 middlePoint.X = (p1.X + p2.X) / 2f; 993 double xPosition = area.circularCenter.X; 1144PointF position = new PointF(markerPosition.X, markerPosition.Y); 1592 markerPosition.X - markerSize.Width/2f,
Common\ChartTypes\RangeChart.cs (31)
263 areaPath.GetLastPoint().X, 265 areaPath.GetLastPoint().X, 423 path.AddLine(highPoint1.X, lowPoint1.Y, highPoint1.X, highPoint1.Y); 433 path.AddLine(highPoint2.X, highPoint2.Y, highPoint2.X, lowPoint2.Y); 538graph.DrawLine(areaLinePen, highPoint1.X, lowPoint1.Y, highPoint1.X, highPoint1.Y); 542graph.DrawLine(areaLinePen, highPoint2.X, highPoint2.Y, highPoint2.X, lowPoint2.Y); 593 graph.DrawLine(areaLinePen, highPoint1.X, lowPoint1.Y, highPoint1.X, highPoint1.Y); 597 graph.DrawLine(areaLinePen, highPoint2.X, highPoint2.Y, highPoint2.X, lowPoint2.Y); 624 areaPath.AddLine(highPoint1.X, lowPoint1.Y, highPoint1.X, highPoint1.Y); 668 path.AddLine(highPoint1.X, lowPoint1.Y, highPoint1.X, highPoint1.Y); 677 path.AddLine(highPoint2.X, highPoint2.Y, highPoint2.X, lowPoint2.Y); 689 mapAreaPath.AddLine(highPoint1.X, lowPoint1.Y, highPoint1.X, highPoint1.Y); 699 mapAreaPath.AddLine(highPoint2.X, highPoint2.Y, highPoint2.X, lowPoint2.Y); 717 coord[2*i] = pointNew.X; 1000 thirdPoint.X, thirdPoint.Y, 1001 fourthPoint.X, fourthPoint.Y); 1003 intersectionPoint.xPosition = intersectionCoordinates.X; 1008 if( double.IsNaN(intersectionCoordinates.X) || 1015 if( (decimal)intersectionCoordinates.X == (decimal)firstPoint.xPosition && 1020 if( (decimal)intersectionCoordinates.X == (decimal)secondPoint.xPosition &&
Common\ChartTypes\StackedAreaChart.cs (43)
578 firstPoint.X = (float)Math.Round(firstPoint.X); 579 secondPoint.X = (float)Math.Round(secondPoint.X); 585path.AddLine(firstPoint.X, firstPoint.Y, secondPoint.X, secondPoint.Y); 586path.AddLine(secondPoint.X, secondPoint.Y, secondPoint.X, prevYValue2); 587path.AddLine(secondPoint.X, prevYValue2, firstPoint.X, prevYValue1); 588path.AddLine(firstPoint.X, prevYValue1, firstPoint.X, firstPoint.Y); 663if (!(firstPoint.X == secondPoint.X || firstPoint.Y == secondPoint.Y)) 665graph.DrawLine(areaLinePen, firstPoint.X, firstPoint.Y, secondPoint.X, secondPoint.Y); 667if (!(firstPoint.X == secondPoint.X || prevYValue2 == prevYValue1)) 669graph.DrawLine(areaLinePen, secondPoint.X, prevYValue2, firstPoint.X, prevYValue1); 680areaPath.AddLine(firstPoint.X, firstPoint.Y, secondPoint.X, secondPoint.Y); 681areaBottomPath.AddLine(firstPoint.X, prevYValue1, secondPoint.X, prevYValue2); 701coord[2 * i] = pointNew.X; 723linePath.AddLine(firstPoint.X, firstPoint.Y, secondPoint.X, secondPoint.Y); 743coord[2 * i] = pointNew.X; 887 firstPoint.X = (float)Math.Round(firstPoint.X); 888 secondPoint.X = (float)Math.Round(secondPoint.X); 1028labelPosition.X = secondPoint.X; 1046labelPosition.X - sizeLabel.Width / 2, 1369 if(!float.IsNaN(thirdPointPosition.X)) 1375 thirdPoint.Y = (thirdPointPosition.X - fourthPoint.X) / 1376 (thirdPoint.X - fourthPoint.X) * 1381 thirdPoint.X = thirdPointPosition.X; 1388 if(!float.IsNaN(fourthPointPosition.X)) 1394 fourthPoint.Y = (fourthPointPosition.X - fourthPoint.X) / 1395 (thirdPoint.X - fourthPoint.X) * 1400 fourthPoint.X = fourthPointPosition.X; 1528points[0].PointF.X - sizeLabel.Width / 2,
Common\ChartTypes\StackedBarChart.cs (4)
1184labelPosition.X - sizeLabel.Width / 2, 1996 new Point3D(rotationCenter.X, rotationCenter.Y, pointEx.zPosition + pointEx.depth), 1997 new Point3D(rotationCenter.X - 20f, rotationCenter.Y, pointEx.zPosition + pointEx.depth) }; 2088rotationCenter.X - sizeLabel.Width / 2,
Common\ChartTypes\StackedColumnChart.cs (4)
1220absPosition.X = (float)Math.Ceiling(absPosition.X) + 1f; 1241labelPosition.X - sizeLabel.Width / 2, 1879marker3DPosition[0] = new Point3D(labelPosition.X, labelPosition.Y, (float)(pointEx.zPosition + pointEx.depth)); 1953labelPosition.X - sizeLabel.Width / 2,
Common\ChartTypes\StepLineChart.cs (3)
121 PointF point2 = new PointF(points[pointIndex].X, points[pointIndex - 1].Y); 155 coord[2*i] = pointNew.X; 189 coord[2*i] = pointNew.X;
Common\ChartTypes\StockChart.cs (8)
571 new RectangleF(markerPosition.X, markerPosition.Y, markerSize.Width, markerSize.Height)); 586 circCoord[0] = markerPosition.X; 604 new RectangleF(markerPosition.X - relativeMarkerSize.Width/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.Width, relativeMarkerSize.Height), 1398 new RectangleF(markerPosition.X, markerPosition.Y, markerSize.Width, markerSize.Height)); 1413 circCoord[0] = markerPosition.X; 1431 new RectangleF(markerPosition.X - relativeMarkerSize.Width/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.Width, relativeMarkerSize.Height), 1896 markerPosition.X, 1916 markerPosition.X - markerSize.Width / 2f,
Common\General\Axis.cs (29)
1966rectPoints[0].X, 1968rectPoints[1].X - rectPoints[0].X, 2341 new Point3D(rotationCenter.X, rotationCenter.Y, zPosition), 2342 new Point3D(rotationCenter.X - 20f, rotationCenter.Y, zPosition) }; 2360 new Point3D(rotationCenter.X, rotationCenter.Y, zPosition), 2361 new Point3D(rotationCenter.X, rotationCenter.Y - 20f, zPosition) }; 2432if (rotationCenter.IsEmpty || float.IsNaN(rotationCenter.X) || float.IsNaN(rotationCenter.Y)) 2667RectangleF rect = new RectangleF(first.X, first.Y, second.X - first.X, second.Y - first.Y); 2696points3D[i] = new Point3D(points[i].X, points[i].Y, zPositon); 2778if ((horizontal && point1.X > point2.X) || 2781PointF tempPoint = new PointF(point1.X, point1.Y); 2782point1.X = point2.X; 2800new Point3D(point1.X, point1.Y, zPositon), 2801new Point3D(point2.X, point2.Y, zPositon), 2830new Point3D(point1.X, point1.Y, zPositon), 2831new Point3D(point2.X, point2.Y, zPositon), 2861new Point3D(point1.X, point1.Y, ChartArea.areaSceneDepth), 2862new Point3D(point1.X, point1.Y, 0f), 2893new Point3D(point2.X, point2.Y, ChartArea.areaSceneDepth), 2894new Point3D(point2.X, point2.Y, 0f), 4908PointF outsidePoint = new PointF(areaCenterAbs.X, plotAreaRectAbs.Y); 4941PointF[] labelPosition = new PointF[] { new PointF(areaCenterAbs.X, plotAreaRectAbs.Y) }; 4950labelPosition[0].X, 4956curLabelPosition.X = labelPosition[0].X - textSize.Width / 2f; 4961curLabelPosition.X = labelPosition[0].X - textSize.Width / 2f;
Common\General\ChartArea.cs (2)
2738 PointF[] labelPosition = new PointF[] { new PointF(areaCenterAbs.X, plotAreaRectAbs.Y) }; 2745 width -= areaRectAbs.Right - labelPosition[0].X;
Common\General\ChartGraphics.cs (56)
250 if(firstPoint.X == secondPoint.X || 259 (float)Math.Round(firstPoint.X), 261 (float)Math.Round(secondPoint.X), 331 PointF firstShadow = new PointF( firstPoint.X + shadowOffset, firstPoint.Y + shadowOffset); 332 PointF secondShadow = new PointF( secondPoint.X + shadowOffset, secondPoint.Y + shadowOffset ); 722rect.X = point.X - imageScaleRect.Width / 2F; 778rect.X = point.X - ((float)markerSize) / 2F; 857shadowBrush.CenterPoint = new PointF(point.X, point.Y); 861if (focusScale.X < 0) 902points[0].X = point.X - crossSize / 2F; 904points[1].X = point.X - crossSize / 2F; 907points[2].X = point.X - crossLineWidth / 2F; 909points[3].X = point.X - crossLineWidth / 2F; 911points[4].X = point.X + crossLineWidth / 2F; 914points[5].X = point.X + crossLineWidth / 2F; 916points[6].X = point.X + crossSize / 2F; 918points[7].X = point.X + crossSize / 2F; 921points[8].X = point.X + crossLineWidth / 2F; 923points[9].X = point.X + crossLineWidth / 2F; 925points[10].X = point.X - crossLineWidth / 2F; 927points[11].X = point.X - crossLineWidth / 2F; 968shadowBrush.CenterPoint = new PointF(point.X, point.Y); 972if (focusScale.X < 0) 1038diamondRect.X = point.X - ((float)diamondSize) / 2F; 1097shadowBrush.CenterPoint = new PointF(point.X, point.Y); 1101if (focusScale.X < 0) 1719new PointF(absCenter.X - size.Width / 2f, absCenter.Y - size.Height / 2f), 1720new PointF(absCenter.X + size.Width / 2f, absCenter.Y - size.Height / 2f), 1721new PointF(absCenter.X + size.Width / 2f, absCenter.Y + size.Height / 2f), 1722new PointF(absCenter.X - size.Width / 2f, absCenter.Y + size.Height / 2f)}; 1933newRect.X = rotationPoint.X - absPosition.Height / 2F; 2404 newRect.X = centerNotRound.X - absPosition.Height / 2F; 2452 axisPositionAbs.X, 2475 axisPositionAbs.X, 3834 if(focusScale.X < 0) 4678 relative.X = point.X * 100F / ((float)(_width - 1)); 4723 absolute.X = point.X * (_width - 1) / 100F; 5421 points[0].X = position.X - (float)size; 5423 points[1].X = position.X + (float)size; 5425 points[2].X = position.X; 5428 endPoint.X = position.X; 5450 points[0].X = position.X - (float)size; 5452 points[1].X = position.X + (float)size; 5454 points[2].X = position.X; 5457 endPoint.X = position.X; 5476 points[0].X = position.X - (float)shift; 5478 points[1].X = position.X - (float)shift; 5480 points[2].X = position.X - (float)shift - (float)sharp; 5484 endPoint.X = points[1].X; 5486 endPoint.X = points[2].X; 5501 points[0].X = position.X + (float)shift; 5503 points[1].X = position.X + (float)shift; 5505 points[2].X = position.X + (float)shift + (float)sharp; 5509 endPoint.X = points[1].X; 5511 endPoint.X = points[2].X;
Common\General\ChartGraphics3D.cs (113)
350 new Point3D(point1.X, point1.Y, zPositon), 351 new Point3D(point2.X, point2.Y, zPositon), 362 point1.X = Math.Min(point1.X, point2.X); 366 point1.X = Math.Max(point1.X, point2.X); 372 new Point3D(point1.X, point1.Y, 0f), 373 new Point3D(point1.X, point1.Y, area.areaSceneDepth), 388 new Point3D(point1.X, point1.Y, 0f), 389 new Point3D(point1.X, point1.Y, area.areaSceneDepth), 712pieTopRectangle.X = topFirstRectPoint.X; 715pieTopRectangle.Width = topSecondRectPoint.X - topFirstRectPoint.X; 718pieBottomRectangle.X = bottomFirstRectPoint.X; 721pieBottomRectangle.Width = bottomSecondRectPoint.X - bottomFirstRectPoint.X; 739path.AddLine(bottomFirstPoint.X, bottomFirstPoint.Y, bottomSecondPoint.X, bottomSecondPoint.Y); 753path.AddLine(topFirstPoint.X, topFirstPoint.Y, topSecondPoint.X, topSecondPoint.Y); 843pieRectangle.X = firstRectPoint.X; 846pieRectangle.Width = secondRectPoint.X - firstRectPoint.X; 969pieRectangle.X = firstRectPoint.X; 972pieRectangle.Width = secondRectPoint.X - firstRectPoint.X; 1305 if( (frontLinePoint1.X == polygonPoints[0].X && 1307 frontLinePoint2.X == polygonPoints[1].X && 1310 (frontLinePoint1.X == polygonPoints[1].X && 1312 frontLinePoint2.X == polygonPoints[0].X && 1315 (frontLinePoint1.X == polygonPoints[3].X && 1317 frontLinePoint2.X == polygonPoints[2].X && 1320 (frontLinePoint1.X == polygonPoints[2].X && 1322 frontLinePoint2.X == polygonPoints[3].X && 1332 (float)Math.Round(frontLinePoint1.X), 1334 (float)Math.Round(frontLinePoint2.X), 1469 points3D[index] = new Point3D(polygonPointsFront[index].X, polygonPointsFront[index].Y, positionZ); 1620 dp1.xPosition = splinePathPoints[pIndex - 1].X; 1625 dp2.xPosition = splinePathPoints[pIndex].X; 1632 dp2.xPosition = splinePathPoints[pIndex - 1].X; 1637 dp1.xPosition = splinePathPoints[pIndex].X; 2294 (float)Math.Round(polygonPoints[0].X), 2296 (float)Math.Round(polygonPoints[1].X), 2305 (float)Math.Round(polygonPoints[0].X), 2307 (float)Math.Round(polygonPoints[1].X), 2329 (float)Math.Round(polygonPoints[3].X), 2331 (float)Math.Round(polygonPoints[0].X), 2340 (float)Math.Round(polygonPoints[3].X), 2342 (float)Math.Round(polygonPoints[0].X), 2359 (float)Math.Round(polygonPoints[1].X), 2361 (float)Math.Round(polygonPoints[2].X), 2370 (float)Math.Round(polygonPoints[1].X), 2372 (float)Math.Round(polygonPoints[2].X), 2390 (float)Math.Round(frontLinePoint1.X), 2392 (float)Math.Round(frontLinePoint2.X), 3483 marker3DPosition[0] = new Point3D(point.X, point.Y, positionZ); 3509 rect.X = markerRotatedPosition.X - ((float)markerSize)/2F; 3531rect.X = markerRotatedPosition.X - ((float)markerSize) / 2F; 3574shadowBrush.CenterPoint = new PointF(markerRotatedPosition.X, markerRotatedPosition.Y); 3578if (focusScale.X < 0) 3607Point3D[] centerPoint = new Point3D[] { new Point3D(point.X, point.Y, positionZ + markerRelativeSize.Width) }; 3632rectNonRotated.X = point.X - ((float)markerRelativeSize.Width) / 2F; 3905 result.Y = (result.X - x3) * (y4 - y3); 3913 result.Y = (result.X - x1) * (y2 - y1); 3927 result.Y = a1*result.X + b1; 4088 (cubePoints[4].PointF.X - cubePoints[5].PointF.X) / 4182 centralLinePoint.X = boundsRectMiddlePoint.X + 100f; 4187 centralLinePoint.X = boundsRectMiddlePoint.X; 4192 centralLinePoint.X = boundsRectMiddlePoint.X + 100f; 4193 centralLinePoint.Y = (float)(Math.Tan(centralLineAngle) * centralLinePoint.X); 4194 centralLinePoint.Y += (float)(boundsRectMiddlePoint.Y - Math.Tan(centralLineAngle) * boundsRectMiddlePoint.X); 4199 centralLinePoint.X = (float)(centralLinePoint.Y - (boundsRectMiddlePoint.Y - Math.Tan(centralLineAngle) * boundsRectMiddlePoint.X)); 4205 boundsRectMiddlePoint.X, boundsRectMiddlePoint.Y, 4206 centralLinePoint.X, centralLinePoint.Y, 4207 leftSideLinePoint.X, leftSideLinePoint.Y, 4208 leftOppSideLinePoint.X, leftOppSideLinePoint.Y); 4211 boundsRectMiddlePoint.X, boundsRectMiddlePoint.Y, 4212 centralLinePoint.X, centralLinePoint.Y, 4213 rightSideLinePoint.X, rightSideLinePoint.Y, 4214 rightOppSideLinePoint.X, rightOppSideLinePoint.Y); 4217 if(middlePoint1.X != middlePoint2.X || middlePoint1.Y != middlePoint2.Y) 4369 if(ellipsePoints[leftBottomPoint].X > ellipsePoints[pointIndex].X) 4373 if(ellipsePoints[rigthTopPoint].X < ellipsePoints[pointIndex].X) 4417 float linePointX = oppositeEllipsePoints[pointOppositeIndex].X - ellipsePoints[pointIndex].X; 4431 x += ellipsePoints[pointIndex].X; 4433 if(x > ellipsePoints[innerPointIndex].X) 4437 if(x < ellipsePoints[innerPointIndex].X) 4459 x += ellipsePoints[pointIndex].X; 4461 if(x > oppositeEllipsePoints[innerPointIndex].X) 4465 if(x < oppositeEllipsePoints[innerPointIndex].X) 4478 if(oppositeEllipsePoints[pointOppositeIndex].X == ellipsePoints[pointIndex].X) 4484 linePointY /= oppositeEllipsePoints[pointOppositeIndex].X - ellipsePoints[pointIndex].X; 4496 y *= ellipsePoints[innerPointIndex].X - ellipsePoints[pointIndex].X; 4524 y *= oppositeEllipsePoints[innerPointIndex].X - ellipsePoints[pointIndex].X; 4640return this._coordXY.X; 4706this._coordXY = new PointF(value.X, value.Y);
Common\General\GridTickMarks.cs (47)
487 second.X = first.X; 494 second.X = first.X; 501 RectangleF rect = new RectangleF( first.X - 0.5f, first.Y - 0.5f, Math.Abs( second.X - first.X ) + 1, Math.Abs( second.Y - first.Y ) + 1 ); 515 RectangleF rect = new RectangleF( first.X - 0.5f, first.Y - 0.5f, Math.Abs( second.X - first.X ) + 1, Math.Abs( second.Y - first.Y ) + 1 ); 736 second.X = first.X; 743 second.X = first.X; 750 RectangleF rect = new RectangleF( first.X - 0.5f, first.Y - 0.5f, Math.Abs( second.X - first.X ) + 1, Math.Abs( second.Y - first.Y ) + 1 ); 865 point3 = new Point3D(point1.X, point1.Y, - area.areaSceneWallWidth.Width); 866 point4 = new Point3D(point1.X, point1.Y, 0f); 873 point3 = new Point3D(point1.X, axisPosition, wallZPosition); 874 point4 = new Point3D(point1.X, point1.Y, - _size - area.areaSceneWallWidth.Width); 881 point3 = new Point3D(point1.X, axisPosition, wallZPosition); 882 point4 = new Point3D(point1.X, point1.Y, - _size/2 - area.areaSceneWallWidth.Width); 906 point3 = new Point3D(point1.X, point1.Y, - area.areaSceneWallWidth.Width); 907 point4 = new Point3D(point1.X, point1.Y, 0f); 947 point3 = new Point3D(point2.X, point2.Y, - area.areaSceneWallWidth.Width); 948 point4 = new Point3D(point2.X, point2.Y, 0f); 983 new Point3D(point1.X, point1.Y, wallZPosition), 984 new Point3D(point2.X, point2.Y, wallZPosition), 1484 second.X = first.X; 1498if (Math.Abs(first.X - second.X) > Math.Abs(first.Y - second.Y)) 1500path.AddLine(first.X, first.Y - 1, second.X, second.Y - 1); 1501path.AddLine(second.X, second.Y + 1, first.X, first.Y + 1); 1506path.AddLine(first.X - 1, first.Y, second.X - 1, second.Y); 1507path.AddLine(second.X + 1, second.Y, first.X + 1, first.Y); 1583 second.X = first.X; 1593if (Math.Abs(first.X - second.X) > Math.Abs(first.Y - second.Y)) 1595path.AddLine(first.X, first.Y - 1, second.X, second.Y - 1); 1596path.AddLine(second.X, second.Y + 1, first.X, first.Y + 1); 1601path.AddLine(first.X - 1, first.Y, second.X - 1, second.Y); 1602path.AddLine(second.X + 1, second.Y, first.X + 1, first.Y);
Common\General\ImageMap.cs (7)
251 coord[index++] = point.X; 366transformedCoord[0] = p.X; 369transformedCoord[2] = p.X; 374transformedCoord[0] = p.X; 377transformedCoord[2] = p.X; 399transformedCoord[index] = pConverted.X; 860 coord[i++] = point.X;
Common\General\Label.cs (4)
1162this._axis.ChartArea.circularCenter.X, 1329 labelPosition.X = position.X - size.Width; 1333 labelPosition.X = position.X; 1337 labelPosition.X = position.X - size.Width/2F;
Common\General\Selection.cs (16)
859 circleCenter.X - circleRadius.Width, 2037relativeX = this.Graph.GetRelativePoint(new PointF(x, y)).X; 2533RectangleF rect = RectangleF.FromLTRB(points[i].X, points[i].Y, points[i + 2].X, points[i + 2].Y); 2809PointF middleP0P3 = new PointF((points[i].X + points[i + 3].X) / 2f, (points[i].Y + points[i + 3].Y) / 2f); 2810PointF middleP1P2 = new PointF((points[i + 1].X + points[i + 2].X) / 2f, (points[i + 1].Y + points[i + 2].Y) / 2f); 2830if (!(float.IsNaN(pp.X) || float.IsNaN(pp.Y))) 3010if (float.IsNaN(pp.X) || float.IsNaN(pp.Y)) 3084RectangleF rect1 = new RectangleF(first.X, first.Y, second.X - first.X, second.Y - first.Y); 3107points[i] = new Point3D(((PointF)list1[i]).X, ((PointF)list1[i]).Y, zPositon); 3147points[i] = new Point3D(((PointF)list1[i]).X, ((PointF)list1[i]).Y, zPositon); 3308annot3DPoints[0] = new Point3D(pf.X, pf.Y, positionZ);
Common\General\SmartLabels.cs (18)
1012 markerPositionAbs.X, 1014 connectorPosition.X, 1222 if(point1.X == point2.X) 1224 if(point1.X >= rect.X && point1.X <= rect.Right) 1244 if(point1.X < rect.X && point2.X < rect.X) 1248 if(point1.X > rect.Right && point2.X > rect.Right) 1259 if(point1.X < rect.X && point2.X < rect.X) 1263 else if(point1.X > rect.Right && point2.X > rect.Right) 1426 labelPosition.X = position.X - size.Width; 1435 labelPosition.X = position.X; 1443 labelPosition.X = position.X - size.Width/2F; 1487 PointF position = new PointF(markerPosition.X, markerPosition.Y);
Common\General\StripLine.cs (10)
451 point2.X = point1.X; 485 lineRect.X = point1.X; 487 lineRect.Width = point2.X - point1.X; 492 lineRect.X = point1.X - relBorderWidth.Width / 2f; 623 rect.X = point1.X; 626 rect.Width = point2.X - rect.X; 757rotationCenterProjection[0] = new Point3D(rotationCenter.X, rotationCenter.Y, zPositon); 760rotationCenterProjection[1] = new Point3D(rotationCenter.X, rotationCenter.Y - 20f, zPositon); 764rotationCenterProjection[1] = new Point3D(rotationCenter.X - 20f, rotationCenter.Y, zPositon);
WinForm\Utilities\AccessibleObject.cs (3)
313if (this._chartScale.X != 1f || this._chartScale.Y != 1f) 316rect.X = (int)(rect.X * this._chartScale.X); 319rectSize.Width *= this._chartScale.X;
System.Workflow.ComponentModel (4)
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
1219Zoom = Convert.ToInt32((Math.Min(zoom.X, zoom.Y) * 100));
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (1)
187Point newCenter = new Point((int)((float)parentView.HScrollBar.Maximum * relativeCenterF.X), (int)((float)parentView.VScrollBar.Maximum * relativeCenterF.Y));
AuthoringOM\Design\WorkflowLayouts.cs (1)
749this.scaling = Math.Min(scaleFactor.X, scaleFactor.Y);
AuthoringOM\Design\WorkflowView.cs (1)
358Point newCenter = new Point((int)((float)hScrollBar.Maximum * oldRelativeCenter.X), (int)((float)vScrollBar.Maximum * oldRelativeCenter.Y));