673 writes to X
System.Drawing (3)
commonui\System\Drawing\Graphics.cs (2)
4145
currentOffset.
X
= elements[4];
4161
totalOffset.
X
+= currentOffset.X;
commonui\System\Drawing\GraphicsContext.cs (1)
64
this.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)
297
point1.
X
= (float)Math.Round(point1.X);
299
point2.
X
= (float)Math.Round(point2.X);
303
axisPos.
X
= (float)VAxis.GetPosition(this.VAxis.Crossing);
306
axisPos.
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;
2047
rotationCenter.
X
= rectLabel.X + size.Width / 2;
2051
rotationCenter.
X
= rectLabel.Right - size.Width / 2;
2055
rotationCenter.
X
= (rectLabel.Left + rectLabel.Right) / 2;
Common\ChartTypes\ColumnChart.cs (4)
1112
markerPosition.
X
= intersection.X + intersection.Width / 2f;
1239
labelPosition.
X
= intersection.X + intersection.Width / 2f;
1353
labelPosition.
X
= columnPosition.X + columnPosition.Width / 2f;
1361
labelPosition.
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;
876
first.
X
= (first.X + second.X) / 2f;
899
second.
X
= (first.X + second.X) / 2f;
1018
intersectionPoint.
X
= (pointY - firstPoint.Y) *
1036
intersectionPoint.
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;
2737
point.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;
5462
labelPoint.
X
= points[(int)PiePoints.TopLabelLineout].X + 10;
5482
labelPoint.
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;
795
position.
X
-= sizeMarker.Height / 1.75F + horizontalSpacing / 2f;
799
position.
X
-= sizeMarker.Height / 1.75F + horizontalSpacing / 2f;
805
position.
X
-= sizeMarker.Height / 1.75F + horizontalSpacing / 2f;
811
position.
X
+= sizeMarker.Height / 1.75F + horizontalSpacing / 2f;
815
position.
X
+= sizeMarker.Height / 1.75F + horizontalSpacing / 2f;
821
position.
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;
1163
position.
X
-= sizeMarker.Height / 1.75F;
1167
position.
X
-= sizeMarker.Height / 1.75F;
1173
position.
X
-= sizeMarker.Height / 1.75F;
1179
position.
X
+= sizeMarker.Height / 1.75F;
1183
position.
X
+= sizeMarker.Height / 1.75F;
1189
position.
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;
1028
labelPosition.
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)
1078
labelPosition.
X
= rectangle.X + rectangle.Width / 2f;
1128
labelPosition.
X
= rectangle.X + sizeFont.Width / 2f;
1132
labelPosition.
X
= rectangle.Right - sizeFont.Width / 2f;
1136
labelPosition.
X
= rectangle.Right + sizeFont.Width / 2f;
1960
rotationCenter.
X
= rectLabel.X + size.Width / 2;
1964
rotationCenter.
X
= rectLabel.Right - size.Width / 2;
1968
rotationCenter.
X
= (rectLabel.Left + rectLabel.Right) / 2;
Common\ChartTypes\StackedColumnChart.cs (4)
1158
labelPosition.
X
= rectangle.X + rectangle.Width / 2f;
1220
absPosition.
X
= (float)Math.Ceiling(absPosition.X) + 1f;
1874
labelPosition.
X
= rectangle.X + rectangle.Width / 2f;
1882
labelPosition.
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)
2008
center.
X
= titlePosition.X + titlePosition.Width / 2F;
2313
rotationCenter.
X
= ChartArea.PlotAreaPosition.X + axisTitleSize.Width / 2f;
2317
rotationCenter.
X
= ChartArea.PlotAreaPosition.Right - axisTitleSize.Width / 2f;
2325
rotationCenter.
X
= ChartArea.PlotAreaPosition.X + axisTitleSize.Width / 2f;
2329
rotationCenter.
X
= ChartArea.PlotAreaPosition.Right - axisTitleSize.Width / 2f;
2391
rotationCenter.
X
-= dX;
2396
rotationCenter.
X
+= dX;
2405
rotationCenter.
X
+= dX;
2409
rotationCenter.
X
-= dX;
2419
rotationCenter.
X
-= dX;
2423
rotationCenter.
X
+= dX;
2480
first.
X
= (float)GetAxisPosition();
2482
second.
X
= (float)GetAxisPosition();
2493
first.
X
= (float)GetAxisPosition();
2495
second.
X
= (float)GetAxisPosition();
2506
first.
X
= PlotAreaPosition.X;
2508
second.
X
= PlotAreaPosition.Right;
2519
first.
X
= PlotAreaPosition.X;
2521
second.
X
= PlotAreaPosition.Right;
2632
first.
X
= axisPosition - (labelSize + markSize);
2634
second.
X
= axisPosition;
2639
first.
X
= axisPosition;
2641
second.
X
= axisPosition + labelSize + markSize;
2646
first.
X
= PlotAreaPosition.X;
2648
second.
X
= PlotAreaPosition.Right;
2653
first.
X
= PlotAreaPosition.X;
2655
second.
X
= PlotAreaPosition.Right;
2782
point1.
X
= point2.X;
Common\General\ChartGraphics.cs (58)
863
focusScale.
X
= 0;
902
points[0].
X
= point.X - crossSize / 2F;
904
points[1].
X
= point.X - crossSize / 2F;
907
points[2].
X
= point.X - crossLineWidth / 2F;
909
points[3].
X
= point.X - crossLineWidth / 2F;
911
points[4].
X
= point.X + crossLineWidth / 2F;
914
points[5].
X
= point.X + crossLineWidth / 2F;
916
points[6].
X
= point.X + crossSize / 2F;
918
points[7].
X
= point.X + crossSize / 2F;
921
points[8].
X
= point.X + crossLineWidth / 2F;
923
points[9].
X
= point.X + crossLineWidth / 2F;
925
points[10].
X
= point.X - crossLineWidth / 2F;
927
points[11].
X
= point.X - crossLineWidth / 2F;
974
focusScale.
X
= 0;
1006
points[0].
X
= rect.X;
1008
points[1].
X
= rect.X + rect.Width / 2F;
1010
points[2].
X
= rect.Right;
1012
points[3].
X
= rect.X + rect.Width / 2F;
1061
points[0].
X
= rect.X;
1063
points[1].
X
= rect.X + rect.Width / 2F;
1065
points[2].
X
= rect.Right;
1103
focusScale.
X
= 0;
1846
rotationPoint.
X
= absPosition.Right;
1851
rotationPoint.
X
= absPosition.Left;
1856
rotationPoint.
X
= absPosition.X + absPosition.Width / 2F;
1861
rotationPoint.
X
= absPosition.X + absPosition.Width / 2F;
1872
rotationPoint.
X
= absPosition.X + absPosition.Width / 2F;
1928
rotationPoint.
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);
3580
focusScale.
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));
4644
this._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;
486
first.
X
= (float)Axis.GetLinearPosition(current);
487
second.
X
= first.X;
493
first.
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;
735
first.
X
= (float)Axis.GetLinearPosition(position);
736
second.
X
= first.X;
742
first.
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)
396
pOriginal.
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)
3043
first.
X
= (float)axis.GetAxisPosition();
3045
second.
X
= (float)axis.GetAxisPosition();
3047
first.
X
-= axis.labelSize + axis.markSize;
3052
first.
X
= (float)axis.GetAxisPosition();
3054
second.
X
= (float)axis.GetAxisPosition();
3056
second.
X
+= axis.labelSize + axis.markSize;
3061
first.
X
= axis.PlotAreaPosition.X;
3063
second.
X
= axis.PlotAreaPosition.Right;
3070
first.
X
= axis.PlotAreaPosition.X;
3072
second.
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;
725
rotationCenter.
X
= rect.X + size.Width / 2 + sizeBorder.Width;
729
rotationCenter.
X
= rect.Right - size.Width / 2 - sizeBorder.Width;
733
rotationCenter.
X
= (rect.Left + rect.Right) / 2;
Common\General\Title.cs (1)
1649
center.
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)
297
point1.
X
= (float)Math.Round(point1.X);
299
point2.
X
= (float)Math.Round(point2.X);
303
axisPos.
X
= (float)VAxis.GetPosition(this.VAxis.Crossing);
306
axisPos.
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;
2047
rotationCenter.
X
= rectLabel.X + size.Width / 2;
2051
rotationCenter.
X
= rectLabel.Right - size.Width / 2;
2055
rotationCenter.
X
= (rectLabel.Left + rectLabel.Right) / 2;
Common\ChartTypes\ColumnChart.cs (4)
1112
markerPosition.
X
= intersection.X + intersection.Width / 2f;
1239
labelPosition.
X
= intersection.X + intersection.Width / 2f;
1353
labelPosition.
X
= columnPosition.X + columnPosition.Width / 2f;
1361
labelPosition.
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;
876
first.
X
= (first.X + second.X) / 2f;
899
second.
X
= (first.X + second.X) / 2f;
1018
intersectionPoint.
X
= (pointY - firstPoint.Y) *
1036
intersectionPoint.
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;
2737
point.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;
5462
labelPoint.
X
= points[(int)PiePoints.TopLabelLineout].X + 10;
5482
labelPoint.
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;
795
position.
X
-= sizeMarker.Height / 1.75F + horizontalSpacing / 2f;
799
position.
X
-= sizeMarker.Height / 1.75F + horizontalSpacing / 2f;
805
position.
X
-= sizeMarker.Height / 1.75F + horizontalSpacing / 2f;
811
position.
X
+= sizeMarker.Height / 1.75F + horizontalSpacing / 2f;
815
position.
X
+= sizeMarker.Height / 1.75F + horizontalSpacing / 2f;
821
position.
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;
1163
position.
X
-= sizeMarker.Height / 1.75F;
1167
position.
X
-= sizeMarker.Height / 1.75F;
1173
position.
X
-= sizeMarker.Height / 1.75F;
1179
position.
X
+= sizeMarker.Height / 1.75F;
1183
position.
X
+= sizeMarker.Height / 1.75F;
1189
position.
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;
1028
labelPosition.
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)
1078
labelPosition.
X
= rectangle.X + rectangle.Width / 2f;
1128
labelPosition.
X
= rectangle.X + sizeFont.Width / 2f;
1132
labelPosition.
X
= rectangle.Right - sizeFont.Width / 2f;
1136
labelPosition.
X
= rectangle.Right + sizeFont.Width / 2f;
1960
rotationCenter.
X
= rectLabel.X + size.Width / 2;
1964
rotationCenter.
X
= rectLabel.Right - size.Width / 2;
1968
rotationCenter.
X
= (rectLabel.Left + rectLabel.Right) / 2;
Common\ChartTypes\StackedColumnChart.cs (4)
1158
labelPosition.
X
= rectangle.X + rectangle.Width / 2f;
1220
absPosition.
X
= (float)Math.Ceiling(absPosition.X) + 1f;
1874
labelPosition.
X
= rectangle.X + rectangle.Width / 2f;
1882
labelPosition.
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)
2008
center.
X
= titlePosition.X + titlePosition.Width / 2F;
2313
rotationCenter.
X
= ChartArea.PlotAreaPosition.X + axisTitleSize.Width / 2f;
2317
rotationCenter.
X
= ChartArea.PlotAreaPosition.Right - axisTitleSize.Width / 2f;
2325
rotationCenter.
X
= ChartArea.PlotAreaPosition.X + axisTitleSize.Width / 2f;
2329
rotationCenter.
X
= ChartArea.PlotAreaPosition.Right - axisTitleSize.Width / 2f;
2391
rotationCenter.
X
-= dX;
2396
rotationCenter.
X
+= dX;
2405
rotationCenter.
X
+= dX;
2409
rotationCenter.
X
-= dX;
2419
rotationCenter.
X
-= dX;
2423
rotationCenter.
X
+= dX;
2480
first.
X
= (float)GetAxisPosition();
2482
second.
X
= (float)GetAxisPosition();
2493
first.
X
= (float)GetAxisPosition();
2495
second.
X
= (float)GetAxisPosition();
2506
first.
X
= PlotAreaPosition.X;
2508
second.
X
= PlotAreaPosition.Right;
2519
first.
X
= PlotAreaPosition.X;
2521
second.
X
= PlotAreaPosition.Right;
2632
first.
X
= axisPosition - (labelSize + markSize);
2634
second.
X
= axisPosition;
2639
first.
X
= axisPosition;
2641
second.
X
= axisPosition + labelSize + markSize;
2646
first.
X
= PlotAreaPosition.X;
2648
second.
X
= PlotAreaPosition.Right;
2653
first.
X
= PlotAreaPosition.X;
2655
second.
X
= PlotAreaPosition.Right;
2782
point1.
X
= point2.X;
Common\General\ChartGraphics.cs (58)
863
focusScale.
X
= 0;
902
points[0].
X
= point.X - crossSize / 2F;
904
points[1].
X
= point.X - crossSize / 2F;
907
points[2].
X
= point.X - crossLineWidth / 2F;
909
points[3].
X
= point.X - crossLineWidth / 2F;
911
points[4].
X
= point.X + crossLineWidth / 2F;
914
points[5].
X
= point.X + crossLineWidth / 2F;
916
points[6].
X
= point.X + crossSize / 2F;
918
points[7].
X
= point.X + crossSize / 2F;
921
points[8].
X
= point.X + crossLineWidth / 2F;
923
points[9].
X
= point.X + crossLineWidth / 2F;
925
points[10].
X
= point.X - crossLineWidth / 2F;
927
points[11].
X
= point.X - crossLineWidth / 2F;
974
focusScale.
X
= 0;
1006
points[0].
X
= rect.X;
1008
points[1].
X
= rect.X + rect.Width / 2F;
1010
points[2].
X
= rect.Right;
1012
points[3].
X
= rect.X + rect.Width / 2F;
1061
points[0].
X
= rect.X;
1063
points[1].
X
= rect.X + rect.Width / 2F;
1065
points[2].
X
= rect.Right;
1103
focusScale.
X
= 0;
1846
rotationPoint.
X
= absPosition.Right;
1851
rotationPoint.
X
= absPosition.Left;
1856
rotationPoint.
X
= absPosition.X + absPosition.Width / 2F;
1861
rotationPoint.
X
= absPosition.X + absPosition.Width / 2F;
1872
rotationPoint.
X
= absPosition.X + absPosition.Width / 2F;
1928
rotationPoint.
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);
3580
focusScale.
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));
4644
this._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;
486
first.
X
= (float)Axis.GetLinearPosition(current);
487
second.
X
= first.X;
493
first.
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;
735
first.
X
= (float)Axis.GetLinearPosition(position);
736
second.
X
= first.X;
742
first.
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)
396
pOriginal.
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)
3043
first.
X
= (float)axis.GetAxisPosition();
3045
second.
X
= (float)axis.GetAxisPosition();
3047
first.
X
-= axis.labelSize + axis.markSize;
3052
first.
X
= (float)axis.GetAxisPosition();
3054
second.
X
= (float)axis.GetAxisPosition();
3056
second.
X
+= axis.labelSize + axis.markSize;
3061
first.
X
= axis.PlotAreaPosition.X;
3063
second.
X
= axis.PlotAreaPosition.Right;
3070
first.
X
= axis.PlotAreaPosition.X;
3072
second.
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;
725
rotationCenter.
X
= rect.X + size.Width / 2 + sizeBorder.Width;
729
rotationCenter.
X
= rect.Right - size.Width / 2 - sizeBorder.Width;
733
rotationCenter.
X
= (rect.Left + rect.Right) / 2;
Common\General\Title.cs (1)
1649
center.
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)
24
X = pt.
X
;
commonui\System\Drawing\Advanced\GraphicsPath.cs (9)
490
pt.
X
,
604
pt.
X
,
689
AddLine(pt1.
X
, pt1.Y, pt2.
X
, pt2.Y);
833
AddBezier(pt1.
X
, pt1.Y, pt2.
X
, pt2.Y, pt3.
X
, pt3.Y, pt4.
X
, pt4.Y);
1363
GPRECTF rectf = new GPRECTF(origin.
X
, origin.Y, 0, 0);
commonui\System\Drawing\Advanced\Matrix.cs (4)
375
status = SafeNativeMethods.Gdip.GdipTranslateMatrix(new HandleRef(this, nativeMatrix), point.
X
, point.Y, order);
377
status |= SafeNativeMethods.Gdip.GdipTranslateMatrix(new HandleRef(this, nativeMatrix), -point.
X
, -point.Y, order);
380
status = SafeNativeMethods.Gdip.GdipTranslateMatrix(new HandleRef(this, nativeMatrix), -point.
X
, -point.Y, order);
382
status |= SafeNativeMethods.Gdip.GdipTranslateMatrix(new HandleRef(this, nativeMatrix), point.
X
, point.Y, order);
commonui\System\Drawing\Advanced\PathGradientBrush.cs (1)
823
int 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'/>
147
return 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
169
return new PointF(pt.
X
+ sz.Width, pt.Y + sz.Height);
178
return new PointF(pt.
X
- sz.Width, pt.Y - sz.Height);
187
return new PointF(pt.
X
+ sz.Width, pt.Y + sz.Height);
196
return new PointF(pt.
X
- sz.Width, pt.Y - sz.Height);
207
comp.
X
== this.
X
&&
commonui\System\Drawing\Advanced\RectangleF.cs (4)
65
this.x = location.
X
;
99
X = value.
X
;
321
return Contains(pt.
X
, pt.Y);
453
Offset(pos.
X
, pos.Y);
commonui\System\Drawing\Advanced\SizeF.cs (1)
67
width = pt.
X
;
commonui\System\Drawing\Graphics.cs (15)
1166
DrawLine(pen, pt1.
X
, pt1.Y, pt2.
X
, pt2.Y);
1338
DrawBezier(pen, pt1.
X
, pt1.Y, pt2.
X
, pt2.Y, pt3.
X
, pt3.Y, pt4.
X
, pt4.Y);
2463
DrawString(s, font, brush, new RectangleF(point.
X
, point.Y, 0, 0), null);
2477
DrawString(s, font, brush, new RectangleF(point.
X
, point.Y, 0, 0), format);
2550
grf.X = origin.
X
;
2752
DrawImage(image, point.
X
, point.Y);
4153
cumulTransform.Translate(context.TransformOffset.
X
, context.TransformOffset.Y);
4160
cumulClip.Translate(currentOffset.
X
, currentOffset.Y);
4161
totalOffset.X += currentOffset.
X
;
4184
cumulClip.Translate(-totalOffset.
X
, -totalOffset.Y);
4333
int status = SafeNativeMethods.Gdip.GdipIsVisiblePoint(new HandleRef(this, this.NativeGraphics), point.
X
, point.Y, out isVisible);
commonui\System\Drawing\Point.cs (3)
209
return new Point((int)Math.Ceiling(value.
X
), (int)Math.Ceiling(value.Y));
218
return new Point((int)value.
X
, (int)value.Y);
227
return new Point((int)Math.Round(value.
X
), (int)Math.Round(value.Y));
commonui\System\Drawing\Region.cs (1)
817
int 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)
297
point1.X = (float)Math.Round(point1.
X
);
299
point2.X = (float)Math.Round(point2.
X
);
306
axisPos.X = (float)Math.Round(axisPos.
X
);
339
path.AddLine(point1.
X
, axisPos.Y, point1.
X
, point1.Y);
348
path.AddLine(point2.
X
, point2.Y, point2.
X
, axisPos.Y);
426
if (!(points[pointIndex - 1].
X
== points[pointIndex].
X
||
451
areaPath.AddLine(point1.
X
, axisPos.Y, point1.
X
, point1.Y);
496
mapAreaPath.AddLine(point1.
X
, axisPos.Y, point1.
X
, point1.Y);
506
mapAreaPath.AddLine(point2.
X
, point2.Y, point2.
X
, axisPos.Y);
507
mapAreaPath.AddLine(point2.
X
, axisPos.Y, point1.
X
, axisPos.Y);
516
coord[2 * i] = pointNew.
X
;
572
coord[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) };
2118
rotationCenter.
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),
1358
marker3DPosition[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
);
613
coord[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;
876
first.X = (first.
X
+ second.
X
) / 2f;
879
if (Math.Abs(first.
X
- second.
X
) > Math.Abs(first.Y - second.Y))
881
path.AddLine(first.
X
, first.Y - width, second.
X
, second.Y - width);
882
path.AddLine(second.
X
, second.Y + width, first.
X
, first.Y + width);
887
path.AddLine(first.
X
- width, first.Y, second.
X
- width, second.Y);
888
path.AddLine(second.
X
+ width, second.Y, first.
X
+ width, first.Y);
899
second.X = (first.
X
+ second.
X
) / 2f;
908
if (Math.Abs(first.
X
- second.
X
) > Math.Abs(first.Y - second.Y))
910
path.AddLine(first.
X
, first.Y - width, second.
X
, second.Y - width);
911
path.AddLine(second.
X
, second.Y + width, first.
X
, first.Y + width);
916
path.AddLine(first.
X
- width, first.Y, second.
X
- width, second.Y);
917
path.AddLine(second.
X
+ width, second.Y, first.
X
+ width, first.Y);
954
coord[2 * i] = pointNew.
X
;
968
return point.
X
<= -maxGDIRange || point.
X
>= maxGDIRange || point.Y <= -maxGDIRange || point.Y >= maxGDIRange;
987
bool topBottomLine = (Math.Abs(pt2.Y - pt1.Y) > Math.Abs(pt2.
X
- pt1.
X
));
1019
(secondPoint.
X
- firstPoint.
X
) /
1021
firstPoint.
X
;
1037
intersectionPoint.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
;
1343
x3Overlap = -relativeSize.Width * shift * expShift + middlePoint.
X
- relativeSize.Width / 10 * labelsHorizontalLineSize;
1344
x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.Width * shift * expShift + middlePoint.
X
- relativeSize.Width / 10 * labelsHorizontalLineSize;
1360
x3Overlap = relativeSize.Width * shift * expShift + middlePoint.
X
+ relativeSize.Width / 10 * labelsHorizontalLineSize;
1361
x3 = (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;
1861
coord[2 * index] = pointNew[index].
X
;
2565
rectangle = new RectangleF( middlePoint.
X
- relativeSize.Width / 2, middlePoint.Y - relativeSize.Height / 2, relativeSize.Width, relativeSize.Height );
2737
point.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 ));
5460
if (points[(int)PiePoints.TopLabelLineout].
X
> labelPoint.
X
)
5462
labelPoint.X = points[(int)PiePoints.TopLabelLineout].
X
+ 10;
5465
labelPosition.X = labelPoint.
X
;
5480
if (points[(int)PiePoints.TopLabelLineout].
X
< labelPoint.
X
)
5482
labelPoint.X = points[(int)PiePoints.TopLabelLineout].
X
- 10;
5486
labelPosition.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),
777
PointF 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
;
1144
PointF 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);
538
graph.DrawLine(areaLinePen, highPoint1.
X
, lowPoint1.Y, highPoint1.
X
, highPoint1.Y);
542
graph.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
);
585
path.AddLine(firstPoint.
X
, firstPoint.Y, secondPoint.
X
, secondPoint.Y);
586
path.AddLine(secondPoint.
X
, secondPoint.Y, secondPoint.
X
, prevYValue2);
587
path.AddLine(secondPoint.
X
, prevYValue2, firstPoint.
X
, prevYValue1);
588
path.AddLine(firstPoint.
X
, prevYValue1, firstPoint.
X
, firstPoint.Y);
663
if (!(firstPoint.
X
== secondPoint.
X
|| firstPoint.Y == secondPoint.Y))
665
graph.DrawLine(areaLinePen, firstPoint.
X
, firstPoint.Y, secondPoint.
X
, secondPoint.Y);
667
if (!(firstPoint.
X
== secondPoint.
X
|| prevYValue2 == prevYValue1))
669
graph.DrawLine(areaLinePen, secondPoint.
X
, prevYValue2, firstPoint.
X
, prevYValue1);
680
areaPath.AddLine(firstPoint.
X
, firstPoint.Y, secondPoint.
X
, secondPoint.Y);
681
areaBottomPath.AddLine(firstPoint.
X
, prevYValue1, secondPoint.
X
, prevYValue2);
701
coord[2 * i] = pointNew.
X
;
723
linePath.AddLine(firstPoint.
X
, firstPoint.Y, secondPoint.
X
, secondPoint.Y);
743
coord[2 * i] = pointNew.
X
;
887
firstPoint.X = (float)Math.Round(firstPoint.
X
);
888
secondPoint.X = (float)Math.Round(secondPoint.
X
);
1028
labelPosition.X = secondPoint.
X
;
1046
labelPosition.
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
;
1528
points[0].PointF.
X
- sizeLabel.Width / 2,
Common\ChartTypes\StackedBarChart.cs (4)
1184
labelPosition.
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) };
2088
rotationCenter.
X
- sizeLabel.Width / 2,
Common\ChartTypes\StackedColumnChart.cs (4)
1220
absPosition.X = (float)Math.Ceiling(absPosition.
X
) + 1f;
1241
labelPosition.
X
- sizeLabel.Width / 2,
1879
marker3DPosition[0] = new Point3D(labelPosition.
X
, labelPosition.Y, (float)(pointEx.zPosition + pointEx.depth));
1953
labelPosition.
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)
1966
rectPoints[0].
X
,
1968
rectPoints[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) };
2432
if (rotationCenter.IsEmpty || float.IsNaN(rotationCenter.
X
) || float.IsNaN(rotationCenter.Y))
2667
RectangleF rect = new RectangleF(first.
X
, first.Y, second.
X
- first.
X
, second.Y - first.Y);
2696
points3D[i] = new Point3D(points[i].
X
, points[i].Y, zPositon);
2778
if ((horizontal && point1.
X
> point2.
X
) ||
2781
PointF tempPoint = new PointF(point1.
X
, point1.Y);
2782
point1.X = point2.
X
;
2800
new Point3D(point1.
X
, point1.Y, zPositon),
2801
new Point3D(point2.
X
, point2.Y, zPositon),
2830
new Point3D(point1.
X
, point1.Y, zPositon),
2831
new Point3D(point2.
X
, point2.Y, zPositon),
2861
new Point3D(point1.
X
, point1.Y, ChartArea.areaSceneDepth),
2862
new Point3D(point1.
X
, point1.Y, 0f),
2893
new Point3D(point2.
X
, point2.Y, ChartArea.areaSceneDepth),
2894
new Point3D(point2.
X
, point2.Y, 0f),
4908
PointF outsidePoint = new PointF(areaCenterAbs.
X
, plotAreaRectAbs.Y);
4941
PointF[] labelPosition = new PointF[] { new PointF(areaCenterAbs.
X
, plotAreaRectAbs.Y) };
4950
labelPosition[0].
X
,
4956
curLabelPosition.X = labelPosition[0].
X
- textSize.Width / 2f;
4961
curLabelPosition.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 );
722
rect.X = point.
X
- imageScaleRect.Width / 2F;
778
rect.X = point.
X
- ((float)markerSize) / 2F;
857
shadowBrush.CenterPoint = new PointF(point.
X
, point.Y);
861
if (focusScale.
X
< 0)
902
points[0].X = point.
X
- crossSize / 2F;
904
points[1].X = point.
X
- crossSize / 2F;
907
points[2].X = point.
X
- crossLineWidth / 2F;
909
points[3].X = point.
X
- crossLineWidth / 2F;
911
points[4].X = point.
X
+ crossLineWidth / 2F;
914
points[5].X = point.
X
+ crossLineWidth / 2F;
916
points[6].X = point.
X
+ crossSize / 2F;
918
points[7].X = point.
X
+ crossSize / 2F;
921
points[8].X = point.
X
+ crossLineWidth / 2F;
923
points[9].X = point.
X
+ crossLineWidth / 2F;
925
points[10].X = point.
X
- crossLineWidth / 2F;
927
points[11].X = point.
X
- crossLineWidth / 2F;
968
shadowBrush.CenterPoint = new PointF(point.
X
, point.Y);
972
if (focusScale.
X
< 0)
1038
diamondRect.X = point.
X
- ((float)diamondSize) / 2F;
1097
shadowBrush.CenterPoint = new PointF(point.
X
, point.Y);
1101
if (focusScale.
X
< 0)
1719
new PointF(absCenter.
X
- size.Width / 2f, absCenter.Y - size.Height / 2f),
1720
new PointF(absCenter.
X
+ size.Width / 2f, absCenter.Y - size.Height / 2f),
1721
new PointF(absCenter.
X
+ size.Width / 2f, absCenter.Y + size.Height / 2f),
1722
new PointF(absCenter.
X
- size.Width / 2f, absCenter.Y + size.Height / 2f)};
1933
newRect.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),
712
pieTopRectangle.X = topFirstRectPoint.
X
;
715
pieTopRectangle.Width = topSecondRectPoint.
X
- topFirstRectPoint.
X
;
718
pieBottomRectangle.X = bottomFirstRectPoint.
X
;
721
pieBottomRectangle.Width = bottomSecondRectPoint.
X
- bottomFirstRectPoint.
X
;
739
path.AddLine(bottomFirstPoint.
X
, bottomFirstPoint.Y, bottomSecondPoint.
X
, bottomSecondPoint.Y);
753
path.AddLine(topFirstPoint.
X
, topFirstPoint.Y, topSecondPoint.
X
, topSecondPoint.Y);
843
pieRectangle.X = firstRectPoint.
X
;
846
pieRectangle.Width = secondRectPoint.
X
- firstRectPoint.
X
;
969
pieRectangle.X = firstRectPoint.
X
;
972
pieRectangle.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;
3531
rect.X = markerRotatedPosition.
X
- ((float)markerSize) / 2F;
3574
shadowBrush.CenterPoint = new PointF(markerRotatedPosition.
X
, markerRotatedPosition.Y);
3578
if (focusScale.
X
< 0)
3607
Point3D[] centerPoint = new Point3D[] { new Point3D(point.
X
, point.Y, positionZ + markerRelativeSize.Width) };
3632
rectNonRotated.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
;
4640
return this._coordXY.
X
;
4706
this._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
;
1498
if (Math.Abs(first.
X
- second.
X
) > Math.Abs(first.Y - second.Y))
1500
path.AddLine(first.
X
, first.Y - 1, second.
X
, second.Y - 1);
1501
path.AddLine(second.
X
, second.Y + 1, first.
X
, first.Y + 1);
1506
path.AddLine(first.
X
- 1, first.Y, second.
X
- 1, second.Y);
1507
path.AddLine(second.
X
+ 1, second.Y, first.
X
+ 1, first.Y);
1583
second.X = first.
X
;
1593
if (Math.Abs(first.
X
- second.
X
) > Math.Abs(first.Y - second.Y))
1595
path.AddLine(first.
X
, first.Y - 1, second.
X
, second.Y - 1);
1596
path.AddLine(second.
X
, second.Y + 1, first.
X
, first.Y + 1);
1601
path.AddLine(first.
X
- 1, first.Y, second.
X
- 1, second.Y);
1602
path.AddLine(second.
X
+ 1, second.Y, first.
X
+ 1, first.Y);
Common\General\ImageMap.cs (7)
251
coord[index++] = point.
X
;
366
transformedCoord[0] = p.
X
;
369
transformedCoord[2] = p.
X
;
374
transformedCoord[0] = p.
X
;
377
transformedCoord[2] = p.
X
;
399
transformedCoord[index] = pConverted.
X
;
860
coord[i++] = point.
X
;
Common\General\Label.cs (4)
1162
this._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,
2037
relativeX = this.Graph.GetRelativePoint(new PointF(x, y)).
X
;
2533
RectangleF rect = RectangleF.FromLTRB(points[i].
X
, points[i].Y, points[i + 2].
X
, points[i + 2].Y);
2809
PointF middleP0P3 = new PointF((points[i].
X
+ points[i + 3].
X
) / 2f, (points[i].Y + points[i + 3].Y) / 2f);
2810
PointF middleP1P2 = new PointF((points[i + 1].
X
+ points[i + 2].
X
) / 2f, (points[i + 1].Y + points[i + 2].Y) / 2f);
2830
if (!(float.IsNaN(pp.
X
) || float.IsNaN(pp.Y)))
3010
if (float.IsNaN(pp.
X
) || float.IsNaN(pp.Y))
3084
RectangleF rect1 = new RectangleF(first.
X
, first.Y, second.
X
- first.
X
, second.Y - first.Y);
3107
points[i] = new Point3D(((PointF)list1[i]).
X
, ((PointF)list1[i]).Y, zPositon);
3147
points[i] = new Point3D(((PointF)list1[i]).
X
, ((PointF)list1[i]).Y, zPositon);
3308
annot3DPoints[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;
757
rotationCenterProjection[0] = new Point3D(rotationCenter.
X
, rotationCenter.Y, zPositon);
760
rotationCenterProjection[1] = new Point3D(rotationCenter.
X
, rotationCenter.Y - 20f, zPositon);
764
rotationCenterProjection[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)
297
point1.X = (float)Math.Round(point1.
X
);
299
point2.X = (float)Math.Round(point2.
X
);
306
axisPos.X = (float)Math.Round(axisPos.
X
);
339
path.AddLine(point1.
X
, axisPos.Y, point1.
X
, point1.Y);
348
path.AddLine(point2.
X
, point2.Y, point2.
X
, axisPos.Y);
426
if (!(points[pointIndex - 1].
X
== points[pointIndex].
X
||
451
areaPath.AddLine(point1.
X
, axisPos.Y, point1.
X
, point1.Y);
496
mapAreaPath.AddLine(point1.
X
, axisPos.Y, point1.
X
, point1.Y);
506
mapAreaPath.AddLine(point2.
X
, point2.Y, point2.
X
, axisPos.Y);
507
mapAreaPath.AddLine(point2.
X
, axisPos.Y, point1.
X
, axisPos.Y);
516
coord[2 * i] = pointNew.
X
;
572
coord[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) };
2118
rotationCenter.
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),
1358
marker3DPosition[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
);
613
coord[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;
876
first.X = (first.
X
+ second.
X
) / 2f;
879
if (Math.Abs(first.
X
- second.
X
) > Math.Abs(first.Y - second.Y))
881
path.AddLine(first.
X
, first.Y - width, second.
X
, second.Y - width);
882
path.AddLine(second.
X
, second.Y + width, first.
X
, first.Y + width);
887
path.AddLine(first.
X
- width, first.Y, second.
X
- width, second.Y);
888
path.AddLine(second.
X
+ width, second.Y, first.
X
+ width, first.Y);
899
second.X = (first.
X
+ second.
X
) / 2f;
908
if (Math.Abs(first.
X
- second.
X
) > Math.Abs(first.Y - second.Y))
910
path.AddLine(first.
X
, first.Y - width, second.
X
, second.Y - width);
911
path.AddLine(second.
X
, second.Y + width, first.
X
, first.Y + width);
916
path.AddLine(first.
X
- width, first.Y, second.
X
- width, second.Y);
917
path.AddLine(second.
X
+ width, second.Y, first.
X
+ width, first.Y);
954
coord[2 * i] = pointNew.
X
;
968
return point.
X
<= -maxGDIRange || point.
X
>= maxGDIRange || point.Y <= -maxGDIRange || point.Y >= maxGDIRange;
987
bool topBottomLine = (Math.Abs(pt2.Y - pt1.Y) > Math.Abs(pt2.
X
- pt1.
X
));
1019
(secondPoint.
X
- firstPoint.
X
) /
1021
firstPoint.
X
;
1037
intersectionPoint.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
;
1343
x3Overlap = -relativeSize.Width * shift * expShift + middlePoint.
X
- relativeSize.Width / 10 * labelsHorizontalLineSize;
1344
x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.Width * shift * expShift + middlePoint.
X
- relativeSize.Width / 10 * labelsHorizontalLineSize;
1360
x3Overlap = relativeSize.Width * shift * expShift + middlePoint.
X
+ relativeSize.Width / 10 * labelsHorizontalLineSize;
1361
x3 = (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;
1861
coord[2 * index] = pointNew[index].
X
;
2565
rectangle = new RectangleF( middlePoint.
X
- relativeSize.Width / 2, middlePoint.Y - relativeSize.Height / 2, relativeSize.Width, relativeSize.Height );
2737
point.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 ));
5460
if (points[(int)PiePoints.TopLabelLineout].
X
> labelPoint.
X
)
5462
labelPoint.X = points[(int)PiePoints.TopLabelLineout].
X
+ 10;
5465
labelPosition.X = labelPoint.
X
;
5480
if (points[(int)PiePoints.TopLabelLineout].
X
< labelPoint.
X
)
5482
labelPoint.X = points[(int)PiePoints.TopLabelLineout].
X
- 10;
5486
labelPosition.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),
777
PointF 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
;
1144
PointF 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);
538
graph.DrawLine(areaLinePen, highPoint1.
X
, lowPoint1.Y, highPoint1.
X
, highPoint1.Y);
542
graph.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
);
585
path.AddLine(firstPoint.
X
, firstPoint.Y, secondPoint.
X
, secondPoint.Y);
586
path.AddLine(secondPoint.
X
, secondPoint.Y, secondPoint.
X
, prevYValue2);
587
path.AddLine(secondPoint.
X
, prevYValue2, firstPoint.
X
, prevYValue1);
588
path.AddLine(firstPoint.
X
, prevYValue1, firstPoint.
X
, firstPoint.Y);
663
if (!(firstPoint.
X
== secondPoint.
X
|| firstPoint.Y == secondPoint.Y))
665
graph.DrawLine(areaLinePen, firstPoint.
X
, firstPoint.Y, secondPoint.
X
, secondPoint.Y);
667
if (!(firstPoint.
X
== secondPoint.
X
|| prevYValue2 == prevYValue1))
669
graph.DrawLine(areaLinePen, secondPoint.
X
, prevYValue2, firstPoint.
X
, prevYValue1);
680
areaPath.AddLine(firstPoint.
X
, firstPoint.Y, secondPoint.
X
, secondPoint.Y);
681
areaBottomPath.AddLine(firstPoint.
X
, prevYValue1, secondPoint.
X
, prevYValue2);
701
coord[2 * i] = pointNew.
X
;
723
linePath.AddLine(firstPoint.
X
, firstPoint.Y, secondPoint.
X
, secondPoint.Y);
743
coord[2 * i] = pointNew.
X
;
887
firstPoint.X = (float)Math.Round(firstPoint.
X
);
888
secondPoint.X = (float)Math.Round(secondPoint.
X
);
1028
labelPosition.X = secondPoint.
X
;
1046
labelPosition.
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
;
1528
points[0].PointF.
X
- sizeLabel.Width / 2,
Common\ChartTypes\StackedBarChart.cs (4)
1184
labelPosition.
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) };
2088
rotationCenter.
X
- sizeLabel.Width / 2,
Common\ChartTypes\StackedColumnChart.cs (4)
1220
absPosition.X = (float)Math.Ceiling(absPosition.
X
) + 1f;
1241
labelPosition.
X
- sizeLabel.Width / 2,
1879
marker3DPosition[0] = new Point3D(labelPosition.
X
, labelPosition.Y, (float)(pointEx.zPosition + pointEx.depth));
1953
labelPosition.
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)
1966
rectPoints[0].
X
,
1968
rectPoints[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) };
2432
if (rotationCenter.IsEmpty || float.IsNaN(rotationCenter.
X
) || float.IsNaN(rotationCenter.Y))
2667
RectangleF rect = new RectangleF(first.
X
, first.Y, second.
X
- first.
X
, second.Y - first.Y);
2696
points3D[i] = new Point3D(points[i].
X
, points[i].Y, zPositon);
2778
if ((horizontal && point1.
X
> point2.
X
) ||
2781
PointF tempPoint = new PointF(point1.
X
, point1.Y);
2782
point1.X = point2.
X
;
2800
new Point3D(point1.
X
, point1.Y, zPositon),
2801
new Point3D(point2.
X
, point2.Y, zPositon),
2830
new Point3D(point1.
X
, point1.Y, zPositon),
2831
new Point3D(point2.
X
, point2.Y, zPositon),
2861
new Point3D(point1.
X
, point1.Y, ChartArea.areaSceneDepth),
2862
new Point3D(point1.
X
, point1.Y, 0f),
2893
new Point3D(point2.
X
, point2.Y, ChartArea.areaSceneDepth),
2894
new Point3D(point2.
X
, point2.Y, 0f),
4908
PointF outsidePoint = new PointF(areaCenterAbs.
X
, plotAreaRectAbs.Y);
4941
PointF[] labelPosition = new PointF[] { new PointF(areaCenterAbs.
X
, plotAreaRectAbs.Y) };
4950
labelPosition[0].
X
,
4956
curLabelPosition.X = labelPosition[0].
X
- textSize.Width / 2f;
4961
curLabelPosition.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 );
722
rect.X = point.
X
- imageScaleRect.Width / 2F;
778
rect.X = point.
X
- ((float)markerSize) / 2F;
857
shadowBrush.CenterPoint = new PointF(point.
X
, point.Y);
861
if (focusScale.
X
< 0)
902
points[0].X = point.
X
- crossSize / 2F;
904
points[1].X = point.
X
- crossSize / 2F;
907
points[2].X = point.
X
- crossLineWidth / 2F;
909
points[3].X = point.
X
- crossLineWidth / 2F;
911
points[4].X = point.
X
+ crossLineWidth / 2F;
914
points[5].X = point.
X
+ crossLineWidth / 2F;
916
points[6].X = point.
X
+ crossSize / 2F;
918
points[7].X = point.
X
+ crossSize / 2F;
921
points[8].X = point.
X
+ crossLineWidth / 2F;
923
points[9].X = point.
X
+ crossLineWidth / 2F;
925
points[10].X = point.
X
- crossLineWidth / 2F;
927
points[11].X = point.
X
- crossLineWidth / 2F;
968
shadowBrush.CenterPoint = new PointF(point.
X
, point.Y);
972
if (focusScale.
X
< 0)
1038
diamondRect.X = point.
X
- ((float)diamondSize) / 2F;
1097
shadowBrush.CenterPoint = new PointF(point.
X
, point.Y);
1101
if (focusScale.
X
< 0)
1719
new PointF(absCenter.
X
- size.Width / 2f, absCenter.Y - size.Height / 2f),
1720
new PointF(absCenter.
X
+ size.Width / 2f, absCenter.Y - size.Height / 2f),
1721
new PointF(absCenter.
X
+ size.Width / 2f, absCenter.Y + size.Height / 2f),
1722
new PointF(absCenter.
X
- size.Width / 2f, absCenter.Y + size.Height / 2f)};
1933
newRect.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),
712
pieTopRectangle.X = topFirstRectPoint.
X
;
715
pieTopRectangle.Width = topSecondRectPoint.
X
- topFirstRectPoint.
X
;
718
pieBottomRectangle.X = bottomFirstRectPoint.
X
;
721
pieBottomRectangle.Width = bottomSecondRectPoint.
X
- bottomFirstRectPoint.
X
;
739
path.AddLine(bottomFirstPoint.
X
, bottomFirstPoint.Y, bottomSecondPoint.
X
, bottomSecondPoint.Y);
753
path.AddLine(topFirstPoint.
X
, topFirstPoint.Y, topSecondPoint.
X
, topSecondPoint.Y);
843
pieRectangle.X = firstRectPoint.
X
;
846
pieRectangle.Width = secondRectPoint.
X
- firstRectPoint.
X
;
969
pieRectangle.X = firstRectPoint.
X
;
972
pieRectangle.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;
3531
rect.X = markerRotatedPosition.
X
- ((float)markerSize) / 2F;
3574
shadowBrush.CenterPoint = new PointF(markerRotatedPosition.
X
, markerRotatedPosition.Y);
3578
if (focusScale.
X
< 0)
3607
Point3D[] centerPoint = new Point3D[] { new Point3D(point.
X
, point.Y, positionZ + markerRelativeSize.Width) };
3632
rectNonRotated.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
;
4640
return this._coordXY.
X
;
4706
this._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
;
1498
if (Math.Abs(first.
X
- second.
X
) > Math.Abs(first.Y - second.Y))
1500
path.AddLine(first.
X
, first.Y - 1, second.
X
, second.Y - 1);
1501
path.AddLine(second.
X
, second.Y + 1, first.
X
, first.Y + 1);
1506
path.AddLine(first.
X
- 1, first.Y, second.
X
- 1, second.Y);
1507
path.AddLine(second.
X
+ 1, second.Y, first.
X
+ 1, first.Y);
1583
second.X = first.
X
;
1593
if (Math.Abs(first.
X
- second.
X
) > Math.Abs(first.Y - second.Y))
1595
path.AddLine(first.
X
, first.Y - 1, second.
X
, second.Y - 1);
1596
path.AddLine(second.
X
, second.Y + 1, first.
X
, first.Y + 1);
1601
path.AddLine(first.
X
- 1, first.Y, second.
X
- 1, second.Y);
1602
path.AddLine(second.
X
+ 1, second.Y, first.
X
+ 1, first.Y);
Common\General\ImageMap.cs (7)
251
coord[index++] = point.
X
;
366
transformedCoord[0] = p.
X
;
369
transformedCoord[2] = p.
X
;
374
transformedCoord[0] = p.
X
;
377
transformedCoord[2] = p.
X
;
399
transformedCoord[index] = pConverted.
X
;
860
coord[i++] = point.
X
;
Common\General\Label.cs (4)
1162
this._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,
2037
relativeX = this.Graph.GetRelativePoint(new PointF(x, y)).
X
;
2533
RectangleF rect = RectangleF.FromLTRB(points[i].
X
, points[i].Y, points[i + 2].
X
, points[i + 2].Y);
2809
PointF middleP0P3 = new PointF((points[i].
X
+ points[i + 3].
X
) / 2f, (points[i].Y + points[i + 3].Y) / 2f);
2810
PointF middleP1P2 = new PointF((points[i + 1].
X
+ points[i + 2].
X
) / 2f, (points[i + 1].Y + points[i + 2].Y) / 2f);
2830
if (!(float.IsNaN(pp.
X
) || float.IsNaN(pp.Y)))
3010
if (float.IsNaN(pp.
X
) || float.IsNaN(pp.Y))
3084
RectangleF rect1 = new RectangleF(first.
X
, first.Y, second.
X
- first.
X
, second.Y - first.Y);
3107
points[i] = new Point3D(((PointF)list1[i]).
X
, ((PointF)list1[i]).Y, zPositon);
3147
points[i] = new Point3D(((PointF)list1[i]).
X
, ((PointF)list1[i]).Y, zPositon);
3308
annot3DPoints[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;
757
rotationCenterProjection[0] = new Point3D(rotationCenter.
X
, rotationCenter.Y, zPositon);
760
rotationCenterProjection[1] = new Point3D(rotationCenter.
X
, rotationCenter.Y - 20f, zPositon);
764
rotationCenterProjection[1] = new Point3D(rotationCenter.
X
- 20f, rotationCenter.Y, zPositon);
WinForm\Utilities\AccessibleObject.cs (3)
313
if (this._chartScale.
X
!= 1f || this._chartScale.Y != 1f)
316
rect.X = (int)(rect.X * this._chartScale.
X
);
319
rectSize.Width *= this._chartScale.
X
;
System.Workflow.ComponentModel (4)
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (1)
1219
Zoom = Convert.ToInt32((Math.Min(zoom.
X
, zoom.Y) * 100));
AuthoringOM\Design\MessageFilters\ZoomingMessageFilter.cs (1)
187
Point newCenter = new Point((int)((float)parentView.HScrollBar.Maximum * relativeCenterF.
X
), (int)((float)parentView.VScrollBar.Maximum * relativeCenterF.Y));
AuthoringOM\Design\WorkflowLayouts.cs (1)
749
this.scaling = Math.Min(scaleFactor.
X
, scaleFactor.Y);
AuthoringOM\Design\WorkflowView.cs (1)
358
Point newCenter = new Point((int)((float)hScrollBar.Maximum * oldRelativeCenter.
X
), (int)((float)vScrollBar.Maximum * oldRelativeCenter.Y));