587 writes to X
System.Drawing (6)
commonui\System\Drawing\Advanced\RectangleF.cs (4)
99
X
= value.X;
360
this.
X
-= x;
395
this.
X
= result.X;
461
this.
X
+= x;
commonui\System\Drawing\Printing\PageSettings.cs (2)
247
printableArea.
X
= (float)UnsafeNativeMethods.GetDeviceCaps(hdc, SafeNativeMethods.PHYSICALOFFSETX) * 100 / dpiX;
256
printableArea.
X
= (float)UnsafeNativeMethods.GetDeviceCaps(hdc, SafeNativeMethods.PHYSICALOFFSETY) * 100 / dpiY;
System.Web.DataVisualization (290)
Common\Annotation\CalloutAnnotation.cs (1)
660
rectanglePosition.
X
= rectanglePosition.Right;
Common\Annotation\GroupAnnotation.cs (1)
929
selectionRect.
X
= selectionRect.Right;
Common\Annotation\ImageAnnotation.cs (1)
534
rectanglePosition.
X
= rectanglePosition.Right;
Common\Annotation\PolygonAnnotation.cs (1)
575
rectanglePosition.
X
= rectanglePosition.Right;
Common\Annotation\RectangleAnnotation.cs (2)
398
rectanglePosition.
X
= rectanglePosition.Right;
636
rectanglePosition.
X
= rectanglePosition.Right;
Common\Annotation\TextAnnotation.cs (6)
428
textPosition.
X
= textPosition.Right;
537
textPositionWithSpacing.
X
+= textSpacing.X * spacingScaleX;
567
textPositionWithSpacing.
X
= textPosition.X;
570
textPositionWithSpacing.
X
+= textSpacing.X / 2f;
646
textActualPosition.
X
+= textPositionWithSpacing.Width - textSize.Width;
652
textActualPosition.
X
+= (textPositionWithSpacing.Width - textSize.Width) / 2f;
Common\Borders3D\EmbedBorder.cs (10)
683
rect.
X
+= sizeLeftTop.Width;
862
areasRect.
X
+= relSizeLeftTop.Width;
872
areasRect.
X
-= 100f - areasRect.Right;
954
shadowRect.
X
-= radius * 0.3f;
963
shadowRect.
X
+= radius * 0.3f;
999
screwRect.
X
= shadowRect.X + offset;
1006
screwRect.
X
= shadowRect.Right - offset - screwRect.Width;
1010
screwRect.
X
= shadowRect.Right - offset - screwRect.Width;
1015
screwRect.
X
= shadowRect.X + offset;
1038
shadowRect.
X
-= 0.5f*radius;
Common\Borders3D\EmbossBorder.cs (4)
119
areasRect.
X
+= borderSize.Width;
131
areasRect.
X
-= 100f - areasRect.Width;
213
shadowRect.
X
= absolute.X + radius / 3f;
221
shadowRect.
X
= absolute.X + 3f * resolution / 96.0f;
Common\ChartTypes\BarChart.cs (20)
566
rectSize.
X
= (float)barStartPosition;
571
rectSize.
X
= (float)barSize;
901
rectLabel.
X
= rectSize.Right;
907
rectLabel.
X
= area.PlotAreaPosition.X;
913
rectLabel.
X
= area.PlotAreaPosition.X;
930
rectLabel.
X
+= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F);
955
rectLabel.
X
+= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F);
1044
labelBackPosition.
X
+= spacing / 2f;
1045
rectLabel.
X
+= spacing;
1049
labelBackPosition.
X
= rectLabel.X + (rectLabel.Width - valueTextSize.Width) / 2f;
1053
labelBackPosition.
X
= rectLabel.Right - valueTextSize.Width - spacing / 2f;
1054
rectLabel.
X
-= spacing;
1475
rectSize.
X
= (float)barStartPosition;
1484
rectSize.
X
= (float)barSize;
1674
rectSize.
X
= (float)barStartPosition;
1679
rectSize.
X
= (float)barSize;
1927
rectLabel.
X
= rectSize.Right;
1932
rectLabel.
X
= area.PlotAreaPosition.X;
1949
rectLabel.
X
+= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F);
1974
rectLabel.
X
+= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F);
Common\ChartTypes\BoxPlotChart.cs (4)
436
rectSize.
X
= (float)(xPosition - width/2);
576
areaRect.
X
= xPosition - width / 2f;
1224
rectSize.
X
= (float)(points[0].X - width/2);
1363
areaRect.
X
= xPosition - width / 2f;
Common\ChartTypes\ColumnChart.cs (3)
467
rectSize.
X
= (float)(xPosition - width/2);
795
rectSize.
X
= (float)(pointEx.xPosition - pointEx.width/2);
844
rectSize.
X
= area.PlotAreaPosition.X;
Common\ChartTypes\ErrorBarChart.cs (2)
594
areaRect.
X
= xPosition - width / 2f;
1358
areaRect.
X
= xPosition - width / 2f;
Common\ChartTypes\FunnelChart.cs (14)
1719
position.
X
-= spacing;
1729
requiredSpacing.
X
= plotAreaPositionAbs.X - position.X;
1858
labelInfo.Position.
X
= plotAreaPositionAbs.Right +
1876
labelInfo.Position.
X
= plotAreaPositionAbs.X -
1902
labelInfo.Position.
X
= plotAreaCenterXAbs +
1908
labelInfo.Position.
X
= plotAreaCenterXAbs -
1922
labelInfo.Position.
X
= plotAreaCenterXAbs +
1928
labelInfo.Position.
X
= plotAreaCenterXAbs -
1941
labelInfo.Position.
X
= plotAreaCenterXAbs +
1947
labelInfo.Position.
X
= plotAreaCenterXAbs -
1960
labelInfo.Position.
X
= plotAreaPositionAbs.Right +
1971
labelInfo.Position.
X
= plotAreaPositionAbs.X -
1999
labelInfo.Position.
X
= plotAreaCenterXAbs - labelInfo.Size.Width / 2f;
2190
plotAreaPosition.
X
+= plotAreaSpacing.X;
Common\ChartTypes\PieChart.cs (17)
807
rectangle.
X
+= rectangle.Width * ( 1 - _sizeCorrection ) / 2;
816
rect.
X
= (rect.X - area.Position.X) / area.Position.Width * 100f;
1396
rect.
X
= labelRectOver.X;
1414
labelBackPosition.
X
-= spacing / 2f;
1418
labelBackPosition.
X
= rect.X + (rect.Width - valueTextSize.Width) / 2f;
1422
labelBackPosition.
X
= rect.Right - valueTextSize.Width - spacing / 2f;
1487
labelRect.
X
= area.Position.X;
1494
labelRect.
X
= labelPosition.X;
1818
doughnutRect.
X
= rectangle.X + rectangle.Width * (1 - (100 - doughnutRadius) / 100) / 2;
2584
rectangle.
X
+= rectangle.Width * ( 1 - sizeCorrection ) / 2;
2606
rect.
X
= (rect.X - area.Position.X) / area.Position.Width * 100f;
5353
pieRectangle.
X
= pieRectangle.X + ( oldWidth - pieRectangle.Width ) / 2F;
5465
labelPosition.
X
= labelPoint.X;
5485
labelPosition.
X
= chartAreaPosition.X;
5512
labelBackPosition.
X
-= spacing / 2f;
5516
labelBackPosition.
X
= labelPosition.X + (labelPosition.Width - valueTextSize.Width) / 2f;
5520
labelBackPosition.
X
= labelPosition.Right - valueTextSize.Width - spacing / 2f;
Common\ChartTypes\PointAndFigureChart.cs (1)
818
position.
X
= rectSize.X;
Common\ChartTypes\PointChart.cs (11)
910
labelBackPosition.
X
+= horizontalSpacing / 2f;
913
labelBackPosition.
X
+= horizontalSpacing / 2f;
916
labelBackPosition.
X
+= horizontalSpacing / 2f;
919
labelBackPosition.
X
-= horizontalSpacing / 2f;
922
labelBackPosition.
X
-= horizontalSpacing / 2f;
925
labelBackPosition.
X
-= horizontalSpacing / 2f;
986
labelPosition.
X
= position.X - size.Width;
989
labelPosition.
X
-= 4f*pixelSize.Width;
995
labelPosition.
X
= position.X;
1003
labelPosition.
X
= position.X - size.Width/2F;
1006
labelPosition.
X
-= 2f*pixelSize.Width;
Common\ChartTypes\StackedBarChart.cs (9)
484
areaPosition.
X
= (float)Math.Floor(areaPosition.X);
822
rectSize.
X
= (float)zero;
827
rectSize.
X
= (float)height;
1575
rectSize.
X
= (float)zero;
1580
rectSize.
X
= (float)height;
1736
rectSize.
X
= (float)zero;
1741
rectSize.
X
= (float)height;
1883
rectLabel.
X
= rectSize.Right;
1888
rectLabel.
X
= area.PlotAreaPosition.X;
Common\ChartTypes\StackedColumnChart.cs (5)
490
areaPosition.
X
= (float)Math.Floor(areaPosition.X);
835
rectSize.
X
= (float)(xPosition - width/2);
1602
rectSize.
X
= (float)(pointEx.xPosition - pointEx.width/2);
1658
rectSize.
X
= area.PlotAreaPosition.X;
1765
rectSize.
X
= (float)(pointEx.xPosition - pointEx.width/2);
Common\ChartTypes\StockChart.cs (4)
465
areaRect.
X
= xPosition - width / 2f;
799
rect.
X
= xPosition - width / 2f;
1279
areaRect.
X
= xPosition - width / 2f;
1624
rect.
X
= xPosition - width / 2f;
Common\General\Axis.cs (14)
1819
_titlePosition.
X
= ChartArea.PlotAreaPosition.X - titleSizeWithoutSpacing - axisSize;
1851
_titlePosition.
X
+= titleSizeWithoutSpacing / 2f - _titlePosition.Width / 2f;
1862
_titlePosition.
X
= ChartArea.PlotAreaPosition.Right + axisSize;
1894
_titlePosition.
X
+= titleSizeWithoutSpacing / 2f - _titlePosition.Width / 2f;
1907
_titlePosition.
X
= ChartArea.PlotAreaPosition.X;
1923
_titlePosition.
X
= ChartArea.PlotAreaPosition.X;
1973
transformedTitlePosition.
X
-= transformedTitlePosition.Width;
2047
rect.
X
+= (rect.Width - rect.Height) / 2f;
2148
rect.
X
+= (rect.Width - rect.Height) / 2f;
4956
curLabelPosition.
X
= labelPosition[0].X - textSize.Width / 2f;
4961
curLabelPosition.
X
= labelPosition[0].X - textSize.Width / 2f;
5302
rect.
X
= (float)Math.Min(fromPosition, toPosition);
5410
rect.
X
= this.PlotAreaPosition.X;
5551
labelPosition.
X
= labelPosition.X + labelPosition.Width / 2f - width / 2f;
Common\General\AxisScaleSegments.cs (5)
393
shadowPartRect.
X
= shadowPartRect.Right - 1;
398
shadowPartRect.
X
+= this.axis.ChartArea.ShadowOffset;
429
clipRegion.
X
+= this.axis.ChartArea.ShadowOffset;
702
breakPosition.
X
= (float)Math.Min(from, to);
713
breakPosition.
X
-= this.axis.ChartArea.BorderWidth;
Common\General\Chart.cs (5)
2200
areaPosition.
X
= chartAreasRectangle.X + column * (chartAreasRectangle.Width / areaColumns) + elementSpacing;
3111
areaPlotPosition.
X
+= area.PlotAreaPosition.X - areaPlotPosition.X;
3148
rect.
X
= areaPlotPosition.X;
3161
rect.
X
= (rect.X - area.Position.X) / area.Position.Width * 100f;
3210
areaPosition.
X
= masterArea.Position.X;
Common\General\ChartArea.cs (9)
1470
plottingRect.
X
+= (Position.Width / 100F) * InnerPlotPosition.X;
1577
plottingRect.
X
+= areaWallSize.Width;
1689
plottingRect.
X
+= axisSize;
1715
rectLabelSideSpacing.
X
= (float)Math.Max(offset, rectLabelSideSpacing.X);
1777
plottingRect.
X
-= delta;
1800
plottingRect.
X
+= xTitleSize;
1814
rect.
X
+= (rect.Width - rect.Height) / 2f;
2090
plottingRect.
X
+= (Position.Width / 100F) * InnerPlotPosition.X;
2621
plotAreaRectAbs.
X
+= labelsSize;
Common\General\ChartArea3D.cs (4)
716
position.
X
-= areaSceneWallWidth.Width;
752
wallRect2D.
X
= position.Right - areaSceneWallWidth.Width;
775
wallRect2D.
X
+= areaSceneWallWidth.Width;
1280
plottingRect.
X
+= (area.Position.Width / 100F) * area.InnerPlotPosition.X;
Common\General\ChartGraphics.cs (38)
722
rect.
X
= point.X - imageScaleRect.Width / 2F;
778
rect.
X
= point.X - ((float)markerSize) / 2F;
837
shadowRect.
X
+= shadowSize;
1038
diamondRect.
X
= point.X - ((float)diamondSize) / 2F;
1877
newRect.
X
= absPosition.X + absPosition.Width / 2F;
1887
newRect.
X
-= newRect.Width;
1905
newRect.
X
-= newRect.Width;
1933
newRect.
X
= rotationPoint.X - absPosition.Height / 2F;
1990
labelRect.
X
= absPosition.Right - labelSize.Width;
1994
labelRect.
X
= absPosition.X;
1998
labelRect.
X
= absPosition.X + absPosition.Width / 2F - labelSize.Width / 2F;
2048
boundaryRect.
X
= 0;
2078
absPosition.
X
= labelRect.X + sizeChange;
2086
absPosition.
X
= labelRect.X;
2093
absPosition.
X
= labelRect.X;
2098
absPosition.
X
+= sizeChange;
2104
absPosition.
X
= labelRect.X;
2109
absPosition.
X
+= sizeChange;
2137
absPositionWithoutImage.
X
+= imageAbsSize.Width;
2310
imageRect.
X
= absPosition.X + (absPosition.Width - imageAbsSize.Width - labelSize.Width) / 2;
2314
imageRect.
X
= absPosition.Right - imageAbsSize.Width - labelSize.Width;
2318
imageRect.
X
= absPosition.X;
2404
newRect.
X
= centerNotRound.X - absPosition.Height / 2F;
2873
gradientRect.
X
+= gradientRect.Width + 1f;
2976
gradientRect.
X
= gradientRect.Right - (float)Math.Floor(gradientRect.Width / 3f);
3534
imageRect.
X
= fillRect.X;
3557
imageRect.
X
= fillRect.Right - imageRect.Width;
3563
imageRect.
X
= fillRect.X + (fillRect.Width - imageRect.Width)/2;
3759
offset.
X
= absolute.X + shadowOffset;
3781
offset.
X
= absolute.X + shadowOffset - 1;
4215
imageRect.
X
= fillRect.X;
4238
imageRect.
X
= fillRect.Right - imageRect.Width;
4244
imageRect.
X
= fillRect.X + (fillRect.Width - imageRect.Width)/2;
4511
imageRect.
X
= fillRect.X;
4534
imageRect.
X
= fillRect.Right - imageRect.Width;
4540
imageRect.
X
= fillRect.X + (fillRect.Width - imageRect.Width)/2;
4654
relative.
X
= rectangle.X * 100F / ((float)(_width - 1));
4745
absolute.
X
= rectangle.X * (_width - 1) / 100F;
Common\General\ChartGraphics3D.cs (10)
712
pieTopRectangle.
X
= topFirstRectPoint.X;
718
pieBottomRectangle.
X
= bottomFirstRectPoint.X;
843
pieRectangle.
X
= firstRectPoint.X;
969
pieRectangle.
X
= firstRectPoint.X;
975
pieDoughnutRectangle.
X
= pieRectangle.X + pieRectangle.Width * (1F - doughnutRadius) / 2F;
3253
gradientRect.
X
= gradientRect.Right - (float)Math.Floor(gradientRect.Width / 3f);
3509
rect.
X
= markerRotatedPosition.X - ((float)markerSize)/2F;
3531
rect.
X
= markerRotatedPosition.X - ((float)markerSize) / 2F;
3554
shadowRect.
X
+= shadowSize;
3632
rectNonRotated.
X
= point.X - ((float)markerRelativeSize.Width) / 2F;
Common\General\Label.cs (43)
1329
labelPosition.
X
= position.X - size.Width;
1333
labelPosition.
X
= position.X;
1337
labelPosition.
X
= position.X - size.Width/2F;
1392
rectLabels.
X
= (float)_axis.GetAxisPosition();
1394
rectLabels.
X
= _axis.PlotAreaPosition.X;
1396
rectLabels.
X
-= labelSize + _axis.markSize;
1406
rectLabels.
X
= (float)_axis.GetAxisPosition();
1408
rectLabels.
X
= _axis.PlotAreaPosition.Right;
1409
rectLabels.
X
+= _axis.markSize;
1448
boundaryRect.
X
+= _axis.totlaGroupingLabelsSize;
1626
rect.
X
= rectLabels.Right - _axis.unRotatedLabelSize;
1635
rect.
X
+= rect.Width;
1649
rect.
X
+= rect.Width;
1692
rect.
X
+= _axis.totlaGroupingLabelsSizeAdjustment;
1695
rect.
X
+= _axis.groupingLabelSizes[index - 1];
1701
rect.
X
= rect.Right - _axis.totlaGroupingLabelsSize - _axis.totlaGroupingLabelsSizeAdjustment;// + Axis.elementSpacing * 0.25f;
1704
rect.
X
+= _axis.groupingLabelSizes[index - 1];
1746
rect.
X
= (float)Math.Min(fromPosition, toPosition);
1753
rect.
X
-= rect.Width / 2F;
1836
rectLabels.
X
= (float)labelsAxis.GetAxisPosition();
1841
rectLabels.
X
= labelsAxis.PlotAreaPosition.X;
1844
rectLabels.
X
-= rectLabels.Width;
1848
rectLabels.
X
-= labelsAxis.markSize;
1860
rectLabels.
X
= (float)labelsAxis.GetAxisPosition();
1865
rectLabels.
X
= labelsAxis.PlotAreaPosition.Right;
1870
rectLabels.
X
+= labelsAxis.markSize;
2041
boundaryRect.
X
+= _axis.totlaGroupingLabelsSize;
2128
rect.
X
= rectLabels.Right - _axis.unRotatedLabelSize;
2138
rect.
X
+= rect.Width;
2155
rect.
X
+= rect.Width;
2211
rect.
X
+= _axis.totlaGroupingLabelsSizeAdjustment;
2214
rect.
X
+= _axis.groupingLabelSizes[index - 1];
2220
rect.
X
= rect.Right - _axis.totlaGroupingLabelsSize - _axis.totlaGroupingLabelsSizeAdjustment;// + Axis.elementSpacing * 0.25f;
2223
rect.
X
+= _axis.groupingLabelSizes[index - 1];
2260
rect.
X
= (float)Math.Min(fromPosition, toPosition);
2271
rect.
X
-= rect.Width / 2F;
2319
rect.
X
= rectPoints[1].X;
2331
rect.
X
= rectPoints[0].X;
2340
rect.
X
= rectPoints[1].X;
2348
rect.
X
= rightLabelsRect.X;
2362
rect.
X
= rectPoints[0].X;
2372
rect.
X
= rectPoints[1].X;
2386
rect.
X
= rightLabelsRect.X;
Common\General\Legend.cs (14)
1125
legendPosition.
X
= chartAreasRectangle.X + elementSpacing;
1129
legendPosition.
X
= chartAreasRectangle.Right - legendSize.Width - elementSpacing;
1133
legendPosition.
X
= chartAreasRectangle.X + (chartAreasRectangle.Width - legendSize.Width) / 2F;
1145
legendPosition.
X
= chartAreasRectangle.X + elementSpacing;
1149
legendPosition.
X
= chartAreasRectangle.Right - legendSize.Width - elementSpacing;
1153
legendPosition.
X
= chartAreasRectangle.X + (chartAreasRectangle.Width - legendSize.Width) / 2F;
1161
legendPosition.
X
= chartAreasRectangle.X + elementSpacing;
1177
chartAreasRectangle.
X
= legendPosition.Right;
1181
legendPosition.
X
= chartAreasRectangle.Right - legendSize.Width - elementSpacing;
4442
rect.
X
+= (int)(_itemColumnSpacingRel / 2f);
4968
legendPosition.
X
-= areaSpacing;
4971
legendPosition.
X
-= legendPosition.Width;
4976
legendPosition.
X
+= areaSpacing;
4979
legendPosition.
X
= area.Position.Right + areaSpacing;
Common\General\SmartLabels.cs (5)
1426
labelPosition.
X
= position.X - size.Width;
1429
labelPosition.
X
-= 4f*pixelSize.Width;
1435
labelPosition.
X
= position.X;
1443
labelPosition.
X
= position.X - size.Width/2F;
1446
labelPosition.
X
-= 2f*pixelSize.Width;
Common\General\StripLine.cs (6)
367
rect.
X
= plotAreaPosition.X;
379
rect.
X
= (float)Math.Min(pos1, pos2);
485
lineRect.
X
= point1.X;
492
lineRect.
X
= point1.X - relBorderWidth.Width / 2f;
561
rect.
X
= rect.Right;
623
rect.
X
= point1.X;
Common\General\Title.cs (21)
1414
titlePosition.
X
= titlePosition.X - titlePosition.Width;
1420
titlePosition.
X
= titlePosition.X - titlePosition.Width/2f;
1509
exactTitleRect.
X
= titlePosition.Right - exactTitleRect.Width;
1515
exactTitleRect.
X
= titlePosition.X +
1567
absPosition.
X
+= this.titleBorderSpacing / 2f;
1758
shadowPosition.
X
-= 1;
1765
shadowPosition.
X
+= 2;
1782
shadowPosition.
X
+= 1;
1789
shadowPosition.
X
-= 2;
1807
shadowPosition.
X
+= shadowOffset;
1906
titlePosition.
X
= chartAreasRectangle.X + elementSpacing;
1920
titlePosition.
X
= chartAreasRectangle.X + elementSpacing;
1932
titlePosition.
X
= chartAreasRectangle.X + elementSpacing;
1942
chartAreasRectangle.
X
= titlePosition.Right;
1946
titlePosition.
X
= chartAreasRectangle.Right - titleSize.Width - elementSpacing;
1968
titlePosition.
X
+= this.DockingOffset;
2118
titlePosition.
X
-= areaSpacing;
2121
titlePosition.
X
-= titlePosition.Width;
2122
prevChartAreasRectangle.
X
-= titlePosition.Width + areaSpacing;
2128
titlePosition.
X
+= areaSpacing;
2131
titlePosition.
X
= prevChartAreasRectangle.Right + areaSpacing;
System.Windows.Forms.DataVisualization (291)
Common\Annotation\CalloutAnnotation.cs (1)
660
rectanglePosition.
X
= rectanglePosition.Right;
Common\Annotation\GroupAnnotation.cs (1)
929
selectionRect.
X
= selectionRect.Right;
Common\Annotation\ImageAnnotation.cs (1)
534
rectanglePosition.
X
= rectanglePosition.Right;
Common\Annotation\PolygonAnnotation.cs (1)
575
rectanglePosition.
X
= rectanglePosition.Right;
Common\Annotation\RectangleAnnotation.cs (2)
398
rectanglePosition.
X
= rectanglePosition.Right;
636
rectanglePosition.
X
= rectanglePosition.Right;
Common\Annotation\TextAnnotation.cs (6)
428
textPosition.
X
= textPosition.Right;
537
textPositionWithSpacing.
X
+= textSpacing.X * spacingScaleX;
567
textPositionWithSpacing.
X
= textPosition.X;
570
textPositionWithSpacing.
X
+= textSpacing.X / 2f;
646
textActualPosition.
X
+= textPositionWithSpacing.Width - textSize.Width;
652
textActualPosition.
X
+= (textPositionWithSpacing.Width - textSize.Width) / 2f;
Common\Borders3D\EmbedBorder.cs (10)
683
rect.
X
+= sizeLeftTop.Width;
862
areasRect.
X
+= relSizeLeftTop.Width;
872
areasRect.
X
-= 100f - areasRect.Right;
954
shadowRect.
X
-= radius * 0.3f;
963
shadowRect.
X
+= radius * 0.3f;
999
screwRect.
X
= shadowRect.X + offset;
1006
screwRect.
X
= shadowRect.Right - offset - screwRect.Width;
1010
screwRect.
X
= shadowRect.Right - offset - screwRect.Width;
1015
screwRect.
X
= shadowRect.X + offset;
1038
shadowRect.
X
-= 0.5f*radius;
Common\Borders3D\EmbossBorder.cs (4)
119
areasRect.
X
+= borderSize.Width;
131
areasRect.
X
-= 100f - areasRect.Width;
213
shadowRect.
X
= absolute.X + radius / 3f;
221
shadowRect.
X
= absolute.X + 3f * resolution / 96.0f;
Common\ChartTypes\BarChart.cs (20)
566
rectSize.
X
= (float)barStartPosition;
571
rectSize.
X
= (float)barSize;
901
rectLabel.
X
= rectSize.Right;
907
rectLabel.
X
= area.PlotAreaPosition.X;
913
rectLabel.
X
= area.PlotAreaPosition.X;
930
rectLabel.
X
+= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F);
955
rectLabel.
X
+= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F);
1044
labelBackPosition.
X
+= spacing / 2f;
1045
rectLabel.
X
+= spacing;
1049
labelBackPosition.
X
= rectLabel.X + (rectLabel.Width - valueTextSize.Width) / 2f;
1053
labelBackPosition.
X
= rectLabel.Right - valueTextSize.Width - spacing / 2f;
1054
rectLabel.
X
-= spacing;
1475
rectSize.
X
= (float)barStartPosition;
1484
rectSize.
X
= (float)barSize;
1674
rectSize.
X
= (float)barStartPosition;
1679
rectSize.
X
= (float)barSize;
1927
rectLabel.
X
= rectSize.Right;
1932
rectLabel.
X
= area.PlotAreaPosition.X;
1949
rectLabel.
X
+= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F);
1974
rectLabel.
X
+= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F);
Common\ChartTypes\BoxPlotChart.cs (4)
436
rectSize.
X
= (float)(xPosition - width/2);
576
areaRect.
X
= xPosition - width / 2f;
1224
rectSize.
X
= (float)(points[0].X - width/2);
1363
areaRect.
X
= xPosition - width / 2f;
Common\ChartTypes\ColumnChart.cs (3)
467
rectSize.
X
= (float)(xPosition - width/2);
795
rectSize.
X
= (float)(pointEx.xPosition - pointEx.width/2);
844
rectSize.
X
= area.PlotAreaPosition.X;
Common\ChartTypes\ErrorBarChart.cs (2)
594
areaRect.
X
= xPosition - width / 2f;
1358
areaRect.
X
= xPosition - width / 2f;
Common\ChartTypes\FunnelChart.cs (14)
1719
position.
X
-= spacing;
1729
requiredSpacing.
X
= plotAreaPositionAbs.X - position.X;
1858
labelInfo.Position.
X
= plotAreaPositionAbs.Right +
1876
labelInfo.Position.
X
= plotAreaPositionAbs.X -
1902
labelInfo.Position.
X
= plotAreaCenterXAbs +
1908
labelInfo.Position.
X
= plotAreaCenterXAbs -
1922
labelInfo.Position.
X
= plotAreaCenterXAbs +
1928
labelInfo.Position.
X
= plotAreaCenterXAbs -
1941
labelInfo.Position.
X
= plotAreaCenterXAbs +
1947
labelInfo.Position.
X
= plotAreaCenterXAbs -
1960
labelInfo.Position.
X
= plotAreaPositionAbs.Right +
1971
labelInfo.Position.
X
= plotAreaPositionAbs.X -
1999
labelInfo.Position.
X
= plotAreaCenterXAbs - labelInfo.Size.Width / 2f;
2190
plotAreaPosition.
X
+= plotAreaSpacing.X;
Common\ChartTypes\PieChart.cs (17)
807
rectangle.
X
+= rectangle.Width * ( 1 - _sizeCorrection ) / 2;
816
rect.
X
= (rect.X - area.Position.X) / area.Position.Width * 100f;
1396
rect.
X
= labelRectOver.X;
1414
labelBackPosition.
X
-= spacing / 2f;
1418
labelBackPosition.
X
= rect.X + (rect.Width - valueTextSize.Width) / 2f;
1422
labelBackPosition.
X
= rect.Right - valueTextSize.Width - spacing / 2f;
1487
labelRect.
X
= area.Position.X;
1494
labelRect.
X
= labelPosition.X;
1818
doughnutRect.
X
= rectangle.X + rectangle.Width * (1 - (100 - doughnutRadius) / 100) / 2;
2584
rectangle.
X
+= rectangle.Width * ( 1 - sizeCorrection ) / 2;
2606
rect.
X
= (rect.X - area.Position.X) / area.Position.Width * 100f;
5353
pieRectangle.
X
= pieRectangle.X + ( oldWidth - pieRectangle.Width ) / 2F;
5465
labelPosition.
X
= labelPoint.X;
5485
labelPosition.
X
= chartAreaPosition.X;
5512
labelBackPosition.
X
-= spacing / 2f;
5516
labelBackPosition.
X
= labelPosition.X + (labelPosition.Width - valueTextSize.Width) / 2f;
5520
labelBackPosition.
X
= labelPosition.Right - valueTextSize.Width - spacing / 2f;
Common\ChartTypes\PointAndFigureChart.cs (1)
818
position.
X
= rectSize.X;
Common\ChartTypes\PointChart.cs (11)
910
labelBackPosition.
X
+= horizontalSpacing / 2f;
913
labelBackPosition.
X
+= horizontalSpacing / 2f;
916
labelBackPosition.
X
+= horizontalSpacing / 2f;
919
labelBackPosition.
X
-= horizontalSpacing / 2f;
922
labelBackPosition.
X
-= horizontalSpacing / 2f;
925
labelBackPosition.
X
-= horizontalSpacing / 2f;
986
labelPosition.
X
= position.X - size.Width;
989
labelPosition.
X
-= 4f*pixelSize.Width;
995
labelPosition.
X
= position.X;
1003
labelPosition.
X
= position.X - size.Width/2F;
1006
labelPosition.
X
-= 2f*pixelSize.Width;
Common\ChartTypes\StackedBarChart.cs (9)
484
areaPosition.
X
= (float)Math.Floor(areaPosition.X);
822
rectSize.
X
= (float)zero;
827
rectSize.
X
= (float)height;
1575
rectSize.
X
= (float)zero;
1580
rectSize.
X
= (float)height;
1736
rectSize.
X
= (float)zero;
1741
rectSize.
X
= (float)height;
1883
rectLabel.
X
= rectSize.Right;
1888
rectLabel.
X
= area.PlotAreaPosition.X;
Common\ChartTypes\StackedColumnChart.cs (5)
490
areaPosition.
X
= (float)Math.Floor(areaPosition.X);
835
rectSize.
X
= (float)(xPosition - width/2);
1602
rectSize.
X
= (float)(pointEx.xPosition - pointEx.width/2);
1658
rectSize.
X
= area.PlotAreaPosition.X;
1765
rectSize.
X
= (float)(pointEx.xPosition - pointEx.width/2);
Common\ChartTypes\StockChart.cs (4)
465
areaRect.
X
= xPosition - width / 2f;
799
rect.
X
= xPosition - width / 2f;
1279
areaRect.
X
= xPosition - width / 2f;
1624
rect.
X
= xPosition - width / 2f;
Common\General\Axis.cs (14)
1819
_titlePosition.
X
= ChartArea.PlotAreaPosition.X - titleSizeWithoutSpacing - axisSize;
1851
_titlePosition.
X
+= titleSizeWithoutSpacing / 2f - _titlePosition.Width / 2f;
1862
_titlePosition.
X
= ChartArea.PlotAreaPosition.Right + axisSize;
1894
_titlePosition.
X
+= titleSizeWithoutSpacing / 2f - _titlePosition.Width / 2f;
1907
_titlePosition.
X
= ChartArea.PlotAreaPosition.X;
1923
_titlePosition.
X
= ChartArea.PlotAreaPosition.X;
1973
transformedTitlePosition.
X
-= transformedTitlePosition.Width;
2047
rect.
X
+= (rect.Width - rect.Height) / 2f;
2148
rect.
X
+= (rect.Width - rect.Height) / 2f;
4956
curLabelPosition.
X
= labelPosition[0].X - textSize.Width / 2f;
4961
curLabelPosition.
X
= labelPosition[0].X - textSize.Width / 2f;
5302
rect.
X
= (float)Math.Min(fromPosition, toPosition);
5410
rect.
X
= this.PlotAreaPosition.X;
5551
labelPosition.
X
= labelPosition.X + labelPosition.Width / 2f - width / 2f;
Common\General\AxisScaleSegments.cs (5)
393
shadowPartRect.
X
= shadowPartRect.Right - 1;
398
shadowPartRect.
X
+= this.axis.ChartArea.ShadowOffset;
429
clipRegion.
X
+= this.axis.ChartArea.ShadowOffset;
702
breakPosition.
X
= (float)Math.Min(from, to);
713
breakPosition.
X
-= this.axis.ChartArea.BorderWidth;
Common\General\Chart.cs (5)
2200
areaPosition.
X
= chartAreasRectangle.X + column * (chartAreasRectangle.Width / areaColumns) + elementSpacing;
3111
areaPlotPosition.
X
+= area.PlotAreaPosition.X - areaPlotPosition.X;
3148
rect.
X
= areaPlotPosition.X;
3161
rect.
X
= (rect.X - area.Position.X) / area.Position.Width * 100f;
3210
areaPosition.
X
= masterArea.Position.X;
Common\General\ChartArea.cs (9)
1470
plottingRect.
X
+= (Position.Width / 100F) * InnerPlotPosition.X;
1577
plottingRect.
X
+= areaWallSize.Width;
1689
plottingRect.
X
+= axisSize;
1715
rectLabelSideSpacing.
X
= (float)Math.Max(offset, rectLabelSideSpacing.X);
1777
plottingRect.
X
-= delta;
1800
plottingRect.
X
+= xTitleSize;
1814
rect.
X
+= (rect.Width - rect.Height) / 2f;
2090
plottingRect.
X
+= (Position.Width / 100F) * InnerPlotPosition.X;
2621
plotAreaRectAbs.
X
+= labelsSize;
Common\General\ChartArea3D.cs (4)
716
position.
X
-= areaSceneWallWidth.Width;
752
wallRect2D.
X
= position.Right - areaSceneWallWidth.Width;
775
wallRect2D.
X
+= areaSceneWallWidth.Width;
1280
plottingRect.
X
+= (area.Position.Width / 100F) * area.InnerPlotPosition.X;
Common\General\ChartGraphics.cs (38)
722
rect.
X
= point.X - imageScaleRect.Width / 2F;
778
rect.
X
= point.X - ((float)markerSize) / 2F;
837
shadowRect.
X
+= shadowSize;
1038
diamondRect.
X
= point.X - ((float)diamondSize) / 2F;
1877
newRect.
X
= absPosition.X + absPosition.Width / 2F;
1887
newRect.
X
-= newRect.Width;
1905
newRect.
X
-= newRect.Width;
1933
newRect.
X
= rotationPoint.X - absPosition.Height / 2F;
1990
labelRect.
X
= absPosition.Right - labelSize.Width;
1994
labelRect.
X
= absPosition.X;
1998
labelRect.
X
= absPosition.X + absPosition.Width / 2F - labelSize.Width / 2F;
2048
boundaryRect.
X
= 0;
2078
absPosition.
X
= labelRect.X + sizeChange;
2086
absPosition.
X
= labelRect.X;
2093
absPosition.
X
= labelRect.X;
2098
absPosition.
X
+= sizeChange;
2104
absPosition.
X
= labelRect.X;
2109
absPosition.
X
+= sizeChange;
2137
absPositionWithoutImage.
X
+= imageAbsSize.Width;
2310
imageRect.
X
= absPosition.X + (absPosition.Width - imageAbsSize.Width - labelSize.Width) / 2;
2314
imageRect.
X
= absPosition.Right - imageAbsSize.Width - labelSize.Width;
2318
imageRect.
X
= absPosition.X;
2404
newRect.
X
= centerNotRound.X - absPosition.Height / 2F;
2873
gradientRect.
X
+= gradientRect.Width + 1f;
2976
gradientRect.
X
= gradientRect.Right - (float)Math.Floor(gradientRect.Width / 3f);
3534
imageRect.
X
= fillRect.X;
3557
imageRect.
X
= fillRect.Right - imageRect.Width;
3563
imageRect.
X
= fillRect.X + (fillRect.Width - imageRect.Width)/2;
3759
offset.
X
= absolute.X + shadowOffset;
3781
offset.
X
= absolute.X + shadowOffset - 1;
4215
imageRect.
X
= fillRect.X;
4238
imageRect.
X
= fillRect.Right - imageRect.Width;
4244
imageRect.
X
= fillRect.X + (fillRect.Width - imageRect.Width)/2;
4511
imageRect.
X
= fillRect.X;
4534
imageRect.
X
= fillRect.Right - imageRect.Width;
4540
imageRect.
X
= fillRect.X + (fillRect.Width - imageRect.Width)/2;
4654
relative.
X
= rectangle.X * 100F / ((float)(_width - 1));
4745
absolute.
X
= rectangle.X * (_width - 1) / 100F;
Common\General\ChartGraphics3D.cs (10)
712
pieTopRectangle.
X
= topFirstRectPoint.X;
718
pieBottomRectangle.
X
= bottomFirstRectPoint.X;
843
pieRectangle.
X
= firstRectPoint.X;
969
pieRectangle.
X
= firstRectPoint.X;
975
pieDoughnutRectangle.
X
= pieRectangle.X + pieRectangle.Width * (1F - doughnutRadius) / 2F;
3253
gradientRect.
X
= gradientRect.Right - (float)Math.Floor(gradientRect.Width / 3f);
3509
rect.
X
= markerRotatedPosition.X - ((float)markerSize)/2F;
3531
rect.
X
= markerRotatedPosition.X - ((float)markerSize) / 2F;
3554
shadowRect.
X
+= shadowSize;
3632
rectNonRotated.
X
= point.X - ((float)markerRelativeSize.Width) / 2F;
Common\General\Label.cs (43)
1329
labelPosition.
X
= position.X - size.Width;
1333
labelPosition.
X
= position.X;
1337
labelPosition.
X
= position.X - size.Width/2F;
1392
rectLabels.
X
= (float)_axis.GetAxisPosition();
1394
rectLabels.
X
= _axis.PlotAreaPosition.X;
1396
rectLabels.
X
-= labelSize + _axis.markSize;
1406
rectLabels.
X
= (float)_axis.GetAxisPosition();
1408
rectLabels.
X
= _axis.PlotAreaPosition.Right;
1409
rectLabels.
X
+= _axis.markSize;
1448
boundaryRect.
X
+= _axis.totlaGroupingLabelsSize;
1626
rect.
X
= rectLabels.Right - _axis.unRotatedLabelSize;
1635
rect.
X
+= rect.Width;
1649
rect.
X
+= rect.Width;
1692
rect.
X
+= _axis.totlaGroupingLabelsSizeAdjustment;
1695
rect.
X
+= _axis.groupingLabelSizes[index - 1];
1701
rect.
X
= rect.Right - _axis.totlaGroupingLabelsSize - _axis.totlaGroupingLabelsSizeAdjustment;// + Axis.elementSpacing * 0.25f;
1704
rect.
X
+= _axis.groupingLabelSizes[index - 1];
1746
rect.
X
= (float)Math.Min(fromPosition, toPosition);
1753
rect.
X
-= rect.Width / 2F;
1836
rectLabels.
X
= (float)labelsAxis.GetAxisPosition();
1841
rectLabels.
X
= labelsAxis.PlotAreaPosition.X;
1844
rectLabels.
X
-= rectLabels.Width;
1848
rectLabels.
X
-= labelsAxis.markSize;
1860
rectLabels.
X
= (float)labelsAxis.GetAxisPosition();
1865
rectLabels.
X
= labelsAxis.PlotAreaPosition.Right;
1870
rectLabels.
X
+= labelsAxis.markSize;
2041
boundaryRect.
X
+= _axis.totlaGroupingLabelsSize;
2128
rect.
X
= rectLabels.Right - _axis.unRotatedLabelSize;
2138
rect.
X
+= rect.Width;
2155
rect.
X
+= rect.Width;
2211
rect.
X
+= _axis.totlaGroupingLabelsSizeAdjustment;
2214
rect.
X
+= _axis.groupingLabelSizes[index - 1];
2220
rect.
X
= rect.Right - _axis.totlaGroupingLabelsSize - _axis.totlaGroupingLabelsSizeAdjustment;// + Axis.elementSpacing * 0.25f;
2223
rect.
X
+= _axis.groupingLabelSizes[index - 1];
2260
rect.
X
= (float)Math.Min(fromPosition, toPosition);
2271
rect.
X
-= rect.Width / 2F;
2319
rect.
X
= rectPoints[1].X;
2331
rect.
X
= rectPoints[0].X;
2340
rect.
X
= rectPoints[1].X;
2348
rect.
X
= rightLabelsRect.X;
2362
rect.
X
= rectPoints[0].X;
2372
rect.
X
= rectPoints[1].X;
2386
rect.
X
= rightLabelsRect.X;
Common\General\Legend.cs (14)
1125
legendPosition.
X
= chartAreasRectangle.X + elementSpacing;
1129
legendPosition.
X
= chartAreasRectangle.Right - legendSize.Width - elementSpacing;
1133
legendPosition.
X
= chartAreasRectangle.X + (chartAreasRectangle.Width - legendSize.Width) / 2F;
1145
legendPosition.
X
= chartAreasRectangle.X + elementSpacing;
1149
legendPosition.
X
= chartAreasRectangle.Right - legendSize.Width - elementSpacing;
1153
legendPosition.
X
= chartAreasRectangle.X + (chartAreasRectangle.Width - legendSize.Width) / 2F;
1161
legendPosition.
X
= chartAreasRectangle.X + elementSpacing;
1177
chartAreasRectangle.
X
= legendPosition.Right;
1181
legendPosition.
X
= chartAreasRectangle.Right - legendSize.Width - elementSpacing;
4442
rect.
X
+= (int)(_itemColumnSpacingRel / 2f);
4968
legendPosition.
X
-= areaSpacing;
4971
legendPosition.
X
-= legendPosition.Width;
4976
legendPosition.
X
+= areaSpacing;
4979
legendPosition.
X
= area.Position.Right + areaSpacing;
Common\General\SmartLabels.cs (5)
1426
labelPosition.
X
= position.X - size.Width;
1429
labelPosition.
X
-= 4f*pixelSize.Width;
1435
labelPosition.
X
= position.X;
1443
labelPosition.
X
= position.X - size.Width/2F;
1446
labelPosition.
X
-= 2f*pixelSize.Width;
Common\General\StripLine.cs (6)
367
rect.
X
= plotAreaPosition.X;
379
rect.
X
= (float)Math.Min(pos1, pos2);
485
lineRect.
X
= point1.X;
492
lineRect.
X
= point1.X - relBorderWidth.Width / 2f;
561
rect.
X
= rect.Right;
623
rect.
X
= point1.X;
Common\General\Title.cs (21)
1414
titlePosition.
X
= titlePosition.X - titlePosition.Width;
1420
titlePosition.
X
= titlePosition.X - titlePosition.Width/2f;
1509
exactTitleRect.
X
= titlePosition.Right - exactTitleRect.Width;
1515
exactTitleRect.
X
= titlePosition.X +
1567
absPosition.
X
+= this.titleBorderSpacing / 2f;
1758
shadowPosition.
X
-= 1;
1765
shadowPosition.
X
+= 2;
1782
shadowPosition.
X
+= 1;
1789
shadowPosition.
X
-= 2;
1807
shadowPosition.
X
+= shadowOffset;
1906
titlePosition.
X
= chartAreasRectangle.X + elementSpacing;
1920
titlePosition.
X
= chartAreasRectangle.X + elementSpacing;
1932
titlePosition.
X
= chartAreasRectangle.X + elementSpacing;
1942
chartAreasRectangle.
X
= titlePosition.Right;
1946
titlePosition.
X
= chartAreasRectangle.Right - titleSize.Width - elementSpacing;
1968
titlePosition.
X
+= this.DockingOffset;
2118
titlePosition.
X
-= areaSpacing;
2121
titlePosition.
X
-= titlePosition.Width;
2122
prevChartAreasRectangle.
X
-= titlePosition.Width + areaSpacing;
2128
titlePosition.
X
+= areaSpacing;
2131
titlePosition.
X
= prevChartAreasRectangle.Right + areaSpacing;
WinForm\Utilities\AccessibleObject.cs (1)
304
absolute.
X
= bounds.X * (this._chart.Width - 1) / 100F;
1078 references to X
System.Drawing (55)
commonui\System\Drawing\Advanced\GPRECTF.cs (1)
30
X = rect.
X
;
commonui\System\Drawing\Advanced\GraphicsPath.cs (4)
777
AddArc(rect.
X
, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle);
1134
int status = SafeNativeMethods.Gdip.GdipAddPathRectangle(new HandleRef(this, nativePath), rect.
X
, rect.Y,
1201
AddEllipse(rect.
X
, rect.Y, rect.Width, rect.Height);
1654
srcRect.
X
,
commonui\System\Drawing\Advanced\RectangleF.cs (29)
96
return new PointF(
X
, Y);
195
return
X
;
222
return
X
+ Width;
266
return (comp.
X
== this.
X
) &&
280
return (left.
X
== right.
X
306
return this.
X
<= x &&
307
x < this.
X
+ this.Width &&
334
return (this.
X
<= rect.
X
) &&
335
((rect.
X
+ rect.Width) <= (this.
X
+ this.Width)) &&
346
return unchecked((int)((UInt32)
X
^
395
this.X = result.
X
;
408
float x1 = Math.Max(a.
X
, b.
X
);
409
float x2 = Math.Min(a.
X
+ a.Width, b.
X
+ b.Width);
427
return (rect.
X
< this.
X
+ this.Width) &&
428
(this.
X
< (rect.
X
+ rect.Width)) &&
440
float x1 = Math.Min(a.
X
, b.
X
);
441
float x2 = Math.Max(a.
X
+ a.Width, b.
X
+ b.Width);
470
return new GPRECTF(
X
, Y, Width, Height);
488
return "{X=" +
X
.ToString(CultureInfo.CurrentCulture) + ",Y=" + Y.ToString(CultureInfo.CurrentCulture) +
commonui\System\Drawing\Advanced\TextureBrush.cs (2)
123
dstRect.
X
,
221
dstRect.
X
,
commonui\System\Drawing\Bitmap.cs (1)
531
rect.
X
,
commonui\System\Drawing\Graphics.cs (14)
1278
DrawArc(pen, rect.
X
, rect.Y, rect.Width, rect.Height, startAngle, sweepAngle);
1516
DrawEllipse(pen, rect.
X
, rect.Y, rect.Width, rect.Height);
1575
DrawPie(pen, rect.
X
, rect.Y, rect.Width, rect.Height, startAngle,
1992
FillRectangle(brush, rect.
X
, rect.Y, rect.Width, rect.Height);
2179
FillEllipse(brush, rect.
X
, rect.Y, rect.Width, rect.Height);
2778
DrawImage(image, rect.
X
, rect.Y, rect.Width, rect.Height);
3000
srcRect.
X
,
3054
destRect.
X
,
3058
srcRect.
X
,
3130
srcRect.
X
,
3188
srcRect.
X
,
3977
int status = SafeNativeMethods.Gdip.GdipSetClipRect(new HandleRef(this, this.NativeGraphics), rect.
X
, rect.Y,
4037
int status = SafeNativeMethods.Gdip.GdipSetClipRect(new HandleRef(this, this.NativeGraphics), rect.
X
, rect.Y,
4378
int status = SafeNativeMethods.Gdip.GdipIsVisibleRect(new HandleRef(this, this.NativeGraphics), rect.
X
, rect.Y,
commonui\System\Drawing\Rectangle.cs (3)
300
return new Rectangle((int)Math.Ceiling(value.
X
),
312
return new Rectangle((int)value.
X
,
324
return new Rectangle((int)Math.Round(value.
X
),
commonui\System\Drawing\Region.cs (1)
869
int status = SafeNativeMethods.Gdip.GdipIsVisibleRegionRect(new HandleRef(this, nativeRegion), rect.
X
, rect.Y,
System.Web.DataVisualization (510)
Common\Annotation\AnnotationBase.cs (9)
2064
rect.
X
- markerSizeRel.Width/2f,
2114
handlePosition = new PointF(rect.
X
+ rect.Width / 2f, rect.Y);
2126
handlePosition = new PointF(rect.
X
+ rect.Width / 2f, rect.Bottom);
2129
handlePosition = new PointF(rect.
X
, rect.Bottom);
2132
handlePosition = new PointF(rect.
X
, rect.Y + rect.Height / 2f);
2393
if(!double.IsNaN(currentPositionRel.
X
) && !double.IsNaN(currentPositionRel.
X
))
2655
relativeX = contentPosition.
X
* groupScaleX;
2906
double newX = position.
X
;
Common\Annotation\CalloutAnnotation.cs (62)
670
if( float.IsNaN(rectanglePosition.
X
) ||
942
if(anchorPoint.X < rectanglePosition.
X
&&
948
points[3] = new PointF(rectanglePositionAbs.
X
+ size, rectanglePositionAbs.Bottom);
950
points[5] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom - size);
951
points[6] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom - size);
953
else if(anchorPoint.X >= rectanglePosition.
X
&&
960
points[3] = new PointF(rectanglePositionAbs.
X
+ rectanglePositionAbs.Width / 2f + size, rectanglePositionAbs.Bottom);
962
points[5] = new PointF(rectanglePositionAbs.
X
+ rectanglePositionAbs.Width / 2f - size, rectanglePositionAbs.Bottom);
963
points[6] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
973
points[5] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
974
points[6] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
986
points[6] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
996
points[5] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
997
points[6] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
999
else if(anchorPoint.X >= rectanglePosition.
X
&&
1004
points[1] = new PointF(rectanglePositionAbs.
X
+ rectanglePositionAbs.Width/2f - size, rectanglePositionAbs.Y);
1006
points[3] = new PointF(rectanglePositionAbs.
X
+ rectanglePositionAbs.Width/2f + size, rectanglePositionAbs.Y);
1009
points[6] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
1011
else if(anchorPoint.X < rectanglePosition.
X
&&
1015
points[1] = new PointF(rectanglePositionAbs.
X
+ size, rectanglePositionAbs.Y);
1018
points[4] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
1019
points[5] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Y + size);
1020
points[6] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Y + size);
1022
else if(anchorPoint.X < rectanglePosition.
X
&&
1029
points[3] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
1030
points[4] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Y + rectanglePositionAbs.Height/2f + size );
1032
points[6] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Y + rectanglePositionAbs.Height/2f - size );
1117
rectanglePosition.
X
+ rectanglePosition.Width / 2f,
1137
if(point.X < rectanglePositionAbs.
X
)
1139
point = GetIntersectionX(cloudCenterAbs, anchorPointAbs, rectanglePositionAbs.
X
);
1149
if(point.X < rectanglePositionAbs.
X
)
1151
point = GetIntersectionX(cloudCenterAbs, anchorPointAbs, rectanglePositionAbs.
X
);
1160
if(anchorPoint.X < rectanglePosition.
X
)
1162
point = GetIntersectionX(cloudCenterAbs, anchorPointAbs, rectanglePositionAbs.
X
);
1330
points1[0] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Y);
1334
if(anchorPoint.X < rectanglePosition.
X
)
1337
points2[0] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
1338
points2[1] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Y);
1354
points1[0] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
1358
if(anchorPoint.X < rectanglePosition.
X
)
1361
points2[0] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
1362
points2[1] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Y);
1377
if(anchorPoint.X < rectanglePosition.
X
)
1380
points2[0] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
1381
points2[1] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Y);
1482
PointF textLinePoint1 = new PointF(rectanglePosition.
X
, rectanglePosition.Bottom);
1492
if(anchorPoint.X < rectanglePosition.
X
)
1494
lineSecondPoint.X = rectanglePosition.
X
;
1502
lineSecondPoint.X = rectanglePosition.
X
+ rectanglePosition.Width / 2f;
1598
if(anchorPoint.X < rectanglePosition.
X
)
1600
textLinePoint1.X = rectanglePosition.
X
;
1601
textLinePoint2.X = rectanglePosition.
X
;
1673
matrix.Translate(-_cloudBounds.
X
, -_cloudBounds.Y);
1676
matrix.Translate(position.
X
, position.Y);
1784
matrix.Translate(-_cloudBounds.
X
, -_cloudBounds.Y);
1787
matrix.Translate(position.
X
, position.Y);
1878
PathAddLineAsSegments(path, rect.
X
+cornerRadius, rect.Y, rect.Right-cornerRadius, rect.Y, segments);
1886
PathAddLineAsSegments(path, rect.Right-cornerRadius, rect.Bottom, rect.
X
+ cornerRadius, rect.Bottom, segments);
1888
path.AddArc(rect.
X
, rect.Bottom-2f*cornerRadius, 2f*cornerRadius, 2f*cornerRadius, 90, 90);
1890
PathAddLineAsSegments(path, rect.
X
, rect.Bottom-cornerRadius, rect.
X
, rect.Y+cornerRadius, segments);
1892
path.AddArc(rect.
X
, rect.Y, 2f*cornerRadius, 2f*cornerRadius, 180, 90);
Common\Annotation\GroupAnnotation.cs (1)
940
float.IsNaN(selectionRect.
X
) ||
Common\Annotation\ImageAnnotation.cs (1)
544
if( float.IsNaN(rectanglePosition.
X
) ||
Common\Annotation\PolygonAnnotation.cs (2)
585
if( float.IsNaN(rectanglePosition.
X
) ||
605
pathPoints[pointIndex].X = rectanglePositionAbs.
X
+ pathPoints[pointIndex].X * groupScaleX;
Common\Annotation\RectangleAnnotation.cs (3)
408
if( float.IsNaN(rectanglePosition.
X
) ||
646
if( float.IsNaN(rectanglePosition.
X
) ||
710
rectangle.
X
+ 1,
Common\Annotation\TextAnnotation.cs (7)
439
float.IsNaN(textPosition.
X
) ||
536
textPositionWithSpacing.Width -= (textSpacing.Width + textSpacing.
X
) * spacingScaleX;
537
textPositionWithSpacing.X += textSpacing.
X
* spacingScaleX;
567
textPositionWithSpacing.X = textPosition.
X
;
569
textPositionWithSpacing.Width -= textSpacing.Width/2f + textSpacing.
X
/ 2f;
570
textPositionWithSpacing.X += textSpacing.
X
/ 2f;
980
contentSize.Width += (textSpacing.
X
+ textSpacing.Width) * spacingScaleX;
Common\Borders3D\EmbedBorder.cs (8)
999
screwRect.X = shadowRect.
X
+ offset;
1015
screwRect.X = shadowRect.
X
+ offset;
1030
shadowRect.
X
- radius,
1060
shadowRect.
X
+ radius*.5f,
1093
graph.DrawEllipse(screwPen, rect.
X
, rect.Y, rect.Width, rect.Height);
1094
graph.DrawLine(screwPen, rect.
X
+ 2 * resolution / 96.0f, rect.Y + rect.Height - 2 * resolution / 96.0f, rect.Right - 2 * resolution / 96.0f, rect.Y + 2 * resolution / 96.0f);
1096
graph.DrawEllipse(screwPen, rect.
X
+ 1 * resolution / 96.0f, rect.Y + 1 * resolution / 96.0f, rect.Width, rect.Height);
1097
graph.DrawLine(screwPen, rect.
X
+ 3 * resolution / 96.0f, rect.Y + rect.Height - 1 * resolution / 96.0f, rect.Right - 1 * resolution / 96.0f, rect.Y + 3 * resolution / 96.0f);
Common\Borders3D\EmbossBorder.cs (4)
129
if(areasRect.
X
+ areasRect.Width > 100f)
213
shadowRect.X = absolute.
X
+ radius / 3f;
221
shadowRect.X = absolute.
X
+ 3f * resolution / 96.0f;
249
shadowRect.
X
- radius,
Common\ChartTypes\BarChart.cs (15)
567
rectSize.Width = (float)barSize - rectSize.
X
;
572
rectSize.Width = (float)barStartPosition - rectSize.
X
;
582
point.positionRel = new PointF(( barStartPosition < barSize ) ? rectSize.Right : rectSize.
X
, (float)xPosition);
783
markerPosition.X = rectSize.
X
;
906
rectLabel.Width = rectSize.
X
- area.PlotAreaPosition.X;
914
rectLabel.Width = rectSize.
X
- area.PlotAreaPosition.X;
1036
rectLabel.
X
,
1049
labelBackPosition.X = rectLabel.
X
+ (rectLabel.Width - valueTextSize.Width) / 2f;
1476
rectSize.Width = (float)barSize - rectSize.
X
;
1485
rectSize.Width = (float)barStartPosition - rectSize.
X
;
1675
rectSize.Width = (float)barSize - rectSize.
X
;
1680
rectSize.Width = (float)barStartPosition - rectSize.
X
;
1766
markerPosition.X = rectSize.
X
;
1933
rectLabel.Width = rectSize.
X
- area.PlotAreaPosition.X;
2047
rotationCenter.X = rectLabel.
X
+ size.Width / 2;
Common\ChartTypes\ColumnChart.cs (7)
513
if(rectSize.
X
< area.PlotAreaPosition.X || rectSize.Right > area.PlotAreaPosition.Right)
836
if(rectSize.Right <= area.PlotAreaPosition.X || rectSize.
X
>= area.PlotAreaPosition.Right)
841
if(rectSize.
X
< area.PlotAreaPosition.X)
843
rectSize.Width -= area.PlotAreaPosition.X - rectSize.
X
;
1112
markerPosition.X = intersection.
X
+ intersection.Width / 2f;
1239
labelPosition.X = intersection.
X
+ intersection.Width / 2f;
1353
labelPosition.X = columnPosition.
X
+ columnPosition.Width / 2f;
Common\ChartTypes\FastPointChart.cs (6)
520
(int)Math.Round(markerBounds.
X
, 0),
583
points[0].X = markerBounds.
X
;
585
points[1].X = markerBounds.
X
+ markerBounds.Width/2F;
589
points[3].X = markerBounds.
X
+ markerBounds.Width/2F;
604
points[0].X = markerBounds.
X
;
606
points[1].X = markerBounds.
X
+ markerBounds.Width/2F;
Common\ChartTypes\FunnelChart.cs (39)
571
plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f,
585
plotAreaPositionAbs.
X
, location,
587
plotAreaPositionAbs.
X
, plotAreaPositionAbs.Y,
588
plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f - this._funnelNeckSize.Width / 2f,
594
plotAreaPositionAbs.
X
, location + height,
596
plotAreaPositionAbs.
X
, plotAreaPositionAbs.Y,
597
plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f - this._funnelNeckSize.Width / 2f,
601
startWidth = (float)( plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f -
603
endWidth = (float)( plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f -
608
plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f,
688
float xCenterPointAbs = plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f;
1002
float xCenterPointAbs = plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f;
1509
!float.IsNaN(labelInfo.Position.
X
) &&
1727
if( (plotAreaPositionAbs.
X
- position.
X
) > requiredSpacing.
X
)
1729
requiredSpacing.X = plotAreaPositionAbs.
X
- position.
X
;
1754
if(requiredSpacing.
X
> 1f ||
1784
float plotAreaCenterXAbs = plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f;
1872
labelInfo.CalloutPoint2.X = labelInfo.Position.
X
;
1876
labelInfo.Position.X = plotAreaPositionAbs.
X
-
1966
labelInfo.CalloutPoint2.X = labelInfo.Position.
X
;
1971
labelInfo.Position.X = plotAreaPositionAbs.
X
-
2190
plotAreaPosition.X += plotAreaSpacing.
X
;
2192
plotAreaPosition.Width -= plotAreaSpacing.
X
+ plotAreaSpacing.Width;
2932
plotAreaPositionAbs.
X
, location - height,
2934
plotAreaPositionAbs.
X
, plotAreaPositionAbs.Bottom,
2935
plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f, plotAreaPositionAbs.Y );
2936
if(startIntersection.X > (plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f) )
2938
startIntersection.X = plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f;
2944
plotAreaPositionAbs.
X
, location,
2946
plotAreaPositionAbs.
X
, plotAreaPositionAbs.Bottom,
2947
plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f, plotAreaPositionAbs.Y );
2948
if(endIntersection.X > (plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f))
2950
endIntersection.X = plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f;
2954
startWidth = (float)Math.Abs( plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f -
2956
endWidth = (float)Math.Abs( plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f -
2961
plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f,
Common\ChartTypes\PieChart.cs (56)
780
rectangle = new RectangleF( area.Position.ToRectangleF().
X
, area.Position.ToRectangleF().Y, area.Position.ToRectangleF().Width, area.Position.ToRectangleF().Height );
784
rectangle = new RectangleF( area.PlotAreaPosition.ToRectangleF().
X
, area.PlotAreaPosition.ToRectangleF().Y, area.PlotAreaPosition.ToRectangleF().Width, area.PlotAreaPosition.ToRectangleF().Height );
799
PointF middlePoint = new PointF( rectangle.
X
+ rectangle.Width / 2, rectangle.Y + rectangle.Height / 2 );
816
rect.X = (rect.
X
- area.Position.X) / area.Position.Width * 100f;
820
area.InnerPlotPosition.SetPositionNoAuto(rect.
X
, rect.Y, rect.Width, rect.Height);
898
RectangleF shadowRect = new RectangleF( rectangle.
X
, rectangle.Y, rectangle.Width, rectangle.Height );
1396
rect.X = labelRectOver.
X
;
1406
rect.
X
,
1418
labelBackPosition.X = rect.
X
+ (rect.Width - valueTextSize.Width) / 2f;
1818
doughnutRect.X = rectangle.
X
+ rectangle.Width * (1 - (100 - doughnutRadius) / 100) / 2;
1827
path.AddPie(rectangle.
X
, rectangle.Y, rectangle.Width, rectangle.Height, startAngle, sweepAngle);
1841
path.AddPie(doughnutRect.
X
, doughnutRect.Y, doughnutRect.Width, doughnutRect.Width, startAngle, sweepAngle);
1940
float splitPoint = area.
X
+ area.Width / 2f;
1947
if( rect.
X
< splitPoint )
1973
if( rect.
X
< splitPoint )
1994
if( rect.
X
< splitPoint )
2026
if( rect.
X
>= splitPoint )
2047
if( rect.
X
>= splitPoint )
2489
RectangleF plotingRectangle = new RectangleF( area.Position.ToRectangleF().
X
+ 1, area.Position.ToRectangleF().Y + 1, area.Position.ToRectangleF().Width-2, area.Position.ToRectangleF().Height-2 );
2550
rectangle = new RectangleF( plotingRectangle.
X
, plotingRectangle.Y, plotingRectangle.Width, plotingRectangle.Height );
2552
rectangle = new RectangleF( area.PlotAreaPosition.ToRectangleF().
X
, area.PlotAreaPosition.ToRectangleF().Y, area.PlotAreaPosition.ToRectangleF().Width, area.PlotAreaPosition.ToRectangleF().Height );
2562
PointF middlePoint = new PointF( rectangle.
X
+ rectangle.Width / 2, rectangle.Y + rectangle.Height / 2 );
2606
rect.X = (rect.
X
- area.Position.X) / area.Position.Width * 100f;
2610
area.InnerPlotPosition.SetPositionNoAuto(rect.
X
, rect.Y, rect.Width, rect.Height);
3080
rectangle.
X
+ (float)Math.Cos( 180 * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3086
rectangle.
X
+ (float)Math.Cos( 180 * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3092
rectangle.
X
+ (float)Math.Cos( 0 * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3098
rectangle.
X
+ (float)Math.Cos( 0 * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3104
rectangle.
X
+ (float)Math.Cos( startAngle * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3110
rectangle.
X
+ (float)Math.Cos( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3116
rectangle.
X
+ (float)Math.Cos( startAngle * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3122
rectangle.
X
+ (float)Math.Cos( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3128
rectangle.
X
+ rectangle.Width / 2F,
3134
rectangle.
X
+ rectangle.Width / 2F,
3140
rectangle.
X
+ (float)Math.Cos( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3157
rectangle.
X
+ (float)Math.Cos( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Width * sizeOut / 2F + rectangle.Width / 2F,
3165
rectangle.
X
+ (float)Math.Cos( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Width * ( 1 + doughnutRadius ) / 4F + rectangle.Width / 2F,
3172
rectangle.
X
+ (float)Math.Cos( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Width * 0.5F / 2F + rectangle.Width / 2F,
3179
points[(int)PiePoints.TopRectTopLeftPoint] = new Point3D(rectangle.
X
,rectangle.Y,pieWidth);
3185
points[(int)PiePoints.BottomRectTopLeftPoint] = new Point3D(rectangle.
X
,rectangle.Y,0);
3194
rectangle.
X
+ (float)Math.Cos( 180 * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F,
3200
rectangle.
X
+ (float)Math.Cos( 180 * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F,
3206
rectangle.
X
+ (float)Math.Cos( 0 * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F,
3212
rectangle.
X
+ (float)Math.Cos( 0 * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F,
3218
rectangle.
X
+ (float)Math.Cos( startAngle * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F,
3224
rectangle.
X
+ (float)Math.Cos( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F,
3230
rectangle.
X
+ (float)Math.Cos( startAngle * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F,
3236
rectangle.
X
+ (float)Math.Cos( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F,
3243
points[(int)PiePoints.DoughnutTopRectTopLeftPoint] = new Point3D(rectangle.
X
,rectangle.Y,pieWidth);
3249
points[(int)PiePoints.DoughnutBottomRectTopLeftPoint] = new Point3D(rectangle.
X
,rectangle.Y,0);
5353
pieRectangle.X = pieRectangle.
X
+ ( oldWidth - pieRectangle.Width ) / 2F;
5466
labelPosition.Width = chartAreaPosition.Right - labelPosition.
X
;
5485
labelPosition.X = chartAreaPosition.
X
;
5486
labelPosition.Width = labelPoint.X - labelPosition.
X
;
5504
labelPosition.
X
,
5516
labelBackPosition.X = labelPosition.
X
+ (labelPosition.Width - valueTextSize.Width) / 2f;
Common\ChartTypes\PointAndFigureChart.cs (1)
818
position.X = rectSize.
X
;
Common\ChartTypes\StackedBarChart.cs (13)
484
areaPosition.X = (float)Math.Floor(areaPosition.
X
);
485
areaPosition.Width = right - areaPosition.
X
;
823
rectSize.Width = (float)height - rectSize.
X
;
828
rectSize.Width = (float)zero - rectSize.
X
;
873
rectSize.
X
< area.PlotAreaPosition.X ||
1078
labelPosition.X = rectangle.
X
+ rectangle.Width / 2f;
1128
labelPosition.X = rectangle.
X
+ sizeFont.Width / 2f;
1576
rectSize.Width = (float)height - rectSize.
X
;
1581
rectSize.Width = (float)zero - rectSize.
X
;
1737
rectSize.Width = (float)height - rectSize.
X
;
1742
rectSize.Width = (float)zero - rectSize.
X
;
1889
rectLabel.Width = rectSize.
X
- area.PlotAreaPosition.X;
1960
rotationCenter.X = rectLabel.
X
+ size.Width / 2;
Common\ChartTypes\StackedColumnChart.cs (8)
490
areaPosition.X = (float)Math.Floor(areaPosition.
X
);
491
areaPosition.Width = right - areaPosition.
X
;
896
if(rectSize.
X
< area.PlotAreaPosition.X ||
1158
labelPosition.X = rectangle.
X
+ rectangle.Width / 2f;
1650
if(rectSize.Right <= area.PlotAreaPosition.X || rectSize.
X
>= area.PlotAreaPosition.Right)
1655
if(rectSize.
X
< area.PlotAreaPosition.X)
1657
rectSize.Width -= area.PlotAreaPosition.X - rectSize.
X
;
1874
labelPosition.X = rectangle.
X
+ rectangle.Width / 2f;
Common\ChartTypes\StockChart.cs (3)
834
new PointF(rect.
X
, rect.Y),
1634
points[0] = new Point3D(rect.
X
, rect.Y, zPosition + depth/2f);
1664
new PointF(rect.
X
, rect.Y),
Common\General\Axis.cs (6)
1962
new PointF(transformedTitlePosition.
X
, transformedTitlePosition.Y),
2008
center.X = titlePosition.
X
+ titlePosition.Width / 2F;
2080
PointF endPoint = new PointF(rect.
X
+ rect.Width / 2f, rect.Y);
3628
maxLabelSize = plotArea.
X
- ChartArea.Position.X;
5303
rect.Width = (float)Math.Max(fromPosition, toPosition) - rect.
X
;
5551
labelPosition.X = labelPosition.
X
+ labelPosition.Width / 2f - width / 2f;
Common\General\AxisScale.cs (2)
1832
paintAreaPositionRight = paintAreaPosition.
X
+ paintAreaPosition.Width;
1895
position = paintAreaPosition.
X
+ position;
Common\General\AxisScaleSegments.cs (9)
554
float startX = breakLinePosition.
X
;
578
float x = (top) ? breakLinePosition.
X
: breakLinePosition.Right;
605
float startX = breakLinePosition.
X
;
630
float x = (top) ? breakLinePosition.
X
: breakLinePosition.Right;
658
path.AddLine(breakLinePosition.
X
, breakLinePosition.Y, breakLinePosition.Right, breakLinePosition.Y);
662
path.AddLine(breakLinePosition.
X
, breakLinePosition.Bottom, breakLinePosition.Right, breakLinePosition.Bottom);
669
path.AddLine(breakLinePosition.
X
, breakLinePosition.Y, breakLinePosition.
X
, breakLinePosition.Bottom);
718
breakPosition.Width = (float)Math.Abs(breakPosition.
X
- breakPosition.Width);
Common\General\Chart.cs (10)
2200
areaPosition.X = chartAreasRectangle.
X
+ column * (chartAreasRectangle.Width / areaColumns) + elementSpacing;
2210
area.Position.SetPositionNoAuto(areaPosition.
X
, areaPosition.Y, areaPosition.Width, areaPosition.Height);
3109
if(area.PlotAreaPosition.X > areaPlotPosition.
X
)
3111
areaPlotPosition.X += area.PlotAreaPosition.X - areaPlotPosition.
X
;
3112
areaPlotPosition.Width -= area.PlotAreaPosition.X - areaPlotPosition.
X
;
3148
rect.X = areaPlotPosition.
X
;
3158
area.PlotAreaPosition.SetPositionNoAuto(rect.
X
, rect.Y, rect.Width, rect.Height);
3161
rect.X = (rect.
X
- area.Position.X) / area.Position.Width * 100f;
3165
area.InnerPlotPosition.SetPositionNoAuto(rect.
X
, rect.Y, rect.Width, rect.Height);
3223
area.Position.SetPositionNoAuto(areaPosition.
X
, areaPosition.Y, areaPosition.Width, areaPosition.Height);
Common\General\ChartArea.cs (14)
1267
this.Position.SetPositionNoAuto(this.originalAreaPosition.
X
, this.originalAreaPosition.Y, this.originalAreaPosition.Width, this.originalAreaPosition.Height);
1274
this.InnerPlotPosition.SetPositionNoAuto(this.originalInnerPlotPosition.
X
, this.originalInnerPlotPosition.Y, this.originalInnerPlotPosition.Width, this.originalInnerPlotPosition.Height);
1632
axisPosition = plottingRect.
X
;
1715
rectLabelSideSpacing.X = (float)Math.Max(offset, rectLabelSideSpacing.
X
);
1774
if (rectLabelSideSpacing.
X
> 0 && rectLabelSideSpacing.
X
> plottingRect.
X
- Position.X)
1776
float delta = (plottingRect.
X
- Position.X) - rectLabelSideSpacing.
X
;
1825
this.circularCenter = new PointF(plottingRect.
X
+ plottingRect.Width/2f, plottingRect.Y + plottingRect.Height/2f);
1844
(float)Math.Round((plottingRect.
X
- Position.X) / (Position.Width / 100F), 5),
2158
currentAxis.paintAreaPositionRight = currentAxis.paintAreaPosition.
X
+ currentAxis.paintAreaPosition.Width;
2665
SizeF areaDiff = new SizeF(plotAreaRectAbs.
X
- areaRectAbs.
X
, plotAreaRectAbs.Y - areaRectAbs.Y);
Common\General\ChartArea3D.cs (12)
1313
points[0] = new Point3D( plottingRect.
X
, plottingRect.Y, zPosition );
1314
points[1] = new Point3D( plottingRect.
X
, plottingRect.Bottom, zPosition );
1319
points[2] = new Point3D( plottingRect.
X
, plottingRect.Bottom, zPosition );
1325
points[4] = new Point3D( plottingRect.
X
, plottingRect.Y, zPosition );
1326
points[5] = new Point3D( plottingRect.
X
, plottingRect.Bottom, zPosition );
1331
points[6] = new Point3D( plottingRect.
X
, plottingRect.Y, zPosition );
1339
points[0] = new Point3D( plottingRect.
X
, plottingRect.Bottom, zPosition );
1345
points[2] = new Point3D( plottingRect.
X
, plottingRect.Y, zPosition );
1346
points[3] = new Point3D( plottingRect.
X
, plottingRect.Bottom, zPosition );
1351
points[4] = new Point3D( plottingRect.
X
, plottingRect.Y, zPosition );
1357
points[6] = new Point3D( plottingRect.
X
, plottingRect.Y, zPosition );
1358
points[7] = new Point3D( plottingRect.
X
, plottingRect.Bottom, zPosition );
Common\General\ChartGraphics.cs (116)
486
RectangleF tempRect = new RectangleF(rectangle.
X
,rectangle.Y,rectangle.Width,rectangle.Height);
626
tempPoints[0] = new PointF(rect.
X
+ rect.Width/2f, (outside == true) ? rect.Y : rect.Y + rect.Height/4f);
628
matrix.RotateAt(pointIndex*(360f/(numberOfCorners*2f)), new PointF(rect.
X
+ rect.Width/2f, rect.Y + rect.Height/2f));
748
new Rectangle((int)rect.
X
+ shadowSize, (int)rect.Y + shadowSize, (int)rect.Width, (int)rect.Height),
756
new Rectangle((int)rect.
X
, (int)rect.Y, (int)rect.Width, (int)rect.Height),
847
path.AddEllipse(rect.
X
+ shadowSize - 1, rect.Y + shadowSize - 1, rect.Width + 2, rect.Height + 2);
891
this.DrawRectangle(new Pen(markerBorderColor, markerBorderSize), (int)Math.Round(rect.
X
, 0), (int)Math.Round(rect.Y, 0), (int)Math.Round(rect.Width, 0), (int)Math.Round(rect.Height, 0));
1006
points[0].X = rect.
X
;
1008
points[1].X = rect.
X
+ rect.Width / 2F;
1012
points[3].X = rect.
X
+ rect.Width / 2F;
1061
points[0].X = rect.
X
;
1063
points[1].X = rect.
X
+ rect.Width / 2F;
1500
rotationPoint = new PointF(backPositionAbs.
X
+ backPositionAbs.Width/2f, backPositionAbs.Y + backPositionAbs.Height/2f);
1541
backPositionAbs.
X
,
1856
rotationPoint.X = absPosition.
X
+ absPosition.Width / 2F;
1861
rotationPoint.X = absPosition.
X
+ absPosition.Width / 2F;
1872
rotationPoint.X = absPosition.
X
+ absPosition.Width / 2F;
1877
newRect.X = absPosition.
X
+ absPosition.Width / 2F;
1928
rotationPoint.X = absPosition.
X
+ absPosition.Width / 2F;
1994
labelRect.X = absPosition.
X
;
1998
labelRect.X = absPosition.
X
+ absPosition.Width / 2F - labelSize.Width / 2F;
2047
boundaryRect.Width += boundaryRect.
X
;
2052
boundaryRect.Width = this._common.Width - boundaryRect.
X
;
2078
absPosition.X = labelRect.
X
+ sizeChange;
2086
absPosition.X = labelRect.
X
;
2093
absPosition.X = labelRect.
X
;
2104
absPosition.X = labelRect.
X
;
2290
absPosition.
X
+ (absPosition.Width - imageAbsSize.Width - labelSize.Width) / 2,
2310
imageRect.X = absPosition.
X
+ (absPosition.Width - imageAbsSize.Width - labelSize.Width) / 2;
2318
imageRect.X = absPosition.
X
;
2398
PointF centerNotRound = new PointF(absPosition.
X
+ absPosition.Width/2F, absPosition.Y + absPosition.Height/2F);
2553
Point center = Point.Round(new PointF(absPosition.
X
+ absPosition.Width/2F, absPosition.Y + absPosition.Height/2F));
2781
rotationCenter.X = rect.
X
+ size.Width / 2;
2874
gradientRect.Width = rect.Right - gradientRect.
X
;
3045
path.AddLine(gradientRect.
X
+ gradientRect.Width/2f, gradientRect.Y + size, gradientRect.
X
+ gradientRect.Width/2f, gradientRect.Bottom - size);
3046
path.AddLine(gradientRect.
X
+ gradientRect.Width/2f, gradientRect.Bottom - size, gradientRect.Right, gradientRect.Bottom);
3051
path.AddLine(gradientRect.
X
+ size, gradientRect.Y + gradientRect.Height/2f, gradientRect.Right - size, gradientRect.Y + gradientRect.Height/2f);
3069
path.AddLine(gradientRect.
X
, gradientRect.Y, gradientRect.
X
+ gradientRect.Width/2f, gradientRect.Y + size);
3070
path.AddLine(gradientRect.
X
+ gradientRect.Width/2f, gradientRect.Y + size, gradientRect.Right, gradientRect.Y);
3092
rect.
X
+ rect.Width/2f,
3094
rect.
X
+ rect.Width/2f,
3101
rect.
X
+ size,
3103
rect.
X
+ size,
3116
rect.
X
+ rect.Width/2f,
3118
rect.
X
+ rect.Width/2f,
3125
rect.
X
+ size,
3127
rect.
X
+ size,
3139
path.AddLine(gradientRect.
X
, gradientRect.Bottom, gradientRect.
X
+ gradientRect.Width/2f, gradientRect.Bottom - size);
3140
path.AddLine(gradientRect.
X
+ gradientRect.Width/2f, gradientRect.Bottom - size, gradientRect.Right, gradientRect.Bottom);
3144
path.AddLine(gradientRect.
X
, gradientRect.Y, gradientRect.
X
+ size, gradientRect.Y + gradientRect.Height / 2f);
3145
path.AddLine(gradientRect.
X
+ size, gradientRect.Y + gradientRect.Height / 2f, gradientRect.
X
, gradientRect.Bottom);
3448
fillRect = new RectangleF( rect.
X
, rect.Y, rect.Width, rect.Height);
3456
fillRect = new RectangleF( rect.
X
, rect.Y, rect.Width, rect.Height);
3462
rect.
X
+ borderWidth,
3534
imageRect.X = fillRect.
X
;
3563
imageRect.X = fillRect.
X
+ (fillRect.Width - imageRect.Width)/2;
3595
new Rectangle((int)Math.Round(imageRect.
X
),(int)Math.Round(imageRect.Y), (int)Math.Round(imageRect.Width), (int)Math.Round(imageRect.Height)),
3669
this.DrawRectangle( _pen, rect.
X
, rect.Y, rect.Width, rect.Height );
3759
offset.X = absolute.
X
+ shadowOffset;
3781
offset.X = absolute.
X
+ shadowOffset - 1;
3803
path.AddLine(offset.
X
+radiusX, offset.Y, offset.Right-radiusX, offset.Y);
3807
path.AddLine(offset.Right-radiusX, offset.Bottom, offset.
X
+ radiusX, offset.Bottom);
3808
path.AddArc(offset.
X
, offset.Bottom-2f*radiusY, 2f*radiusX, 2f*radiusY, 90, 90);
3809
path.AddLine(offset.
X
, offset.Bottom-radiusY, offset.
X
, offset.Y+radiusY);
3810
path.AddArc(offset.
X
, offset.Y, 2f*radiusX, 2f*radiusY, 180, 90);
3814
path.AddLine(offset.
X
+radius, offset.Y, offset.Right-radius, offset.Y);
3818
path.AddLine(offset.Right-radius, offset.Bottom, offset.
X
+ radius, offset.Bottom);
3819
path.AddArc(offset.
X
, offset.Bottom-2f*radius, 2f*radius, 2f*radius, 90, 90);
3820
path.AddLine(offset.
X
, offset.Bottom-radius, offset.
X
, offset.Y+radius);
3821
path.AddArc(offset.
X
, offset.Y, 2f*radius, 2f*radius, 180, 90);
3830
shadowBrush.CenterPoint = new PointF(offset.
X
+ offset.Width/2f, offset.Y + offset.Height/2f);
3861
PointF firstPoint = new PointF(position.
X
+ position.Width/2f, position.Y);
3862
PointF centerPoint = new PointF(position.
X
+ position.Width/2f, position.Y + position.Height/2f);
3934
PointF firstPoint = new PointF(position.
X
+ position.Width/2f, position.Y);
3935
PointF centerPoint = new PointF(position.
X
+ position.Width/2f, position.Y + position.Height/2f);
4193
fillRect = new RectangleF( rect.
X
+ borderWidth, rect.Y + borderWidth, rect.Width - borderWidth * 2, rect.Height - borderWidth * 2 );
4215
imageRect.X = fillRect.
X
;
4244
imageRect.X = fillRect.
X
+ (fillRect.Width - imageRect.Width)/2;
4266
this.FillRectangle( brush, rect.
X
, rect.Y, rect.Width + 1, rect.Height + 1);
4270
new Rectangle((int)Math.Round(imageRect.
X
),(int)Math.Round(imageRect.Y), (int)Math.Round(imageRect.Width), (int)Math.Round(imageRect.Height)),
4281
this.FillRectangle( backBrush, rect.
X
, rect.Y, rect.Width + 1, rect.Height + 1 );
4283
this.FillRectangle( brush, rect.
X
, rect.Y, rect.Width + 1, rect.Height + 1 );
4290
this.DrawRectangle( _pen, rect.
X
, rect.Y, rect.Width + 1, rect.Height + 1 );
4292
this.DrawRectangle( _pen, rect.
X
, rect.Y, rect.Width, rect.Height );
4511
imageRect.X = fillRect.
X
;
4540
imageRect.X = fillRect.
X
+ (fillRect.Width - imageRect.Width)/2;
4568
new Rectangle((int)Math.Round(imageRect.
X
),(int)Math.Round(imageRect.Y), (int)Math.Round(imageRect.Width), (int)Math.Round(imageRect.Height)),
4654
relative.X = rectangle.
X
* 100F / ((float)(_width - 1));
4745
absolute.X = rectangle.
X
* (_width - 1) / 100F;
4791
path.AddLine(rect.
X
+cornerRadius[0], rect.Y, rect.Right-cornerRadius[1], rect.Y);
4795
path.AddLine(rect.Right-cornerRadius[4], rect.Bottom, rect.
X
+ cornerRadius[5], rect.Bottom);
4796
path.AddArc(rect.
X
, rect.Bottom-2f*cornerRadius[6], 2f*cornerRadius[5], 2f*cornerRadius[6], 90, 90);
4797
path.AddLine(rect.
X
, rect.Bottom-cornerRadius[6], rect.
X
, rect.Y+cornerRadius[7]);
4798
path.AddArc(rect.
X
, rect.Y, 2f*cornerRadius[0], 2f*cornerRadius[7], 180, 90);
4824
shadowBrush.CenterPoint = new PointF(rect.
X
+ rect.Width/2f, rect.Y + rect.Height/2f);
5034
path.AddPie(absRect.
X
, absRect.Y, absRect.Width, absRect.Height, startAngle, sweepAngle);
5065
path.AddArc(absRect.
X
+ absRect.Width * doughnutRadius / 200 - 1, absRect.Y + absRect.Height * doughnutRadius / 200 - 1, absRect.Width - absRect.Width * doughnutRadius / 100 + 2, absRect.Height - absRect.Height * doughnutRadius / 100 + 2, startAngle, sweepAngle);
5066
path.AddArc(absRect.
X
, absRect.Y, absRect.Width, absRect.Height, startAngle + sweepAngle, -sweepAngle);
5096
this.FillPie( fillBrush, absRect.
X
, absRect.Y, absRect.Width, absRect.Height, startAngle, sweepAngle );
5108
this.DrawPie( borderPen, absRect.
X
, absRect.Y, absRect.Width, absRect.Height, startAngle, sweepAngle );
5155
gradientPath.
X
+ position.Width * doughnutRadius /200 - 1 - shadowSize,
5161
path.AddArc( gradientPath.
X
, gradientPath.Y, gradientPath.Width, gradientPath.Height, startAngle + sweepAngle, -sweepAngle );
5207
path.AddArc( position.
X
+ shadowSize, position.Y + shadowSize, position.Width - shadowSize * 2f, position.Height - shadowSize * 2f, startAngle, sweepAngle );
5208
path.AddArc( position.
X
, position.Y, position.Width, position.Height, startAngle + sweepAngle, -sweepAngle );
5244
path.AddArc( innerPosition.
X
+ shadowSize, innerPosition.Y + shadowSize, innerPosition.Width - 2f * shadowSize, innerPosition.Height - 2f * shadowSize, startAngle, sweepAngle );
5245
path.AddArc( innerPosition.
X
, innerPosition.Y, innerPosition.Width, innerPosition.Height, startAngle + sweepAngle, -sweepAngle );
5284
path.AddEllipse( absRect.
X
, absRect.Y, absRect.Width, absRect.Height );
5303
this.FillPie( brush, absRect.
X
, absRect.Y, absRect.Width, absRect.Height, startAngle, sweepAngle );
Common\General\ChartGraphics3D.cs (26)
744
path.AddArc(pieBottomRectangle.
X
, pieBottomRectangle.Y, pieBottomRectangle.Width, pieBottomRectangle.Height, startAngle, sweepAngle);
757
path.AddArc(pieTopRectangle.
X
, pieTopRectangle.Y, pieTopRectangle.Width, pieTopRectangle.Height, startAngle + sweepAngle, -sweepAngle);
865
path.AddArc(pieRectangle.
X
, pieRectangle.Y, pieRectangle.Width, pieRectangle.Height, startAngle, sweepAngle);
975
pieDoughnutRectangle.X = pieRectangle.
X
+ pieRectangle.Width * (1F - doughnutRadius) / 2F;
997
path.AddArc(pieRectangle.
X
, pieRectangle.Y, pieRectangle.Width, pieRectangle.Height, startAngle, sweepAngle);
1006
path.AddArc(pieDoughnutRectangle.
X
, pieDoughnutRectangle.Y, pieDoughnutRectangle.Width, pieDoughnutRectangle.Height, startAngle + sweepAngle, -sweepAngle);
2866
cubePoints[0] = new Point3D( position.
X
, position.Y, positionZ + depth );
2867
cubePoints[1] = new Point3D( position.
X
, position.Bottom, positionZ + depth );
2872
cubePoints[4] = new Point3D( position.
X
, position.Y, positionZ );
2873
cubePoints[5] = new Point3D( position.
X
, position.Bottom, positionZ );
3109
gradientPoints[4] = new Point3D( position.
X
+ position.Width / 2f, position.Top + sizeRel.Height, positionZ + depth );
3110
gradientPoints[5] = new Point3D( position.
X
+ position.Width / 2f, position.Bottom - sizeRel.Height, positionZ + depth );
3114
gradientPoints[4] = new Point3D( position.
X
+ sizeRel.Width, position.Top + position.Height / 2f, positionZ + depth );
3564
path.AddEllipse(rect.
X
+ shadowSize - 1, rect.Y + shadowSize - 1, rect.Width + 2, rect.Height + 2);
3734
cubePoints[0] = new Point3D( position.
X
, position.Y, positionZ + depth );
3735
cubePoints[1] = new Point3D( position.
X
, position.Bottom, positionZ + depth );
3740
cubePoints[4] = new Point3D( position.
X
, position.Y, positionZ );
3741
cubePoints[5] = new Point3D( position.
X
, position.Bottom, positionZ );
3979
cubePoints[0] = new Point3D( position.
X
, position.Y, positionZ + depth / 2f );
3980
cubePoints[1] = new Point3D( position.
X
, position.Bottom, positionZ + depth / 2f );
3984
float middleXValue = position.
X
+ position.Width / 2f;
3993
cubePoints[1] = new Point3D( position.
X
, position.Y, positionZ + depth / 2f );
3994
cubePoints[2] = new Point3D( position.
X
, position.Bottom, positionZ + depth / 2f );
3999
cubePoints[5] = new Point3D( position.
X
, middleYValue, positionZ + depth );
4000
cubePoints[6] = new Point3D( position.
X
, middleYValue, positionZ );
4175
boundsRectMiddlePoint.X = boundsRect.
X
+ boundsRect.Width/2f;
Common\General\GridTickMarks.cs (2)
1472
first.X = plotArea.
X
;
1570
first.X = plotArea.
X
;
Common\General\ImageMap.cs (1)
273
coord[0] = rect.
X
;
Common\General\Label.cs (22)
1281
new PointF(labelRect.
X
, labelRect.Bottom)
1747
rect.Width = (float)Math.Max(fromPosition, toPosition) - rect.
X
;
1837
rectLabels.Width = (float)Math.Max(rectLabels.Width, rectLabels.
X
- labelsAxis.PlotAreaPosition.X);
1861
rectLabels.Width = (float)Math.Max(rectLabels.Width, labelsAxis.PlotAreaPosition.Right - rectLabels.
X
);
2261
rect.Width = (float)Math.Max(fromPosition, toPosition) - rect.
X
;
2308
rect.Width = rectPoints[1].X - rect.
X
;
2312
rectPoints[0] = new Point3D(rect.
X
, rect.Y, labelsZPosition);
2313
rectPoints[1] = new Point3D(rect.
X
, rect.Y + rect.Height / 2f, labelsZPosition);
2314
rectPoints[2] = new Point3D(rect.
X
, rect.Bottom, labelsZPosition);
2324
rectPoints[0] = new Point3D(rect.
X
, rect.Bottom, labelsZPosition);
2325
rectPoints[1] = new Point3D(rect.
X
+ rect.Width / 2f, rect.Bottom, labelsZPosition);
2332
rect.Width = rectPoints[2].X - rect.
X
;
2341
rect.Width = rightLabelsRect.Right - rect.
X
;
2348
rect.X = rightLabelsRect.
X
;
2349
rect.Width = rectPoints[1].X - rightLabelsRect.
X
;
2355
rectPoints[0] = new Point3D(rect.
X
, rect.Y, labelsZPosition);
2356
rectPoints[1] = new Point3D(rect.
X
+ rect.Width / 2f, rect.Y, labelsZPosition);
2363
rect.Width = rectPoints[2].X - rect.
X
;
2373
rect.Width = rightLabelsRect.Right - rect.
X
;
2386
rect.X = rightLabelsRect.
X
;
2387
rect.Width = rectPoints[1].X - rightLabelsRect.
X
;
2465
labelPositionPoints[0] = new Point3D(initialRect.
X
, initialRect.Bottom - _axis.totlaGroupingLabelsSize - _axis.totlaGroupingLabelsSizeAdjustment, labelsZPosition);
Common\General\Legend.cs (7)
1125
legendPosition.X = chartAreasRectangle.
X
+ elementSpacing;
1133
legendPosition.X = chartAreasRectangle.
X
+ (chartAreasRectangle.Width - legendSize.Width) / 2F;
1145
legendPosition.X = chartAreasRectangle.
X
+ elementSpacing;
1153
legendPosition.X = chartAreasRectangle.
X
+ (chartAreasRectangle.Width - legendSize.Width) / 2F;
1161
legendPosition.X = chartAreasRectangle.
X
+ elementSpacing;
1199
this.Position.SetPositionNoAuto(legendPosition.
X
, legendPosition.Y, legendPosition.Width, legendPosition.Height);
4983
legend.Position.SetPositionNoAuto(legendPosition.
X
, legendPosition.Y, legendPosition.Width, legendPosition.Height);
Common\General\LegendColumns.cs (2)
1947
this.Chart.CallOnPrePaint(new ChartPaintEventArgs(this, chartGraph, this.Common, new ElementPosition(rectRelative.
X
, rectRelative.Y, rectRelative.Width, rectRelative.Height)));
1966
this.Chart.CallOnPostPaint(new ChartPaintEventArgs(this, chartGraph, this.Common, new ElementPosition(rectRelative.
X
, rectRelative.Y, rectRelative.Width, rectRelative.Height)));
Common\General\Matrix3D.cs (1)
245
_translateX = innerPlotRectangle.
X
+innerPlotRectangle.Width/2;
Common\General\SmartLabels.cs (16)
939
graph.DrawRectangle(calloutPen, labelRectAbs.
X
, labelRectAbs.Y, labelRectAbs.Width, labelRectAbs.Height);
947
graph.DrawLine(calloutPen, labelRectAbs.
X
, labelRectAbs.Top, labelRectAbs.
X
, labelRectAbs.Bottom);
957
graph.DrawLine(calloutPen, labelRectAbs.
X
, labelRectAbs.Top, labelRectAbs.Right, labelRectAbs.Top);
962
graph.DrawLine(calloutPen, labelRectAbs.
X
, labelRectAbs.Bottom, labelRectAbs.Right, labelRectAbs.Bottom);
1050
if(labelPosition.
X
< 0f || labelPosition.Y < 0f ||
1077
labelPosition.
X
+ labelPosition.Width/2f,
1096
!areaPath.IsVisible(new PointF(labelPosition.
X
, labelPosition.Bottom)) )
1115
labelPosition.
X
+ labelPosition.Width/2f,
1174
labelPosition.
X
+ labelPosition.Width / 2f,
1224
if(point1.X >= rect.
X
&& point1.X <= rect.Right)
1244
if(point1.X < rect.
X
&& point2.X < rect.
X
)
1259
if(point1.X < rect.
X
&& point2.X < rect.
X
)
1294
intersection = CalloutAnnotation.GetIntersectionX(point1, point2, rect.
X
);
Common\General\StripLine.cs (5)
367
rect.X = plotAreaPosition.
X
;
380
rect.Width = (float)Math.Max(pos1, pos2) - rect.
X
;
442
point1.X = plotAreaPosition.
X
;
626
rect.Width = point2.X - rect.
X
;
725
rotationCenter.X = rect.
X
+ size.Width / 2 + sizeBorder.Width;
Common\General\Title.cs (13)
1414
titlePosition.X = titlePosition.
X
- titlePosition.Width;
1420
titlePosition.X = titlePosition.
X
- titlePosition.Width/2f;
1486
titlePosition.
X
,
1515
exactTitleRect.X = titlePosition.
X
+
1649
center.X = absPosition.
X
+ absPosition.Width / 2F;
1847
frameTitlePosition.
X
+ elementSpacing,
1906
titlePosition.X = chartAreasRectangle.
X
+ elementSpacing;
1907
titlePosition.Width = chartAreasRectangle.Right - titlePosition.
X
- elementSpacing;
1920
titlePosition.X = chartAreasRectangle.
X
+ elementSpacing;
1921
titlePosition.Width = chartAreasRectangle.Right - titlePosition.
X
- elementSpacing;
1932
titlePosition.X = chartAreasRectangle.
X
+ elementSpacing;
1972
this.Position.SetPositionNoAuto(titlePosition.
X
, titlePosition.Y, titlePosition.Width, titlePosition.Height);
2137
title.Position.SetPositionNoAuto(titlePosition.
X
, titlePosition.Y, titlePosition.Width, titlePosition.Height);
Common\Utilities\ElementPosition.cs (1)
216
this._x = rect.
X
;
System.Windows.Forms (2)
winforms\Managed\System\WinForms\Layout\TableLayout.cs (2)
1163
float startX = isContainerRTL ? displayRectF.Right : displayRectF.
X
;
1180
startX = isContainerRTL ? displayRectF.Right : displayRectF.
X
;
System.Windows.Forms.DataVisualization (511)
Common\Annotation\AnnotationBase.cs (9)
2064
rect.
X
- markerSizeRel.Width/2f,
2114
handlePosition = new PointF(rect.
X
+ rect.Width / 2f, rect.Y);
2126
handlePosition = new PointF(rect.
X
+ rect.Width / 2f, rect.Bottom);
2129
handlePosition = new PointF(rect.
X
, rect.Bottom);
2132
handlePosition = new PointF(rect.
X
, rect.Y + rect.Height / 2f);
2393
if(!double.IsNaN(currentPositionRel.
X
) && !double.IsNaN(currentPositionRel.
X
))
2655
relativeX = contentPosition.
X
* groupScaleX;
2906
double newX = position.
X
;
Common\Annotation\CalloutAnnotation.cs (62)
670
if( float.IsNaN(rectanglePosition.
X
) ||
942
if(anchorPoint.X < rectanglePosition.
X
&&
948
points[3] = new PointF(rectanglePositionAbs.
X
+ size, rectanglePositionAbs.Bottom);
950
points[5] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom - size);
951
points[6] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom - size);
953
else if(anchorPoint.X >= rectanglePosition.
X
&&
960
points[3] = new PointF(rectanglePositionAbs.
X
+ rectanglePositionAbs.Width / 2f + size, rectanglePositionAbs.Bottom);
962
points[5] = new PointF(rectanglePositionAbs.
X
+ rectanglePositionAbs.Width / 2f - size, rectanglePositionAbs.Bottom);
963
points[6] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
973
points[5] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
974
points[6] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
986
points[6] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
996
points[5] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
997
points[6] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
999
else if(anchorPoint.X >= rectanglePosition.
X
&&
1004
points[1] = new PointF(rectanglePositionAbs.
X
+ rectanglePositionAbs.Width/2f - size, rectanglePositionAbs.Y);
1006
points[3] = new PointF(rectanglePositionAbs.
X
+ rectanglePositionAbs.Width/2f + size, rectanglePositionAbs.Y);
1009
points[6] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
1011
else if(anchorPoint.X < rectanglePosition.
X
&&
1015
points[1] = new PointF(rectanglePositionAbs.
X
+ size, rectanglePositionAbs.Y);
1018
points[4] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
1019
points[5] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Y + size);
1020
points[6] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Y + size);
1022
else if(anchorPoint.X < rectanglePosition.
X
&&
1029
points[3] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
1030
points[4] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Y + rectanglePositionAbs.Height/2f + size );
1032
points[6] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Y + rectanglePositionAbs.Height/2f - size );
1117
rectanglePosition.
X
+ rectanglePosition.Width / 2f,
1137
if(point.X < rectanglePositionAbs.
X
)
1139
point = GetIntersectionX(cloudCenterAbs, anchorPointAbs, rectanglePositionAbs.
X
);
1149
if(point.X < rectanglePositionAbs.
X
)
1151
point = GetIntersectionX(cloudCenterAbs, anchorPointAbs, rectanglePositionAbs.
X
);
1160
if(anchorPoint.X < rectanglePosition.
X
)
1162
point = GetIntersectionX(cloudCenterAbs, anchorPointAbs, rectanglePositionAbs.
X
);
1330
points1[0] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Y);
1334
if(anchorPoint.X < rectanglePosition.
X
)
1337
points2[0] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
1338
points2[1] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Y);
1354
points1[0] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
1358
if(anchorPoint.X < rectanglePosition.
X
)
1361
points2[0] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
1362
points2[1] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Y);
1377
if(anchorPoint.X < rectanglePosition.
X
)
1380
points2[0] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Bottom);
1381
points2[1] = new PointF(rectanglePositionAbs.
X
, rectanglePositionAbs.Y);
1482
PointF textLinePoint1 = new PointF(rectanglePosition.
X
, rectanglePosition.Bottom);
1492
if(anchorPoint.X < rectanglePosition.
X
)
1494
lineSecondPoint.X = rectanglePosition.
X
;
1502
lineSecondPoint.X = rectanglePosition.
X
+ rectanglePosition.Width / 2f;
1598
if(anchorPoint.X < rectanglePosition.
X
)
1600
textLinePoint1.X = rectanglePosition.
X
;
1601
textLinePoint2.X = rectanglePosition.
X
;
1673
matrix.Translate(-_cloudBounds.
X
, -_cloudBounds.Y);
1676
matrix.Translate(position.
X
, position.Y);
1784
matrix.Translate(-_cloudBounds.
X
, -_cloudBounds.Y);
1787
matrix.Translate(position.
X
, position.Y);
1878
PathAddLineAsSegments(path, rect.
X
+cornerRadius, rect.Y, rect.Right-cornerRadius, rect.Y, segments);
1886
PathAddLineAsSegments(path, rect.Right-cornerRadius, rect.Bottom, rect.
X
+ cornerRadius, rect.Bottom, segments);
1888
path.AddArc(rect.
X
, rect.Bottom-2f*cornerRadius, 2f*cornerRadius, 2f*cornerRadius, 90, 90);
1890
PathAddLineAsSegments(path, rect.
X
, rect.Bottom-cornerRadius, rect.
X
, rect.Y+cornerRadius, segments);
1892
path.AddArc(rect.
X
, rect.Y, 2f*cornerRadius, 2f*cornerRadius, 180, 90);
Common\Annotation\GroupAnnotation.cs (1)
940
float.IsNaN(selectionRect.
X
) ||
Common\Annotation\ImageAnnotation.cs (1)
544
if( float.IsNaN(rectanglePosition.
X
) ||
Common\Annotation\PolygonAnnotation.cs (2)
585
if( float.IsNaN(rectanglePosition.
X
) ||
605
pathPoints[pointIndex].X = rectanglePositionAbs.
X
+ pathPoints[pointIndex].X * groupScaleX;
Common\Annotation\RectangleAnnotation.cs (3)
408
if( float.IsNaN(rectanglePosition.
X
) ||
646
if( float.IsNaN(rectanglePosition.
X
) ||
710
rectangle.
X
+ 1,
Common\Annotation\TextAnnotation.cs (7)
439
float.IsNaN(textPosition.
X
) ||
536
textPositionWithSpacing.Width -= (textSpacing.Width + textSpacing.
X
) * spacingScaleX;
537
textPositionWithSpacing.X += textSpacing.
X
* spacingScaleX;
567
textPositionWithSpacing.X = textPosition.
X
;
569
textPositionWithSpacing.Width -= textSpacing.Width/2f + textSpacing.
X
/ 2f;
570
textPositionWithSpacing.X += textSpacing.
X
/ 2f;
980
contentSize.Width += (textSpacing.
X
+ textSpacing.Width) * spacingScaleX;
Common\Borders3D\EmbedBorder.cs (8)
999
screwRect.X = shadowRect.
X
+ offset;
1015
screwRect.X = shadowRect.
X
+ offset;
1030
shadowRect.
X
- radius,
1060
shadowRect.
X
+ radius*.5f,
1093
graph.DrawEllipse(screwPen, rect.
X
, rect.Y, rect.Width, rect.Height);
1094
graph.DrawLine(screwPen, rect.
X
+ 2 * resolution / 96.0f, rect.Y + rect.Height - 2 * resolution / 96.0f, rect.Right - 2 * resolution / 96.0f, rect.Y + 2 * resolution / 96.0f);
1096
graph.DrawEllipse(screwPen, rect.
X
+ 1 * resolution / 96.0f, rect.Y + 1 * resolution / 96.0f, rect.Width, rect.Height);
1097
graph.DrawLine(screwPen, rect.
X
+ 3 * resolution / 96.0f, rect.Y + rect.Height - 1 * resolution / 96.0f, rect.Right - 1 * resolution / 96.0f, rect.Y + 3 * resolution / 96.0f);
Common\Borders3D\EmbossBorder.cs (4)
129
if(areasRect.
X
+ areasRect.Width > 100f)
213
shadowRect.X = absolute.
X
+ radius / 3f;
221
shadowRect.X = absolute.
X
+ 3f * resolution / 96.0f;
249
shadowRect.
X
- radius,
Common\ChartTypes\BarChart.cs (15)
567
rectSize.Width = (float)barSize - rectSize.
X
;
572
rectSize.Width = (float)barStartPosition - rectSize.
X
;
582
point.positionRel = new PointF(( barStartPosition < barSize ) ? rectSize.Right : rectSize.
X
, (float)xPosition);
783
markerPosition.X = rectSize.
X
;
906
rectLabel.Width = rectSize.
X
- area.PlotAreaPosition.X;
914
rectLabel.Width = rectSize.
X
- area.PlotAreaPosition.X;
1036
rectLabel.
X
,
1049
labelBackPosition.X = rectLabel.
X
+ (rectLabel.Width - valueTextSize.Width) / 2f;
1476
rectSize.Width = (float)barSize - rectSize.
X
;
1485
rectSize.Width = (float)barStartPosition - rectSize.
X
;
1675
rectSize.Width = (float)barSize - rectSize.
X
;
1680
rectSize.Width = (float)barStartPosition - rectSize.
X
;
1766
markerPosition.X = rectSize.
X
;
1933
rectLabel.Width = rectSize.
X
- area.PlotAreaPosition.X;
2047
rotationCenter.X = rectLabel.
X
+ size.Width / 2;
Common\ChartTypes\ColumnChart.cs (7)
513
if(rectSize.
X
< area.PlotAreaPosition.X || rectSize.Right > area.PlotAreaPosition.Right)
836
if(rectSize.Right <= area.PlotAreaPosition.X || rectSize.
X
>= area.PlotAreaPosition.Right)
841
if(rectSize.
X
< area.PlotAreaPosition.X)
843
rectSize.Width -= area.PlotAreaPosition.X - rectSize.
X
;
1112
markerPosition.X = intersection.
X
+ intersection.Width / 2f;
1239
labelPosition.X = intersection.
X
+ intersection.Width / 2f;
1353
labelPosition.X = columnPosition.
X
+ columnPosition.Width / 2f;
Common\ChartTypes\FastPointChart.cs (6)
520
(int)Math.Round(markerBounds.
X
, 0),
583
points[0].X = markerBounds.
X
;
585
points[1].X = markerBounds.
X
+ markerBounds.Width/2F;
589
points[3].X = markerBounds.
X
+ markerBounds.Width/2F;
604
points[0].X = markerBounds.
X
;
606
points[1].X = markerBounds.
X
+ markerBounds.Width/2F;
Common\ChartTypes\FunnelChart.cs (39)
571
plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f,
585
plotAreaPositionAbs.
X
, location,
587
plotAreaPositionAbs.
X
, plotAreaPositionAbs.Y,
588
plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f - this._funnelNeckSize.Width / 2f,
594
plotAreaPositionAbs.
X
, location + height,
596
plotAreaPositionAbs.
X
, plotAreaPositionAbs.Y,
597
plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f - this._funnelNeckSize.Width / 2f,
601
startWidth = (float)( plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f -
603
endWidth = (float)( plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f -
608
plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f,
688
float xCenterPointAbs = plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f;
1002
float xCenterPointAbs = plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f;
1509
!float.IsNaN(labelInfo.Position.
X
) &&
1727
if( (plotAreaPositionAbs.
X
- position.
X
) > requiredSpacing.
X
)
1729
requiredSpacing.X = plotAreaPositionAbs.
X
- position.
X
;
1754
if(requiredSpacing.
X
> 1f ||
1784
float plotAreaCenterXAbs = plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f;
1872
labelInfo.CalloutPoint2.X = labelInfo.Position.
X
;
1876
labelInfo.Position.X = plotAreaPositionAbs.
X
-
1966
labelInfo.CalloutPoint2.X = labelInfo.Position.
X
;
1971
labelInfo.Position.X = plotAreaPositionAbs.
X
-
2190
plotAreaPosition.X += plotAreaSpacing.
X
;
2192
plotAreaPosition.Width -= plotAreaSpacing.
X
+ plotAreaSpacing.Width;
2932
plotAreaPositionAbs.
X
, location - height,
2934
plotAreaPositionAbs.
X
, plotAreaPositionAbs.Bottom,
2935
plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f, plotAreaPositionAbs.Y );
2936
if(startIntersection.X > (plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f) )
2938
startIntersection.X = plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f;
2944
plotAreaPositionAbs.
X
, location,
2946
plotAreaPositionAbs.
X
, plotAreaPositionAbs.Bottom,
2947
plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f, plotAreaPositionAbs.Y );
2948
if(endIntersection.X > (plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f))
2950
endIntersection.X = plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f;
2954
startWidth = (float)Math.Abs( plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f -
2956
endWidth = (float)Math.Abs( plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f -
2961
plotAreaPositionAbs.
X
+ plotAreaPositionAbs.Width / 2f,
Common\ChartTypes\PieChart.cs (56)
780
rectangle = new RectangleF( area.Position.ToRectangleF().
X
, area.Position.ToRectangleF().Y, area.Position.ToRectangleF().Width, area.Position.ToRectangleF().Height );
784
rectangle = new RectangleF( area.PlotAreaPosition.ToRectangleF().
X
, area.PlotAreaPosition.ToRectangleF().Y, area.PlotAreaPosition.ToRectangleF().Width, area.PlotAreaPosition.ToRectangleF().Height );
799
PointF middlePoint = new PointF( rectangle.
X
+ rectangle.Width / 2, rectangle.Y + rectangle.Height / 2 );
816
rect.X = (rect.
X
- area.Position.X) / area.Position.Width * 100f;
820
area.InnerPlotPosition.SetPositionNoAuto(rect.
X
, rect.Y, rect.Width, rect.Height);
898
RectangleF shadowRect = new RectangleF( rectangle.
X
, rectangle.Y, rectangle.Width, rectangle.Height );
1396
rect.X = labelRectOver.
X
;
1406
rect.
X
,
1418
labelBackPosition.X = rect.
X
+ (rect.Width - valueTextSize.Width) / 2f;
1818
doughnutRect.X = rectangle.
X
+ rectangle.Width * (1 - (100 - doughnutRadius) / 100) / 2;
1827
path.AddPie(rectangle.
X
, rectangle.Y, rectangle.Width, rectangle.Height, startAngle, sweepAngle);
1841
path.AddPie(doughnutRect.
X
, doughnutRect.Y, doughnutRect.Width, doughnutRect.Width, startAngle, sweepAngle);
1940
float splitPoint = area.
X
+ area.Width / 2f;
1947
if( rect.
X
< splitPoint )
1973
if( rect.
X
< splitPoint )
1994
if( rect.
X
< splitPoint )
2026
if( rect.
X
>= splitPoint )
2047
if( rect.
X
>= splitPoint )
2489
RectangleF plotingRectangle = new RectangleF( area.Position.ToRectangleF().
X
+ 1, area.Position.ToRectangleF().Y + 1, area.Position.ToRectangleF().Width-2, area.Position.ToRectangleF().Height-2 );
2550
rectangle = new RectangleF( plotingRectangle.
X
, plotingRectangle.Y, plotingRectangle.Width, plotingRectangle.Height );
2552
rectangle = new RectangleF( area.PlotAreaPosition.ToRectangleF().
X
, area.PlotAreaPosition.ToRectangleF().Y, area.PlotAreaPosition.ToRectangleF().Width, area.PlotAreaPosition.ToRectangleF().Height );
2562
PointF middlePoint = new PointF( rectangle.
X
+ rectangle.Width / 2, rectangle.Y + rectangle.Height / 2 );
2606
rect.X = (rect.
X
- area.Position.X) / area.Position.Width * 100f;
2610
area.InnerPlotPosition.SetPositionNoAuto(rect.
X
, rect.Y, rect.Width, rect.Height);
3080
rectangle.
X
+ (float)Math.Cos( 180 * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3086
rectangle.
X
+ (float)Math.Cos( 180 * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3092
rectangle.
X
+ (float)Math.Cos( 0 * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3098
rectangle.
X
+ (float)Math.Cos( 0 * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3104
rectangle.
X
+ (float)Math.Cos( startAngle * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3110
rectangle.
X
+ (float)Math.Cos( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3116
rectangle.
X
+ (float)Math.Cos( startAngle * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3122
rectangle.
X
+ (float)Math.Cos( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3128
rectangle.
X
+ rectangle.Width / 2F,
3134
rectangle.
X
+ rectangle.Width / 2F,
3140
rectangle.
X
+ (float)Math.Cos( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Width / 2F + rectangle.Width / 2F,
3157
rectangle.
X
+ (float)Math.Cos( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Width * sizeOut / 2F + rectangle.Width / 2F,
3165
rectangle.
X
+ (float)Math.Cos( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Width * ( 1 + doughnutRadius ) / 4F + rectangle.Width / 2F,
3172
rectangle.
X
+ (float)Math.Cos( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Width * 0.5F / 2F + rectangle.Width / 2F,
3179
points[(int)PiePoints.TopRectTopLeftPoint] = new Point3D(rectangle.
X
,rectangle.Y,pieWidth);
3185
points[(int)PiePoints.BottomRectTopLeftPoint] = new Point3D(rectangle.
X
,rectangle.Y,0);
3194
rectangle.
X
+ (float)Math.Cos( 180 * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F,
3200
rectangle.
X
+ (float)Math.Cos( 180 * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F,
3206
rectangle.
X
+ (float)Math.Cos( 0 * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F,
3212
rectangle.
X
+ (float)Math.Cos( 0 * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F,
3218
rectangle.
X
+ (float)Math.Cos( startAngle * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F,
3224
rectangle.
X
+ (float)Math.Cos( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F,
3230
rectangle.
X
+ (float)Math.Cos( startAngle * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F,
3236
rectangle.
X
+ (float)Math.Cos( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Width * doughnutRadius / 2F + rectangle.Width / 2F,
3243
points[(int)PiePoints.DoughnutTopRectTopLeftPoint] = new Point3D(rectangle.
X
,rectangle.Y,pieWidth);
3249
points[(int)PiePoints.DoughnutBottomRectTopLeftPoint] = new Point3D(rectangle.
X
,rectangle.Y,0);
5353
pieRectangle.X = pieRectangle.
X
+ ( oldWidth - pieRectangle.Width ) / 2F;
5466
labelPosition.Width = chartAreaPosition.Right - labelPosition.
X
;
5485
labelPosition.X = chartAreaPosition.
X
;
5486
labelPosition.Width = labelPoint.X - labelPosition.
X
;
5504
labelPosition.
X
,
5516
labelBackPosition.X = labelPosition.
X
+ (labelPosition.Width - valueTextSize.Width) / 2f;
Common\ChartTypes\PointAndFigureChart.cs (1)
818
position.X = rectSize.
X
;
Common\ChartTypes\StackedBarChart.cs (13)
484
areaPosition.X = (float)Math.Floor(areaPosition.
X
);
485
areaPosition.Width = right - areaPosition.
X
;
823
rectSize.Width = (float)height - rectSize.
X
;
828
rectSize.Width = (float)zero - rectSize.
X
;
873
rectSize.
X
< area.PlotAreaPosition.X ||
1078
labelPosition.X = rectangle.
X
+ rectangle.Width / 2f;
1128
labelPosition.X = rectangle.
X
+ sizeFont.Width / 2f;
1576
rectSize.Width = (float)height - rectSize.
X
;
1581
rectSize.Width = (float)zero - rectSize.
X
;
1737
rectSize.Width = (float)height - rectSize.
X
;
1742
rectSize.Width = (float)zero - rectSize.
X
;
1889
rectLabel.Width = rectSize.
X
- area.PlotAreaPosition.X;
1960
rotationCenter.X = rectLabel.
X
+ size.Width / 2;
Common\ChartTypes\StackedColumnChart.cs (8)
490
areaPosition.X = (float)Math.Floor(areaPosition.
X
);
491
areaPosition.Width = right - areaPosition.
X
;
896
if(rectSize.
X
< area.PlotAreaPosition.X ||
1158
labelPosition.X = rectangle.
X
+ rectangle.Width / 2f;
1650
if(rectSize.Right <= area.PlotAreaPosition.X || rectSize.
X
>= area.PlotAreaPosition.Right)
1655
if(rectSize.
X
< area.PlotAreaPosition.X)
1657
rectSize.Width -= area.PlotAreaPosition.X - rectSize.
X
;
1874
labelPosition.X = rectangle.
X
+ rectangle.Width / 2f;
Common\ChartTypes\StockChart.cs (3)
834
new PointF(rect.
X
, rect.Y),
1634
points[0] = new Point3D(rect.
X
, rect.Y, zPosition + depth/2f);
1664
new PointF(rect.
X
, rect.Y),
Common\General\Axis.cs (6)
1962
new PointF(transformedTitlePosition.
X
, transformedTitlePosition.Y),
2008
center.X = titlePosition.
X
+ titlePosition.Width / 2F;
2080
PointF endPoint = new PointF(rect.
X
+ rect.Width / 2f, rect.Y);
3628
maxLabelSize = plotArea.
X
- ChartArea.Position.X;
5303
rect.Width = (float)Math.Max(fromPosition, toPosition) - rect.
X
;
5551
labelPosition.X = labelPosition.
X
+ labelPosition.Width / 2f - width / 2f;
Common\General\AxisScale.cs (2)
1832
paintAreaPositionRight = paintAreaPosition.
X
+ paintAreaPosition.Width;
1895
position = paintAreaPosition.
X
+ position;
Common\General\AxisScaleSegments.cs (9)
554
float startX = breakLinePosition.
X
;
578
float x = (top) ? breakLinePosition.
X
: breakLinePosition.Right;
605
float startX = breakLinePosition.
X
;
630
float x = (top) ? breakLinePosition.
X
: breakLinePosition.Right;
658
path.AddLine(breakLinePosition.
X
, breakLinePosition.Y, breakLinePosition.Right, breakLinePosition.Y);
662
path.AddLine(breakLinePosition.
X
, breakLinePosition.Bottom, breakLinePosition.Right, breakLinePosition.Bottom);
669
path.AddLine(breakLinePosition.
X
, breakLinePosition.Y, breakLinePosition.
X
, breakLinePosition.Bottom);
718
breakPosition.Width = (float)Math.Abs(breakPosition.
X
- breakPosition.Width);
Common\General\Chart.cs (10)
2200
areaPosition.X = chartAreasRectangle.
X
+ column * (chartAreasRectangle.Width / areaColumns) + elementSpacing;
2210
area.Position.SetPositionNoAuto(areaPosition.
X
, areaPosition.Y, areaPosition.Width, areaPosition.Height);
3109
if(area.PlotAreaPosition.X > areaPlotPosition.
X
)
3111
areaPlotPosition.X += area.PlotAreaPosition.X - areaPlotPosition.
X
;
3112
areaPlotPosition.Width -= area.PlotAreaPosition.X - areaPlotPosition.
X
;
3148
rect.X = areaPlotPosition.
X
;
3158
area.PlotAreaPosition.SetPositionNoAuto(rect.
X
, rect.Y, rect.Width, rect.Height);
3161
rect.X = (rect.
X
- area.Position.X) / area.Position.Width * 100f;
3165
area.InnerPlotPosition.SetPositionNoAuto(rect.
X
, rect.Y, rect.Width, rect.Height);
3223
area.Position.SetPositionNoAuto(areaPosition.
X
, areaPosition.Y, areaPosition.Width, areaPosition.Height);
Common\General\ChartArea.cs (14)
1267
this.Position.SetPositionNoAuto(this.originalAreaPosition.
X
, this.originalAreaPosition.Y, this.originalAreaPosition.Width, this.originalAreaPosition.Height);
1274
this.InnerPlotPosition.SetPositionNoAuto(this.originalInnerPlotPosition.
X
, this.originalInnerPlotPosition.Y, this.originalInnerPlotPosition.Width, this.originalInnerPlotPosition.Height);
1632
axisPosition = plottingRect.
X
;
1715
rectLabelSideSpacing.X = (float)Math.Max(offset, rectLabelSideSpacing.
X
);
1774
if (rectLabelSideSpacing.
X
> 0 && rectLabelSideSpacing.
X
> plottingRect.
X
- Position.X)
1776
float delta = (plottingRect.
X
- Position.X) - rectLabelSideSpacing.
X
;
1825
this.circularCenter = new PointF(plottingRect.
X
+ plottingRect.Width/2f, plottingRect.Y + plottingRect.Height/2f);
1844
(float)Math.Round((plottingRect.
X
- Position.X) / (Position.Width / 100F), 5),
2158
currentAxis.paintAreaPositionRight = currentAxis.paintAreaPosition.
X
+ currentAxis.paintAreaPosition.Width;
2665
SizeF areaDiff = new SizeF(plotAreaRectAbs.
X
- areaRectAbs.
X
, plotAreaRectAbs.Y - areaRectAbs.Y);
Common\General\ChartArea3D.cs (12)
1313
points[0] = new Point3D( plottingRect.
X
, plottingRect.Y, zPosition );
1314
points[1] = new Point3D( plottingRect.
X
, plottingRect.Bottom, zPosition );
1319
points[2] = new Point3D( plottingRect.
X
, plottingRect.Bottom, zPosition );
1325
points[4] = new Point3D( plottingRect.
X
, plottingRect.Y, zPosition );
1326
points[5] = new Point3D( plottingRect.
X
, plottingRect.Bottom, zPosition );
1331
points[6] = new Point3D( plottingRect.
X
, plottingRect.Y, zPosition );
1339
points[0] = new Point3D( plottingRect.
X
, plottingRect.Bottom, zPosition );
1345
points[2] = new Point3D( plottingRect.
X
, plottingRect.Y, zPosition );
1346
points[3] = new Point3D( plottingRect.
X
, plottingRect.Bottom, zPosition );
1351
points[4] = new Point3D( plottingRect.
X
, plottingRect.Y, zPosition );
1357
points[6] = new Point3D( plottingRect.
X
, plottingRect.Y, zPosition );
1358
points[7] = new Point3D( plottingRect.
X
, plottingRect.Bottom, zPosition );
Common\General\ChartGraphics.cs (116)
486
RectangleF tempRect = new RectangleF(rectangle.
X
,rectangle.Y,rectangle.Width,rectangle.Height);
626
tempPoints[0] = new PointF(rect.
X
+ rect.Width/2f, (outside == true) ? rect.Y : rect.Y + rect.Height/4f);
628
matrix.RotateAt(pointIndex*(360f/(numberOfCorners*2f)), new PointF(rect.
X
+ rect.Width/2f, rect.Y + rect.Height/2f));
748
new Rectangle((int)rect.
X
+ shadowSize, (int)rect.Y + shadowSize, (int)rect.Width, (int)rect.Height),
756
new Rectangle((int)rect.
X
, (int)rect.Y, (int)rect.Width, (int)rect.Height),
847
path.AddEllipse(rect.
X
+ shadowSize - 1, rect.Y + shadowSize - 1, rect.Width + 2, rect.Height + 2);
891
this.DrawRectangle(new Pen(markerBorderColor, markerBorderSize), (int)Math.Round(rect.
X
, 0), (int)Math.Round(rect.Y, 0), (int)Math.Round(rect.Width, 0), (int)Math.Round(rect.Height, 0));
1006
points[0].X = rect.
X
;
1008
points[1].X = rect.
X
+ rect.Width / 2F;
1012
points[3].X = rect.
X
+ rect.Width / 2F;
1061
points[0].X = rect.
X
;
1063
points[1].X = rect.
X
+ rect.Width / 2F;
1500
rotationPoint = new PointF(backPositionAbs.
X
+ backPositionAbs.Width/2f, backPositionAbs.Y + backPositionAbs.Height/2f);
1541
backPositionAbs.
X
,
1856
rotationPoint.X = absPosition.
X
+ absPosition.Width / 2F;
1861
rotationPoint.X = absPosition.
X
+ absPosition.Width / 2F;
1872
rotationPoint.X = absPosition.
X
+ absPosition.Width / 2F;
1877
newRect.X = absPosition.
X
+ absPosition.Width / 2F;
1928
rotationPoint.X = absPosition.
X
+ absPosition.Width / 2F;
1994
labelRect.X = absPosition.
X
;
1998
labelRect.X = absPosition.
X
+ absPosition.Width / 2F - labelSize.Width / 2F;
2047
boundaryRect.Width += boundaryRect.
X
;
2052
boundaryRect.Width = this._common.Width - boundaryRect.
X
;
2078
absPosition.X = labelRect.
X
+ sizeChange;
2086
absPosition.X = labelRect.
X
;
2093
absPosition.X = labelRect.
X
;
2104
absPosition.X = labelRect.
X
;
2290
absPosition.
X
+ (absPosition.Width - imageAbsSize.Width - labelSize.Width) / 2,
2310
imageRect.X = absPosition.
X
+ (absPosition.Width - imageAbsSize.Width - labelSize.Width) / 2;
2318
imageRect.X = absPosition.
X
;
2398
PointF centerNotRound = new PointF(absPosition.
X
+ absPosition.Width/2F, absPosition.Y + absPosition.Height/2F);
2553
Point center = Point.Round(new PointF(absPosition.
X
+ absPosition.Width/2F, absPosition.Y + absPosition.Height/2F));
2781
rotationCenter.X = rect.
X
+ size.Width / 2;
2874
gradientRect.Width = rect.Right - gradientRect.
X
;
3045
path.AddLine(gradientRect.
X
+ gradientRect.Width/2f, gradientRect.Y + size, gradientRect.
X
+ gradientRect.Width/2f, gradientRect.Bottom - size);
3046
path.AddLine(gradientRect.
X
+ gradientRect.Width/2f, gradientRect.Bottom - size, gradientRect.Right, gradientRect.Bottom);
3051
path.AddLine(gradientRect.
X
+ size, gradientRect.Y + gradientRect.Height/2f, gradientRect.Right - size, gradientRect.Y + gradientRect.Height/2f);
3069
path.AddLine(gradientRect.
X
, gradientRect.Y, gradientRect.
X
+ gradientRect.Width/2f, gradientRect.Y + size);
3070
path.AddLine(gradientRect.
X
+ gradientRect.Width/2f, gradientRect.Y + size, gradientRect.Right, gradientRect.Y);
3092
rect.
X
+ rect.Width/2f,
3094
rect.
X
+ rect.Width/2f,
3101
rect.
X
+ size,
3103
rect.
X
+ size,
3116
rect.
X
+ rect.Width/2f,
3118
rect.
X
+ rect.Width/2f,
3125
rect.
X
+ size,
3127
rect.
X
+ size,
3139
path.AddLine(gradientRect.
X
, gradientRect.Bottom, gradientRect.
X
+ gradientRect.Width/2f, gradientRect.Bottom - size);
3140
path.AddLine(gradientRect.
X
+ gradientRect.Width/2f, gradientRect.Bottom - size, gradientRect.Right, gradientRect.Bottom);
3144
path.AddLine(gradientRect.
X
, gradientRect.Y, gradientRect.
X
+ size, gradientRect.Y + gradientRect.Height / 2f);
3145
path.AddLine(gradientRect.
X
+ size, gradientRect.Y + gradientRect.Height / 2f, gradientRect.
X
, gradientRect.Bottom);
3448
fillRect = new RectangleF( rect.
X
, rect.Y, rect.Width, rect.Height);
3456
fillRect = new RectangleF( rect.
X
, rect.Y, rect.Width, rect.Height);
3462
rect.
X
+ borderWidth,
3534
imageRect.X = fillRect.
X
;
3563
imageRect.X = fillRect.
X
+ (fillRect.Width - imageRect.Width)/2;
3595
new Rectangle((int)Math.Round(imageRect.
X
),(int)Math.Round(imageRect.Y), (int)Math.Round(imageRect.Width), (int)Math.Round(imageRect.Height)),
3669
this.DrawRectangle( _pen, rect.
X
, rect.Y, rect.Width, rect.Height );
3759
offset.X = absolute.
X
+ shadowOffset;
3781
offset.X = absolute.
X
+ shadowOffset - 1;
3803
path.AddLine(offset.
X
+radiusX, offset.Y, offset.Right-radiusX, offset.Y);
3807
path.AddLine(offset.Right-radiusX, offset.Bottom, offset.
X
+ radiusX, offset.Bottom);
3808
path.AddArc(offset.
X
, offset.Bottom-2f*radiusY, 2f*radiusX, 2f*radiusY, 90, 90);
3809
path.AddLine(offset.
X
, offset.Bottom-radiusY, offset.
X
, offset.Y+radiusY);
3810
path.AddArc(offset.
X
, offset.Y, 2f*radiusX, 2f*radiusY, 180, 90);
3814
path.AddLine(offset.
X
+radius, offset.Y, offset.Right-radius, offset.Y);
3818
path.AddLine(offset.Right-radius, offset.Bottom, offset.
X
+ radius, offset.Bottom);
3819
path.AddArc(offset.
X
, offset.Bottom-2f*radius, 2f*radius, 2f*radius, 90, 90);
3820
path.AddLine(offset.
X
, offset.Bottom-radius, offset.
X
, offset.Y+radius);
3821
path.AddArc(offset.
X
, offset.Y, 2f*radius, 2f*radius, 180, 90);
3830
shadowBrush.CenterPoint = new PointF(offset.
X
+ offset.Width/2f, offset.Y + offset.Height/2f);
3861
PointF firstPoint = new PointF(position.
X
+ position.Width/2f, position.Y);
3862
PointF centerPoint = new PointF(position.
X
+ position.Width/2f, position.Y + position.Height/2f);
3934
PointF firstPoint = new PointF(position.
X
+ position.Width/2f, position.Y);
3935
PointF centerPoint = new PointF(position.
X
+ position.Width/2f, position.Y + position.Height/2f);
4193
fillRect = new RectangleF( rect.
X
+ borderWidth, rect.Y + borderWidth, rect.Width - borderWidth * 2, rect.Height - borderWidth * 2 );
4215
imageRect.X = fillRect.
X
;
4244
imageRect.X = fillRect.
X
+ (fillRect.Width - imageRect.Width)/2;
4266
this.FillRectangle( brush, rect.
X
, rect.Y, rect.Width + 1, rect.Height + 1);
4270
new Rectangle((int)Math.Round(imageRect.
X
),(int)Math.Round(imageRect.Y), (int)Math.Round(imageRect.Width), (int)Math.Round(imageRect.Height)),
4281
this.FillRectangle( backBrush, rect.
X
, rect.Y, rect.Width + 1, rect.Height + 1 );
4283
this.FillRectangle( brush, rect.
X
, rect.Y, rect.Width + 1, rect.Height + 1 );
4290
this.DrawRectangle( _pen, rect.
X
, rect.Y, rect.Width + 1, rect.Height + 1 );
4292
this.DrawRectangle( _pen, rect.
X
, rect.Y, rect.Width, rect.Height );
4511
imageRect.X = fillRect.
X
;
4540
imageRect.X = fillRect.
X
+ (fillRect.Width - imageRect.Width)/2;
4568
new Rectangle((int)Math.Round(imageRect.
X
),(int)Math.Round(imageRect.Y), (int)Math.Round(imageRect.Width), (int)Math.Round(imageRect.Height)),
4654
relative.X = rectangle.
X
* 100F / ((float)(_width - 1));
4745
absolute.X = rectangle.
X
* (_width - 1) / 100F;
4791
path.AddLine(rect.
X
+cornerRadius[0], rect.Y, rect.Right-cornerRadius[1], rect.Y);
4795
path.AddLine(rect.Right-cornerRadius[4], rect.Bottom, rect.
X
+ cornerRadius[5], rect.Bottom);
4796
path.AddArc(rect.
X
, rect.Bottom-2f*cornerRadius[6], 2f*cornerRadius[5], 2f*cornerRadius[6], 90, 90);
4797
path.AddLine(rect.
X
, rect.Bottom-cornerRadius[6], rect.
X
, rect.Y+cornerRadius[7]);
4798
path.AddArc(rect.
X
, rect.Y, 2f*cornerRadius[0], 2f*cornerRadius[7], 180, 90);
4824
shadowBrush.CenterPoint = new PointF(rect.
X
+ rect.Width/2f, rect.Y + rect.Height/2f);
5034
path.AddPie(absRect.
X
, absRect.Y, absRect.Width, absRect.Height, startAngle, sweepAngle);
5065
path.AddArc(absRect.
X
+ absRect.Width * doughnutRadius / 200 - 1, absRect.Y + absRect.Height * doughnutRadius / 200 - 1, absRect.Width - absRect.Width * doughnutRadius / 100 + 2, absRect.Height - absRect.Height * doughnutRadius / 100 + 2, startAngle, sweepAngle);
5066
path.AddArc(absRect.
X
, absRect.Y, absRect.Width, absRect.Height, startAngle + sweepAngle, -sweepAngle);
5096
this.FillPie( fillBrush, absRect.
X
, absRect.Y, absRect.Width, absRect.Height, startAngle, sweepAngle );
5108
this.DrawPie( borderPen, absRect.
X
, absRect.Y, absRect.Width, absRect.Height, startAngle, sweepAngle );
5155
gradientPath.
X
+ position.Width * doughnutRadius /200 - 1 - shadowSize,
5161
path.AddArc( gradientPath.
X
, gradientPath.Y, gradientPath.Width, gradientPath.Height, startAngle + sweepAngle, -sweepAngle );
5207
path.AddArc( position.
X
+ shadowSize, position.Y + shadowSize, position.Width - shadowSize * 2f, position.Height - shadowSize * 2f, startAngle, sweepAngle );
5208
path.AddArc( position.
X
, position.Y, position.Width, position.Height, startAngle + sweepAngle, -sweepAngle );
5244
path.AddArc( innerPosition.
X
+ shadowSize, innerPosition.Y + shadowSize, innerPosition.Width - 2f * shadowSize, innerPosition.Height - 2f * shadowSize, startAngle, sweepAngle );
5245
path.AddArc( innerPosition.
X
, innerPosition.Y, innerPosition.Width, innerPosition.Height, startAngle + sweepAngle, -sweepAngle );
5284
path.AddEllipse( absRect.
X
, absRect.Y, absRect.Width, absRect.Height );
5303
this.FillPie( brush, absRect.
X
, absRect.Y, absRect.Width, absRect.Height, startAngle, sweepAngle );
Common\General\ChartGraphics3D.cs (26)
744
path.AddArc(pieBottomRectangle.
X
, pieBottomRectangle.Y, pieBottomRectangle.Width, pieBottomRectangle.Height, startAngle, sweepAngle);
757
path.AddArc(pieTopRectangle.
X
, pieTopRectangle.Y, pieTopRectangle.Width, pieTopRectangle.Height, startAngle + sweepAngle, -sweepAngle);
865
path.AddArc(pieRectangle.
X
, pieRectangle.Y, pieRectangle.Width, pieRectangle.Height, startAngle, sweepAngle);
975
pieDoughnutRectangle.X = pieRectangle.
X
+ pieRectangle.Width * (1F - doughnutRadius) / 2F;
997
path.AddArc(pieRectangle.
X
, pieRectangle.Y, pieRectangle.Width, pieRectangle.Height, startAngle, sweepAngle);
1006
path.AddArc(pieDoughnutRectangle.
X
, pieDoughnutRectangle.Y, pieDoughnutRectangle.Width, pieDoughnutRectangle.Height, startAngle + sweepAngle, -sweepAngle);
2866
cubePoints[0] = new Point3D( position.
X
, position.Y, positionZ + depth );
2867
cubePoints[1] = new Point3D( position.
X
, position.Bottom, positionZ + depth );
2872
cubePoints[4] = new Point3D( position.
X
, position.Y, positionZ );
2873
cubePoints[5] = new Point3D( position.
X
, position.Bottom, positionZ );
3109
gradientPoints[4] = new Point3D( position.
X
+ position.Width / 2f, position.Top + sizeRel.Height, positionZ + depth );
3110
gradientPoints[5] = new Point3D( position.
X
+ position.Width / 2f, position.Bottom - sizeRel.Height, positionZ + depth );
3114
gradientPoints[4] = new Point3D( position.
X
+ sizeRel.Width, position.Top + position.Height / 2f, positionZ + depth );
3564
path.AddEllipse(rect.
X
+ shadowSize - 1, rect.Y + shadowSize - 1, rect.Width + 2, rect.Height + 2);
3734
cubePoints[0] = new Point3D( position.
X
, position.Y, positionZ + depth );
3735
cubePoints[1] = new Point3D( position.
X
, position.Bottom, positionZ + depth );
3740
cubePoints[4] = new Point3D( position.
X
, position.Y, positionZ );
3741
cubePoints[5] = new Point3D( position.
X
, position.Bottom, positionZ );
3979
cubePoints[0] = new Point3D( position.
X
, position.Y, positionZ + depth / 2f );
3980
cubePoints[1] = new Point3D( position.
X
, position.Bottom, positionZ + depth / 2f );
3984
float middleXValue = position.
X
+ position.Width / 2f;
3993
cubePoints[1] = new Point3D( position.
X
, position.Y, positionZ + depth / 2f );
3994
cubePoints[2] = new Point3D( position.
X
, position.Bottom, positionZ + depth / 2f );
3999
cubePoints[5] = new Point3D( position.
X
, middleYValue, positionZ + depth );
4000
cubePoints[6] = new Point3D( position.
X
, middleYValue, positionZ );
4175
boundsRectMiddlePoint.X = boundsRect.
X
+ boundsRect.Width/2f;
Common\General\GridTickMarks.cs (2)
1472
first.X = plotArea.
X
;
1570
first.X = plotArea.
X
;
Common\General\ImageMap.cs (1)
273
coord[0] = rect.
X
;
Common\General\Label.cs (22)
1281
new PointF(labelRect.
X
, labelRect.Bottom)
1747
rect.Width = (float)Math.Max(fromPosition, toPosition) - rect.
X
;
1837
rectLabels.Width = (float)Math.Max(rectLabels.Width, rectLabels.
X
- labelsAxis.PlotAreaPosition.X);
1861
rectLabels.Width = (float)Math.Max(rectLabels.Width, labelsAxis.PlotAreaPosition.Right - rectLabels.
X
);
2261
rect.Width = (float)Math.Max(fromPosition, toPosition) - rect.
X
;
2308
rect.Width = rectPoints[1].X - rect.
X
;
2312
rectPoints[0] = new Point3D(rect.
X
, rect.Y, labelsZPosition);
2313
rectPoints[1] = new Point3D(rect.
X
, rect.Y + rect.Height / 2f, labelsZPosition);
2314
rectPoints[2] = new Point3D(rect.
X
, rect.Bottom, labelsZPosition);
2324
rectPoints[0] = new Point3D(rect.
X
, rect.Bottom, labelsZPosition);
2325
rectPoints[1] = new Point3D(rect.
X
+ rect.Width / 2f, rect.Bottom, labelsZPosition);
2332
rect.Width = rectPoints[2].X - rect.
X
;
2341
rect.Width = rightLabelsRect.Right - rect.
X
;
2348
rect.X = rightLabelsRect.
X
;
2349
rect.Width = rectPoints[1].X - rightLabelsRect.
X
;
2355
rectPoints[0] = new Point3D(rect.
X
, rect.Y, labelsZPosition);
2356
rectPoints[1] = new Point3D(rect.
X
+ rect.Width / 2f, rect.Y, labelsZPosition);
2363
rect.Width = rectPoints[2].X - rect.
X
;
2373
rect.Width = rightLabelsRect.Right - rect.
X
;
2386
rect.X = rightLabelsRect.
X
;
2387
rect.Width = rectPoints[1].X - rightLabelsRect.
X
;
2465
labelPositionPoints[0] = new Point3D(initialRect.
X
, initialRect.Bottom - _axis.totlaGroupingLabelsSize - _axis.totlaGroupingLabelsSizeAdjustment, labelsZPosition);
Common\General\Legend.cs (7)
1125
legendPosition.X = chartAreasRectangle.
X
+ elementSpacing;
1133
legendPosition.X = chartAreasRectangle.
X
+ (chartAreasRectangle.Width - legendSize.Width) / 2F;
1145
legendPosition.X = chartAreasRectangle.
X
+ elementSpacing;
1153
legendPosition.X = chartAreasRectangle.
X
+ (chartAreasRectangle.Width - legendSize.Width) / 2F;
1161
legendPosition.X = chartAreasRectangle.
X
+ elementSpacing;
1199
this.Position.SetPositionNoAuto(legendPosition.
X
, legendPosition.Y, legendPosition.Width, legendPosition.Height);
4983
legend.Position.SetPositionNoAuto(legendPosition.
X
, legendPosition.Y, legendPosition.Width, legendPosition.Height);
Common\General\LegendColumns.cs (2)
1947
this.Chart.CallOnPrePaint(new ChartPaintEventArgs(this, chartGraph, this.Common, new ElementPosition(rectRelative.
X
, rectRelative.Y, rectRelative.Width, rectRelative.Height)));
1966
this.Chart.CallOnPostPaint(new ChartPaintEventArgs(this, chartGraph, this.Common, new ElementPosition(rectRelative.
X
, rectRelative.Y, rectRelative.Width, rectRelative.Height)));
Common\General\Matrix3D.cs (1)
245
_translateX = innerPlotRectangle.
X
+innerPlotRectangle.Width/2;
Common\General\SmartLabels.cs (16)
939
graph.DrawRectangle(calloutPen, labelRectAbs.
X
, labelRectAbs.Y, labelRectAbs.Width, labelRectAbs.Height);
947
graph.DrawLine(calloutPen, labelRectAbs.
X
, labelRectAbs.Top, labelRectAbs.
X
, labelRectAbs.Bottom);
957
graph.DrawLine(calloutPen, labelRectAbs.
X
, labelRectAbs.Top, labelRectAbs.Right, labelRectAbs.Top);
962
graph.DrawLine(calloutPen, labelRectAbs.
X
, labelRectAbs.Bottom, labelRectAbs.Right, labelRectAbs.Bottom);
1050
if(labelPosition.
X
< 0f || labelPosition.Y < 0f ||
1077
labelPosition.
X
+ labelPosition.Width/2f,
1096
!areaPath.IsVisible(new PointF(labelPosition.
X
, labelPosition.Bottom)) )
1115
labelPosition.
X
+ labelPosition.Width/2f,
1174
labelPosition.
X
+ labelPosition.Width / 2f,
1224
if(point1.X >= rect.
X
&& point1.X <= rect.Right)
1244
if(point1.X < rect.
X
&& point2.X < rect.
X
)
1259
if(point1.X < rect.
X
&& point2.X < rect.
X
)
1294
intersection = CalloutAnnotation.GetIntersectionX(point1, point2, rect.
X
);
Common\General\StripLine.cs (5)
367
rect.X = plotAreaPosition.
X
;
380
rect.Width = (float)Math.Max(pos1, pos2) - rect.
X
;
442
point1.X = plotAreaPosition.
X
;
626
rect.Width = point2.X - rect.
X
;
725
rotationCenter.X = rect.
X
+ size.Width / 2 + sizeBorder.Width;
Common\General\Title.cs (13)
1414
titlePosition.X = titlePosition.
X
- titlePosition.Width;
1420
titlePosition.X = titlePosition.
X
- titlePosition.Width/2f;
1486
titlePosition.
X
,
1515
exactTitleRect.X = titlePosition.
X
+
1649
center.X = absPosition.
X
+ absPosition.Width / 2F;
1847
frameTitlePosition.
X
+ elementSpacing,
1906
titlePosition.X = chartAreasRectangle.
X
+ elementSpacing;
1907
titlePosition.Width = chartAreasRectangle.Right - titlePosition.
X
- elementSpacing;
1920
titlePosition.X = chartAreasRectangle.
X
+ elementSpacing;
1921
titlePosition.Width = chartAreasRectangle.Right - titlePosition.
X
- elementSpacing;
1932
titlePosition.X = chartAreasRectangle.
X
+ elementSpacing;
1972
this.Position.SetPositionNoAuto(titlePosition.
X
, titlePosition.Y, titlePosition.Width, titlePosition.Height);
2137
title.Position.SetPositionNoAuto(titlePosition.
X
, titlePosition.Y, titlePosition.Width, titlePosition.Height);
Common\Utilities\ElementPosition.cs (1)
216
this._x = rect.
X
;
WinForm\Utilities\AccessibleObject.cs (1)
304
absolute.X = bounds.
X
* (this._chart.Width - 1) / 100F;