533 writes to Width
System.Drawing (5)
commonui\System\Drawing\Advanced\RectangleF.cs (3)
116
this.
Width
= value.Width;
362
this.
Width
+= 2*x;
397
this.
Width
= result.Width;
commonui\System\Drawing\Printing\PageSettings.cs (2)
249
printableArea.
Width
= (float)UnsafeNativeMethods.GetDeviceCaps(hdc, SafeNativeMethods.HORZRES) * 100 / dpiX;
258
printableArea.
Width
= (float)UnsafeNativeMethods.GetDeviceCaps(hdc, SafeNativeMethods.VERTRES) * 100 / dpiY;
System.Web.DataVisualization (263)
Common\Annotation\CalloutAnnotation.cs (1)
661
rectanglePosition.
Width
= -rectanglePosition.Width;
Common\Annotation\GroupAnnotation.cs (1)
930
selectionRect.
Width
= -selectionRect.Width;
Common\Annotation\ImageAnnotation.cs (1)
535
rectanglePosition.
Width
= -rectanglePosition.Width;
Common\Annotation\LineAnnotation.cs (1)
800
selectionRect.
Width
= 0f;
Common\Annotation\PolygonAnnotation.cs (1)
576
rectanglePosition.
Width
= -rectanglePosition.Width;
Common\Annotation\RectangleAnnotation.cs (2)
399
rectanglePosition.
Width
= -rectanglePosition.Width;
637
rectanglePosition.
Width
= -rectanglePosition.Width;
Common\Annotation\TextAnnotation.cs (4)
429
textPosition.
Width
= -textPosition.Width;
536
textPositionWithSpacing.
Width
-= (textSpacing.Width + textSpacing.X) * spacingScaleX;
568
textPositionWithSpacing.
Width
= textPosition.Width;
569
textPositionWithSpacing.
Width
-= textSpacing.Width/2f + textSpacing.X / 2f;
Common\Borders3D\EmbedBorder.cs (11)
685
rect.
Width
-= sizeRightBottom.Width + sizeLeftTop.Width;
863
areasRect.
Width
-= (float)Math.Min(areasRect.Width, relSizeLeftTop.Width + relSizeRightBottom.Width);
870
areasRect.
Width
-= 100f - areasRect.Right;
956
shadowRect.
Width
-= radius * .3f;
965
shadowRect.
Width
-= radius * .3f;
971
shadowRect.
Width
-= radius * .3f;
1001
screwRect.
Width
= radius * 0.55f;
1025
shadowRect.
Width
-= radius * .3f;
1039
shadowRect.
Width
+= 0.5f*radius;
1055
shadowRect.
Width
-= radius * .3f;
1067
shadowWithOffset.
Width
+= radius;
Common\Borders3D\EmbossBorder.cs (4)
120
areasRect.
Width
-= (float)Math.Min(areasRect.Width, borderSize.Width * 2.5f);
207
shadowRect.
Width
-= radius * .3f;
215
shadowRect.
Width
-= radius / 3.5f;
223
shadowRect.
Width
-= radius * .75f;
Common\ChartTypes\BarChart.cs (15)
567
rectSize.
Width
= (float)barSize - rectSize.X;
572
rectSize.
Width
= (float)barStartPosition - rectSize.X;
902
rectLabel.
Width
= area.PlotAreaPosition.Right - rectSize.Right;
906
rectLabel.
Width
= rectSize.X - area.PlotAreaPosition.X;
914
rectLabel.
Width
= rectSize.X - area.PlotAreaPosition.X;
927
rectLabel.
Width
-= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F);
952
rectLabel.
Width
-= (float)Math.Min(rectLabel.Width, markerSize.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;
1928
rectLabel.
Width
= area.PlotAreaPosition.Right - rectSize.Right;
1933
rectLabel.
Width
= rectSize.X - area.PlotAreaPosition.X;
1946
rectLabel.
Width
-= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F);
1971
rectLabel.
Width
-= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F);
Common\ChartTypes\BoxPlotChart.cs (4)
437
rectSize.
Width
= (float)(width);
578
areaRect.
Width
= width;
1225
rectSize.
Width
= (float)(width);
1365
areaRect.
Width
= width;
Common\ChartTypes\ColumnChart.cs (5)
468
rectSize.
Width
= (float)(width);
796
rectSize.
Width
= (float)(pointEx.width);
843
rectSize.
Width
-= area.PlotAreaPosition.X - rectSize.X;
848
rectSize.
Width
-= rectSize.Right - area.PlotAreaPosition.Right;
852
rectSize.
Width
= 0;
Common\ChartTypes\ErrorBarChart.cs (2)
596
areaRect.
Width
= width;
1360
areaRect.
Width
= width;
Common\ChartTypes\FunnelChart.cs (6)
1162
boundsRect.
Width
= 1f;
1715
position.
Width
+= spacing;
1720
position.
Width
+= spacing;
1734
requiredSpacing.
Width
= position.Right - plotAreaPositionAbs.Right;
1815
labelInfo.Position.
Width
= labelInfo.Size.Width;
2192
plotAreaPosition.
Width
-= plotAreaSpacing.X + plotAreaSpacing.Width;
Common\ChartTypes\PieChart.cs (13)
809
rectangle.
Width
= rectangle.Width * _sizeCorrection;
818
rect.
Width
= rect.Width / area.Position.Width * 100f;
1397
rect.
Width
= labelRectOver.Width;
1489
labelRect.
Width
= labelPosition.X - area.Position.X;
1496
labelRect.
Width
= area.Position.Right - labelPosition.X;
1820
doughnutRect.
Width
= rectangle.Width * (100 - doughnutRadius) / 100;
2586
rectangle.
Width
= rectangle.Width * sizeCorrection;
2608
rect.
Width
= rect.Width / area.Position.Width * 100f;
5331
pieRectangle.
Width
= pieRectangle.Width - 2F * maxSize - 2 * pieRectangle.Width * labelLineSize;
5338
pieRectangle.
Width
= oldWidth * (float)this.MinimumRelativePieSize( area );
5350
pieRectangle.
Width
*= 0.8F;
5466
labelPosition.
Width
= chartAreaPosition.Right - labelPosition.X;
5486
labelPosition.
Width
= labelPoint.X - labelPosition.X;
Common\ChartTypes\PointAndFigureChart.cs (1)
820
position.
Width
= rectSize.Width;
Common\ChartTypes\PointChart.cs (4)
974
labelPosition.
Width
= size.Width;
990
labelPosition.
Width
+= 4f*pixelSize.Width;
998
labelPosition.
Width
+= 4f*pixelSize.Width;
1007
labelPosition.
Width
+= 4f*pixelSize.Width;
Common\ChartTypes\StackedBarChart.cs (9)
485
areaPosition.
Width
= right - areaPosition.X;
823
rectSize.
Width
= (float)height - rectSize.X;
828
rectSize.
Width
= (float)zero - rectSize.X;
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;
1884
rectLabel.
Width
= area.PlotAreaPosition.Right - rectSize.Right;
1889
rectLabel.
Width
= rectSize.X - area.PlotAreaPosition.X;
Common\ChartTypes\StackedColumnChart.cs (7)
491
areaPosition.
Width
= right - areaPosition.X;
836
rectSize.
Width
= (float)(width);
1603
rectSize.
Width
= (float)(pointEx.width);
1657
rectSize.
Width
-= area.PlotAreaPosition.X - rectSize.X;
1662
rectSize.
Width
-= rectSize.Right - area.PlotAreaPosition.Right;
1666
rectSize.
Width
= 0;
1766
rectSize.
Width
= (float)(pointEx.width);
Common\ChartTypes\StockChart.cs (5)
467
areaRect.
Width
= width;
801
rect.
Width
= width;
1281
areaRect.
Width
= width;
1626
rect.
Width
= width;
1638
rect.
Width
= (float)Math.Abs(points[1].X - points[0].X);
Common\General\Axis.cs (20)
1825
_titlePosition.
Width
= axisTitleSize.Width;
1847
_titlePosition.
Width
= axisTitleSize.Width;
1868
_titlePosition.
Width
= axisTitleSize.Width;
1890
_titlePosition.
Width
= axisTitleSize.Width;
1908
_titlePosition.
Width
= ChartArea.PlotAreaPosition.Width;
1924
_titlePosition.
Width
= ChartArea.PlotAreaPosition.Width;
1972
transformedTitlePosition.
Width
= Math.Abs(transformedTitlePosition.Width);
2048
rect.
Width
= rect.Height;
2149
rect.
Width
= rect.Height;
5303
rect.
Width
= (float)Math.Max(fromPosition, toPosition) - rect.X;
5307
rect.
Width
= (maxLabelSize / 100F) * maxAxisLabelRow2Size / groupLabelLevelCount;
5421
rect.
Width
= (maxLabelSize / 100F) *
5426
rect.
Width
= (maxLabelSize / 100F) *
5435
rect.
Width
/= 2F;
5444
rect.
Width
= val;
5523
rect.
Width
*= 0.97f;
5552
labelPosition.
Width
= width;
5659
rect.
Width
= maxLabelSize;
5680
rect.
Width
= val;
5699
rect.
Width
= (float)Math.Ceiling(rect.Width);
Common\General\AxisScale.cs (1)
1827
paintAreaPosition.
Width
/= 2.0f;
Common\General\AxisScaleSegments.cs (6)
394
shadowPartRect.
Width
= this.axis.ChartArea.ShadowOffset + 2;
399
shadowPartRect.
Width
-= this.axis.ChartArea.ShadowOffset;
430
clipRegion.
Width
+= this.axis.ChartArea.ShadowOffset;
703
breakPosition.
Width
= (float)Math.Max(from, to);;
714
breakPosition.
Width
+= 2 * this.axis.ChartArea.BorderWidth;
718
breakPosition.
Width
= (float)Math.Abs(breakPosition.X - breakPosition.Width);
Common\General\Chart.cs (9)
2123
_titlePosition.
Width
= chartAreasRectangle.Width - _titlePosition.Width;
2156
chartAreasRectangle.
Width
-= elementSpacing;
2198
areaPosition.
Width
= chartAreasRectangle.Width / areaColumns - elementSpacing;
3112
areaPlotPosition.
Width
-= area.PlotAreaPosition.X - areaPlotPosition.X;
3121
areaPlotPosition.
Width
-= areaPlotPosition.Right - area.PlotAreaPosition.Right;
3124
areaPlotPosition.
Width
= 5;
3149
rect.
Width
= areaPlotPosition.Width;
3163
rect.
Width
= rect.Width / area.Position.Width * 100f;
3211
areaPosition.
Width
= masterArea.Position.Width;
Common\General\ChartArea.cs (16)
1472
plottingRect.
Width
= (Position.Width / 100F) * InnerPlotPosition.Width;
1573
plottingRect.
Width
-= areaWallSize.Width;
1578
plottingRect.
Width
-= areaWallSize.Width;
1690
plottingRect.
Width
-= axisSize;
1694
plottingRect.
Width
-= axisSize;
1722
rectLabelSideSpacing.
Width
= (float)Math.Max(axis.labelFarOffset - Position.Right, rectLabelSideSpacing.Width);
1726
rectLabelSideSpacing.
Width
= (float)Math.Max(plottingRect.Width * 0.3f, rectLabelSideSpacing.Width);
1778
plottingRect.
Width
+= delta;
1786
plottingRect.
Width
+= (Position.Right - plottingRect.Right) - rectLabelSideSpacing.Width;
1801
plottingRect.
Width
-= 2f * xTitleSize;
1815
rect.
Width
= rect.Height;
1836
plottingRect.
Width
= 0f;
2092
plottingRect.
Width
= (Position.Width / 100F) * InnerPlotPosition.Width;
2154
currentAxis.paintAreaPosition.
Width
/= 2.0f;
2622
plotAreaRectAbs.
Width
-= 2f * labelsSize;
2629
plotAreaRectAbs.
Width
= 1.0f;
Common\General\ChartArea3D.cs (4)
713
position.
Width
+= areaSceneWallWidth.Width;
748
wallRect2D.
Width
= areaSceneWallWidth.Width;
772
wallRect2D.
Width
-= areaSceneWallWidth.Width;
1282
plottingRect.
Width
= (area.Position.Width / 100F) * area.InnerPlotPosition.Width;
Common\General\ChartGraphics.cs (36)
499
tempRect.
Width
= tempRect.Width / 2F;
718
imageScaleRect.
Width
= size.Width;
724
rect.
Width
= imageScaleRect.Width;
780
rect.
Width
= markerSize;
1040
diamondRect.
Width
= diamondSize;
1794
absPosition.
Width
= 1f;
1880
newRect.
Width
= absPosition.Height;
1936
newRect.
Width
= absPosition.Height;
1986
labelRect.
Width
= labelSize.Width;
2047
boundaryRect.
Width
+= boundaryRect.X;
2052
boundaryRect.
Width
= this._common.Width - boundaryRect.X;
2079
absPosition.
Width
= labelRect.Width - sizeChange;
2087
absPosition.
Width
= labelRect.Width - sizeChange;
2094
absPosition.
Width
= labelRect.Width - sizeChange;
2105
absPosition.
Width
= labelRect.Width - sizeChange;
2136
absPositionWithoutImage.
Width
-= imageAbsSize.Width;
2142
absPositionWithoutImage.
Width
= 1f;
2407
newRect.
Width
= absPosition.Height;
2847
gradientRect.
Width
*= 0.3f;
2874
gradientRect.
Width
= rect.Right - gradientRect.X;
2977
gradientRect.
Width
= (float)Math.Floor(gradientRect.Width / 3f);
3005
gradientRect.
Width
= (float)Math.Floor(gradientRect.Width / 3f);
3428
rect.
Width
= 1.0F;
3481
fillRect.
Width
= 2f * this._width;
3536
imageRect.
Width
= fillRect.Width;
3547
imageRect.
Width
= Math.Min(fillRect.Width, imageAbsSize.Width);
3664
rect.
Width
+= 1;
3761
offset.
Width
= absolute.Width;
3783
offset.
Width
= absolute.Width + 2;
4196
fillRect.
Width
+= 1;
4217
imageRect.
Width
= fillRect.Width;
4228
imageRect.
Width
= imageAbsSize.Width;
4513
imageRect.
Width
= fillRect.Width;
4524
imageRect.
Width
= imageSize.Width;
4656
relative.
Width
= rectangle.Width * 100F / ((float)(_width - 1));
4747
absolute.
Width
= rectangle.Width * (_width - 1) / 100F;
Common\General\ChartGraphics3D.cs (12)
715
pieTopRectangle.
Width
= topSecondRectPoint.X - topFirstRectPoint.X;
721
pieBottomRectangle.
Width
= bottomSecondRectPoint.X - bottomFirstRectPoint.X;
846
pieRectangle.
Width
= secondRectPoint.X - firstRectPoint.X;
972
pieRectangle.
Width
= secondRectPoint.X - firstRectPoint.X;
978
pieDoughnutRectangle.
Width
= pieRectangle.Width * doughnutRadius;
3254
gradientRect.
Width
= (float)Math.Floor(gradientRect.Width / 3f);
3280
bounds.
Width
+= 1f;
3310
gradientRect.
Width
= (float)Math.Floor(gradientRect.Width / 3f);
3336
bounds.
Width
+= 1f;
3511
rect.
Width
= markerSize;
3533
rect.
Width
= markerSize;
3634
rectNonRotated.
Width
= markerRelativeSize.Width;
Common\General\Label.cs (36)
1324
labelPosition.
Width
= size.Width;
1390
rectLabels.
Width
= labelSize;
1404
rectLabels.
Width
= labelSize;
1449
boundaryRect.
Width
-= _axis.totlaGroupingLabelsSize;
1453
boundaryRect.
Width
-= _axis.totlaGroupingLabelsSize;
1627
rect.
Width
= _axis.unRotatedLabelSize;
1632
rect.
Width
/= 2F;
1641
rect.
Width
= _axis.unRotatedLabelSize;
1646
rect.
Width
/= 2F;
1697
rect.
Width
= _axis.groupingLabelSizes[label.RowIndex - 1];
1706
rect.
Width
= _axis.groupingLabelSizes[label.RowIndex - 1];
1747
rect.
Width
= (float)Math.Max(fromPosition, toPosition) - rect.X;
1754
rect.
Width
*= 2F;
1833
rectLabels.
Width
= labelsAxis.labelSize;
1837
rectLabels.
Width
= (float)Math.Max(rectLabels.Width, rectLabels.X - labelsAxis.PlotAreaPosition.X);
1857
rectLabels.
Width
= labelsAxis.labelSize;
1861
rectLabels.
Width
= (float)Math.Max(rectLabels.Width, labelsAxis.PlotAreaPosition.Right - rectLabels.X);
2042
boundaryRect.
Width
-= _axis.totlaGroupingLabelsSize;
2046
boundaryRect.
Width
-= _axis.totlaGroupingLabelsSize;
2129
rect.
Width
= _axis.unRotatedLabelSize;
2135
rect.
Width
/= 2F;
2146
rect.
Width
= _axis.unRotatedLabelSize;
2152
rect.
Width
/= 2F;
2216
rect.
Width
= _axis.groupingLabelSizes[label.RowIndex - 1];
2225
rect.
Width
= _axis.groupingLabelSizes[label.RowIndex - 1];
2261
rect.
Width
= (float)Math.Max(fromPosition, toPosition) - rect.X;
2264
rect.
Width
= pixelSize.Width;
2272
rect.
Width
*= 2F;
2308
rect.
Width
= rectPoints[1].X - rect.X;
2318
rect.
Width
= rect.Right - rectPoints[1].X;
2332
rect.
Width
= rectPoints[2].X - rect.X;
2341
rect.
Width
= rightLabelsRect.Right - rect.X;
2349
rect.
Width
= rectPoints[1].X - rightLabelsRect.X;
2363
rect.
Width
= rectPoints[2].X - rect.X;
2373
rect.
Width
= rightLabelsRect.Right - rect.X;
2387
rect.
Width
= rectPoints[1].X - rightLabelsRect.X;
Common\General\Legend.cs (4)
1113
legendPosition.
Width
= legendSize.Width;
1176
chartAreasRectangle.
Width
-= legendPosition.Width + elementSpacing;
1196
chartAreasRectangle.
Width
-= legendPosition.Width + elementSpacing;
4443
rect.
Width
-= _itemColumnSpacingRel;
Common\General\Selection.cs (1)
2790
rect.
Width
= 0;
Common\General\SmartLabels.cs (4)
1414
labelPosition.
Width
= size.Width;
1430
labelPosition.
Width
+= 4f*pixelSize.Width;
1438
labelPosition.
Width
+= 4f*pixelSize.Width;
1447
labelPosition.
Width
+= 4f*pixelSize.Width;
Common\General\StripLine.cs (6)
368
rect.
Width
= plotAreaPosition.Width;
380
rect.
Width
= (float)Math.Max(pos1, pos2) - rect.X;
487
lineRect.
Width
= point2.X - point1.X;
494
lineRect.
Width
= relBorderWidth.Width;
563
rect.
Width
= 0f;
626
rect.
Width
= point2.X - rect.X;
Common\General\Title.cs (11)
1409
titlePosition.
Width
= titleSize.Width;
1565
absPosition.
Width
-= this.titleBorderSpacing;
1896
titlePosition.
Width
= titleSize.Width;
1907
titlePosition.
Width
= chartAreasRectangle.Right - titlePosition.X - elementSpacing;
1910
titlePosition.
Width
= 0;
1921
titlePosition.
Width
= chartAreasRectangle.Right - titlePosition.X - elementSpacing;
1924
titlePosition.
Width
= 0;
1941
chartAreasRectangle.
Width
-= titlePosition.Width + elementSpacing;
1955
chartAreasRectangle.
Width
-= titlePosition.Width + elementSpacing;
2123
prevChartAreasRectangle.
Width
+= titlePosition.Width + areaSpacing;
2132
prevChartAreasRectangle.
Width
+= titlePosition.Width + areaSpacing;
System.Windows.Forms (1)
winforms\Managed\System\WinForms\LinkLabel.cs (1)
1184
finalrect.
Width
= requiredSize.Width;
System.Windows.Forms.DataVisualization (264)
Common\Annotation\CalloutAnnotation.cs (1)
661
rectanglePosition.
Width
= -rectanglePosition.Width;
Common\Annotation\GroupAnnotation.cs (1)
930
selectionRect.
Width
= -selectionRect.Width;
Common\Annotation\ImageAnnotation.cs (1)
535
rectanglePosition.
Width
= -rectanglePosition.Width;
Common\Annotation\LineAnnotation.cs (1)
800
selectionRect.
Width
= 0f;
Common\Annotation\PolygonAnnotation.cs (1)
576
rectanglePosition.
Width
= -rectanglePosition.Width;
Common\Annotation\RectangleAnnotation.cs (2)
399
rectanglePosition.
Width
= -rectanglePosition.Width;
637
rectanglePosition.
Width
= -rectanglePosition.Width;
Common\Annotation\TextAnnotation.cs (4)
429
textPosition.
Width
= -textPosition.Width;
536
textPositionWithSpacing.
Width
-= (textSpacing.Width + textSpacing.X) * spacingScaleX;
568
textPositionWithSpacing.
Width
= textPosition.Width;
569
textPositionWithSpacing.
Width
-= textSpacing.Width/2f + textSpacing.X / 2f;
Common\Borders3D\EmbedBorder.cs (11)
685
rect.
Width
-= sizeRightBottom.Width + sizeLeftTop.Width;
863
areasRect.
Width
-= (float)Math.Min(areasRect.Width, relSizeLeftTop.Width + relSizeRightBottom.Width);
870
areasRect.
Width
-= 100f - areasRect.Right;
956
shadowRect.
Width
-= radius * .3f;
965
shadowRect.
Width
-= radius * .3f;
971
shadowRect.
Width
-= radius * .3f;
1001
screwRect.
Width
= radius * 0.55f;
1025
shadowRect.
Width
-= radius * .3f;
1039
shadowRect.
Width
+= 0.5f*radius;
1055
shadowRect.
Width
-= radius * .3f;
1067
shadowWithOffset.
Width
+= radius;
Common\Borders3D\EmbossBorder.cs (4)
120
areasRect.
Width
-= (float)Math.Min(areasRect.Width, borderSize.Width * 2.5f);
207
shadowRect.
Width
-= radius * .3f;
215
shadowRect.
Width
-= radius / 3.5f;
223
shadowRect.
Width
-= radius * .75f;
Common\ChartTypes\BarChart.cs (15)
567
rectSize.
Width
= (float)barSize - rectSize.X;
572
rectSize.
Width
= (float)barStartPosition - rectSize.X;
902
rectLabel.
Width
= area.PlotAreaPosition.Right - rectSize.Right;
906
rectLabel.
Width
= rectSize.X - area.PlotAreaPosition.X;
914
rectLabel.
Width
= rectSize.X - area.PlotAreaPosition.X;
927
rectLabel.
Width
-= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F);
952
rectLabel.
Width
-= (float)Math.Min(rectLabel.Width, markerSize.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;
1928
rectLabel.
Width
= area.PlotAreaPosition.Right - rectSize.Right;
1933
rectLabel.
Width
= rectSize.X - area.PlotAreaPosition.X;
1946
rectLabel.
Width
-= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F);
1971
rectLabel.
Width
-= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F);
Common\ChartTypes\BoxPlotChart.cs (4)
437
rectSize.
Width
= (float)(width);
578
areaRect.
Width
= width;
1225
rectSize.
Width
= (float)(width);
1365
areaRect.
Width
= width;
Common\ChartTypes\ColumnChart.cs (5)
468
rectSize.
Width
= (float)(width);
796
rectSize.
Width
= (float)(pointEx.width);
843
rectSize.
Width
-= area.PlotAreaPosition.X - rectSize.X;
848
rectSize.
Width
-= rectSize.Right - area.PlotAreaPosition.Right;
852
rectSize.
Width
= 0;
Common\ChartTypes\ErrorBarChart.cs (2)
596
areaRect.
Width
= width;
1360
areaRect.
Width
= width;
Common\ChartTypes\FunnelChart.cs (6)
1162
boundsRect.
Width
= 1f;
1715
position.
Width
+= spacing;
1720
position.
Width
+= spacing;
1734
requiredSpacing.
Width
= position.Right - plotAreaPositionAbs.Right;
1815
labelInfo.Position.
Width
= labelInfo.Size.Width;
2192
plotAreaPosition.
Width
-= plotAreaSpacing.X + plotAreaSpacing.Width;
Common\ChartTypes\PieChart.cs (13)
809
rectangle.
Width
= rectangle.Width * _sizeCorrection;
818
rect.
Width
= rect.Width / area.Position.Width * 100f;
1397
rect.
Width
= labelRectOver.Width;
1489
labelRect.
Width
= labelPosition.X - area.Position.X;
1496
labelRect.
Width
= area.Position.Right - labelPosition.X;
1820
doughnutRect.
Width
= rectangle.Width * (100 - doughnutRadius) / 100;
2586
rectangle.
Width
= rectangle.Width * sizeCorrection;
2608
rect.
Width
= rect.Width / area.Position.Width * 100f;
5331
pieRectangle.
Width
= pieRectangle.Width - 2F * maxSize - 2 * pieRectangle.Width * labelLineSize;
5338
pieRectangle.
Width
= oldWidth * (float)this.MinimumRelativePieSize( area );
5350
pieRectangle.
Width
*= 0.8F;
5466
labelPosition.
Width
= chartAreaPosition.Right - labelPosition.X;
5486
labelPosition.
Width
= labelPoint.X - labelPosition.X;
Common\ChartTypes\PointAndFigureChart.cs (1)
820
position.
Width
= rectSize.Width;
Common\ChartTypes\PointChart.cs (4)
974
labelPosition.
Width
= size.Width;
990
labelPosition.
Width
+= 4f*pixelSize.Width;
998
labelPosition.
Width
+= 4f*pixelSize.Width;
1007
labelPosition.
Width
+= 4f*pixelSize.Width;
Common\ChartTypes\StackedBarChart.cs (9)
485
areaPosition.
Width
= right - areaPosition.X;
823
rectSize.
Width
= (float)height - rectSize.X;
828
rectSize.
Width
= (float)zero - rectSize.X;
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;
1884
rectLabel.
Width
= area.PlotAreaPosition.Right - rectSize.Right;
1889
rectLabel.
Width
= rectSize.X - area.PlotAreaPosition.X;
Common\ChartTypes\StackedColumnChart.cs (7)
491
areaPosition.
Width
= right - areaPosition.X;
836
rectSize.
Width
= (float)(width);
1603
rectSize.
Width
= (float)(pointEx.width);
1657
rectSize.
Width
-= area.PlotAreaPosition.X - rectSize.X;
1662
rectSize.
Width
-= rectSize.Right - area.PlotAreaPosition.Right;
1666
rectSize.
Width
= 0;
1766
rectSize.
Width
= (float)(pointEx.width);
Common\ChartTypes\StockChart.cs (5)
467
areaRect.
Width
= width;
801
rect.
Width
= width;
1281
areaRect.
Width
= width;
1626
rect.
Width
= width;
1638
rect.
Width
= (float)Math.Abs(points[1].X - points[0].X);
Common\General\Axis.cs (20)
1825
_titlePosition.
Width
= axisTitleSize.Width;
1847
_titlePosition.
Width
= axisTitleSize.Width;
1868
_titlePosition.
Width
= axisTitleSize.Width;
1890
_titlePosition.
Width
= axisTitleSize.Width;
1908
_titlePosition.
Width
= ChartArea.PlotAreaPosition.Width;
1924
_titlePosition.
Width
= ChartArea.PlotAreaPosition.Width;
1972
transformedTitlePosition.
Width
= Math.Abs(transformedTitlePosition.Width);
2048
rect.
Width
= rect.Height;
2149
rect.
Width
= rect.Height;
5303
rect.
Width
= (float)Math.Max(fromPosition, toPosition) - rect.X;
5307
rect.
Width
= (maxLabelSize / 100F) * maxAxisLabelRow2Size / groupLabelLevelCount;
5421
rect.
Width
= (maxLabelSize / 100F) *
5426
rect.
Width
= (maxLabelSize / 100F) *
5435
rect.
Width
/= 2F;
5444
rect.
Width
= val;
5523
rect.
Width
*= 0.97f;
5552
labelPosition.
Width
= width;
5659
rect.
Width
= maxLabelSize;
5680
rect.
Width
= val;
5699
rect.
Width
= (float)Math.Ceiling(rect.Width);
Common\General\AxisScale.cs (1)
1827
paintAreaPosition.
Width
/= 2.0f;
Common\General\AxisScaleSegments.cs (6)
394
shadowPartRect.
Width
= this.axis.ChartArea.ShadowOffset + 2;
399
shadowPartRect.
Width
-= this.axis.ChartArea.ShadowOffset;
430
clipRegion.
Width
+= this.axis.ChartArea.ShadowOffset;
703
breakPosition.
Width
= (float)Math.Max(from, to);;
714
breakPosition.
Width
+= 2 * this.axis.ChartArea.BorderWidth;
718
breakPosition.
Width
= (float)Math.Abs(breakPosition.X - breakPosition.Width);
Common\General\Chart.cs (9)
2123
_titlePosition.
Width
= chartAreasRectangle.Width - _titlePosition.Width;
2156
chartAreasRectangle.
Width
-= elementSpacing;
2198
areaPosition.
Width
= chartAreasRectangle.Width / areaColumns - elementSpacing;
3112
areaPlotPosition.
Width
-= area.PlotAreaPosition.X - areaPlotPosition.X;
3121
areaPlotPosition.
Width
-= areaPlotPosition.Right - area.PlotAreaPosition.Right;
3124
areaPlotPosition.
Width
= 5;
3149
rect.
Width
= areaPlotPosition.Width;
3163
rect.
Width
= rect.Width / area.Position.Width * 100f;
3211
areaPosition.
Width
= masterArea.Position.Width;
Common\General\ChartArea.cs (16)
1472
plottingRect.
Width
= (Position.Width / 100F) * InnerPlotPosition.Width;
1573
plottingRect.
Width
-= areaWallSize.Width;
1578
plottingRect.
Width
-= areaWallSize.Width;
1690
plottingRect.
Width
-= axisSize;
1694
plottingRect.
Width
-= axisSize;
1722
rectLabelSideSpacing.
Width
= (float)Math.Max(axis.labelFarOffset - Position.Right, rectLabelSideSpacing.Width);
1726
rectLabelSideSpacing.
Width
= (float)Math.Max(plottingRect.Width * 0.3f, rectLabelSideSpacing.Width);
1778
plottingRect.
Width
+= delta;
1786
plottingRect.
Width
+= (Position.Right - plottingRect.Right) - rectLabelSideSpacing.Width;
1801
plottingRect.
Width
-= 2f * xTitleSize;
1815
rect.
Width
= rect.Height;
1836
plottingRect.
Width
= 0f;
2092
plottingRect.
Width
= (Position.Width / 100F) * InnerPlotPosition.Width;
2154
currentAxis.paintAreaPosition.
Width
/= 2.0f;
2622
plotAreaRectAbs.
Width
-= 2f * labelsSize;
2629
plotAreaRectAbs.
Width
= 1.0f;
Common\General\ChartArea3D.cs (4)
713
position.
Width
+= areaSceneWallWidth.Width;
748
wallRect2D.
Width
= areaSceneWallWidth.Width;
772
wallRect2D.
Width
-= areaSceneWallWidth.Width;
1282
plottingRect.
Width
= (area.Position.Width / 100F) * area.InnerPlotPosition.Width;
Common\General\ChartGraphics.cs (36)
499
tempRect.
Width
= tempRect.Width / 2F;
718
imageScaleRect.
Width
= size.Width;
724
rect.
Width
= imageScaleRect.Width;
780
rect.
Width
= markerSize;
1040
diamondRect.
Width
= diamondSize;
1794
absPosition.
Width
= 1f;
1880
newRect.
Width
= absPosition.Height;
1936
newRect.
Width
= absPosition.Height;
1986
labelRect.
Width
= labelSize.Width;
2047
boundaryRect.
Width
+= boundaryRect.X;
2052
boundaryRect.
Width
= this._common.Width - boundaryRect.X;
2079
absPosition.
Width
= labelRect.Width - sizeChange;
2087
absPosition.
Width
= labelRect.Width - sizeChange;
2094
absPosition.
Width
= labelRect.Width - sizeChange;
2105
absPosition.
Width
= labelRect.Width - sizeChange;
2136
absPositionWithoutImage.
Width
-= imageAbsSize.Width;
2142
absPositionWithoutImage.
Width
= 1f;
2407
newRect.
Width
= absPosition.Height;
2847
gradientRect.
Width
*= 0.3f;
2874
gradientRect.
Width
= rect.Right - gradientRect.X;
2977
gradientRect.
Width
= (float)Math.Floor(gradientRect.Width / 3f);
3005
gradientRect.
Width
= (float)Math.Floor(gradientRect.Width / 3f);
3428
rect.
Width
= 1.0F;
3481
fillRect.
Width
= 2f * this._width;
3536
imageRect.
Width
= fillRect.Width;
3547
imageRect.
Width
= Math.Min(fillRect.Width, imageAbsSize.Width);
3664
rect.
Width
+= 1;
3761
offset.
Width
= absolute.Width;
3783
offset.
Width
= absolute.Width + 2;
4196
fillRect.
Width
+= 1;
4217
imageRect.
Width
= fillRect.Width;
4228
imageRect.
Width
= imageAbsSize.Width;
4513
imageRect.
Width
= fillRect.Width;
4524
imageRect.
Width
= imageSize.Width;
4656
relative.
Width
= rectangle.Width * 100F / ((float)(_width - 1));
4747
absolute.
Width
= rectangle.Width * (_width - 1) / 100F;
Common\General\ChartGraphics3D.cs (12)
715
pieTopRectangle.
Width
= topSecondRectPoint.X - topFirstRectPoint.X;
721
pieBottomRectangle.
Width
= bottomSecondRectPoint.X - bottomFirstRectPoint.X;
846
pieRectangle.
Width
= secondRectPoint.X - firstRectPoint.X;
972
pieRectangle.
Width
= secondRectPoint.X - firstRectPoint.X;
978
pieDoughnutRectangle.
Width
= pieRectangle.Width * doughnutRadius;
3254
gradientRect.
Width
= (float)Math.Floor(gradientRect.Width / 3f);
3280
bounds.
Width
+= 1f;
3310
gradientRect.
Width
= (float)Math.Floor(gradientRect.Width / 3f);
3336
bounds.
Width
+= 1f;
3511
rect.
Width
= markerSize;
3533
rect.
Width
= markerSize;
3634
rectNonRotated.
Width
= markerRelativeSize.Width;
Common\General\Label.cs (36)
1324
labelPosition.
Width
= size.Width;
1390
rectLabels.
Width
= labelSize;
1404
rectLabels.
Width
= labelSize;
1449
boundaryRect.
Width
-= _axis.totlaGroupingLabelsSize;
1453
boundaryRect.
Width
-= _axis.totlaGroupingLabelsSize;
1627
rect.
Width
= _axis.unRotatedLabelSize;
1632
rect.
Width
/= 2F;
1641
rect.
Width
= _axis.unRotatedLabelSize;
1646
rect.
Width
/= 2F;
1697
rect.
Width
= _axis.groupingLabelSizes[label.RowIndex - 1];
1706
rect.
Width
= _axis.groupingLabelSizes[label.RowIndex - 1];
1747
rect.
Width
= (float)Math.Max(fromPosition, toPosition) - rect.X;
1754
rect.
Width
*= 2F;
1833
rectLabels.
Width
= labelsAxis.labelSize;
1837
rectLabels.
Width
= (float)Math.Max(rectLabels.Width, rectLabels.X - labelsAxis.PlotAreaPosition.X);
1857
rectLabels.
Width
= labelsAxis.labelSize;
1861
rectLabels.
Width
= (float)Math.Max(rectLabels.Width, labelsAxis.PlotAreaPosition.Right - rectLabels.X);
2042
boundaryRect.
Width
-= _axis.totlaGroupingLabelsSize;
2046
boundaryRect.
Width
-= _axis.totlaGroupingLabelsSize;
2129
rect.
Width
= _axis.unRotatedLabelSize;
2135
rect.
Width
/= 2F;
2146
rect.
Width
= _axis.unRotatedLabelSize;
2152
rect.
Width
/= 2F;
2216
rect.
Width
= _axis.groupingLabelSizes[label.RowIndex - 1];
2225
rect.
Width
= _axis.groupingLabelSizes[label.RowIndex - 1];
2261
rect.
Width
= (float)Math.Max(fromPosition, toPosition) - rect.X;
2264
rect.
Width
= pixelSize.Width;
2272
rect.
Width
*= 2F;
2308
rect.
Width
= rectPoints[1].X - rect.X;
2318
rect.
Width
= rect.Right - rectPoints[1].X;
2332
rect.
Width
= rectPoints[2].X - rect.X;
2341
rect.
Width
= rightLabelsRect.Right - rect.X;
2349
rect.
Width
= rectPoints[1].X - rightLabelsRect.X;
2363
rect.
Width
= rectPoints[2].X - rect.X;
2373
rect.
Width
= rightLabelsRect.Right - rect.X;
2387
rect.
Width
= rectPoints[1].X - rightLabelsRect.X;
Common\General\Legend.cs (4)
1113
legendPosition.
Width
= legendSize.Width;
1176
chartAreasRectangle.
Width
-= legendPosition.Width + elementSpacing;
1196
chartAreasRectangle.
Width
-= legendPosition.Width + elementSpacing;
4443
rect.
Width
-= _itemColumnSpacingRel;
Common\General\Selection.cs (1)
2790
rect.
Width
= 0;
Common\General\SmartLabels.cs (4)
1414
labelPosition.
Width
= size.Width;
1430
labelPosition.
Width
+= 4f*pixelSize.Width;
1438
labelPosition.
Width
+= 4f*pixelSize.Width;
1447
labelPosition.
Width
+= 4f*pixelSize.Width;
Common\General\StripLine.cs (6)
368
rect.
Width
= plotAreaPosition.Width;
380
rect.
Width
= (float)Math.Max(pos1, pos2) - rect.X;
487
lineRect.
Width
= point2.X - point1.X;
494
lineRect.
Width
= relBorderWidth.Width;
563
rect.
Width
= 0f;
626
rect.
Width
= point2.X - rect.X;
Common\General\Title.cs (11)
1409
titlePosition.
Width
= titleSize.Width;
1565
absPosition.
Width
-= this.titleBorderSpacing;
1896
titlePosition.
Width
= titleSize.Width;
1907
titlePosition.
Width
= chartAreasRectangle.Right - titlePosition.X - elementSpacing;
1910
titlePosition.
Width
= 0;
1921
titlePosition.
Width
= chartAreasRectangle.Right - titlePosition.X - elementSpacing;
1924
titlePosition.
Width
= 0;
1941
chartAreasRectangle.
Width
-= titlePosition.Width + elementSpacing;
1955
chartAreasRectangle.
Width
-= titlePosition.Width + elementSpacing;
2123
prevChartAreasRectangle.
Width
+= titlePosition.Width + areaSpacing;
2132
prevChartAreasRectangle.
Width
+= titlePosition.Width + areaSpacing;
WinForm\Utilities\AccessibleObject.cs (1)
306
absolute.
Width
= bounds.Width * (this._chart.Width - 1) / 100F;
1149 references to Width
System.Drawing (51)
commonui\System\Drawing\Advanced\GPRECTF.cs (1)
32
Width = rect.
Width
;
commonui\System\Drawing\Advanced\GraphicsPath.cs (4)
777
AddArc(rect.X, rect.Y, rect.
Width
, rect.Height, startAngle, sweepAngle);
1135
rect.
Width
, rect.Height);
1201
AddEllipse(rect.X, rect.Y, rect.
Width
, rect.Height);
1656
srcRect.
Width
,
commonui\System\Drawing\Advanced\LinearGradientBrush.cs (2)
104
if (rect.
Width
== 0.0 || rect.Height == 0.0) {
192
if (rect.
Width
== 0.0 || rect.Height == 0.0) {
commonui\System\Drawing\Advanced\RectangleF.cs (22)
113
return new SizeF(
Width
, Height);
222
return X +
Width
;
243
/// Tests whether this <see cref='System.Drawing.RectangleF'/> has a <see cref='System.Drawing.RectangleF.
Width
'/> or a <see cref='System.Drawing.RectangleF.Height'/> of 0.
249
return (
Width
<= 0 )|| (Height <= 0);
268
(comp.
Width
== this.
Width
) &&
282
&& left.
Width
== right.
Width
307
x < this.X + this.
Width
&&
335
((rect.X + rect.
Width
) <= (this.X + this.
Width
)) &&
348
(((UInt32)
Width
<< 26) | ((UInt32)
Width
>> 6)) ^
397
this.Width = result.
Width
;
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
)) &&
441
float x2 = Math.Max(a.X + a.
Width
, b.X + b.
Width
);
470
return new GPRECTF(X, Y,
Width
, Height);
489
",Width=" +
Width
.ToString(CultureInfo.CurrentCulture) +
commonui\System\Drawing\Advanced\TextureBrush.cs (2)
125
dstRect.
Width
,
223
dstRect.
Width
,
commonui\System\Drawing\Bitmap.cs (2)
524
if (rect.
Width
== 0 || rect.Height == 0) {
533
rect.
Width
,
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);
3002
srcRect.
Width
,
3056
destRect.
Width
,
3060
srcRect.
Width
,
3132
srcRect.
Width
,
3190
srcRect.
Width
,
3978
rect.
Width
, rect.Height, combineMode);
4038
rect.
Width
, rect.Height, CombineMode.Intersect);
4379
rect.
Width
, rect.Height, out isVisible);
commonui\System\Drawing\Rectangle.cs (3)
302
(int)Math.Ceiling(value.
Width
),
314
(int)value.
Width
,
326
(int)Math.Round(value.
Width
),
commonui\System\Drawing\Region.cs (1)
870
rect.
Width
, rect.Height,
System.Web.DataVisualization (548)
Common\Annotation\AnnotationBase.cs (8)
2114
handlePosition = new PointF(rect.X + rect.
Width
/ 2f, rect.Y);
2126
handlePosition = new PointF(rect.X + rect.
Width
/ 2f, rect.Bottom);
2318
if(!double.IsNaN(position.
Width
))
2320
this.Width = position.
Width
;
2482
relativeWidth = contentPosition.
Width
;
2910
double newWidth = position.
Width
;
2986
!float.IsNaN(position.
Width
) &&
2989
newRight = horizAxis.PositionToValue(anchorPoint.X + position.
Width
, false);
Common\Annotation\CalloutAnnotation.cs (16)
658
if(rectanglePosition.
Width
< 0)
661
rectanglePosition.Width = -rectanglePosition.
Width
;
817
if (rectanglePositionAbs.
Width
<= 0 || rectanglePositionAbs.Height <= 0)
832
float radius = Math.Min(rectanglePositionAbs.
Width
, rectanglePositionAbs.Height);
937
float size = Math.Min(rectanglePositionAbs.
Width
, rectanglePositionAbs.Height);
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);
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);
1117
rectanglePosition.X + rectanglePosition.
Width
/ 2f,
1122
new SizeF(rectanglePosition.
Width
, rectanglePosition.Height));
1502
lineSecondPoint.X = rectanglePosition.X + rectanglePosition.
Width
/ 2f;
1677
matrix.Scale(position.
Width
/ _cloudBounds.
Width
, position.Height / _cloudBounds.Height);
1788
matrix.Scale(position.
Width
/ _cloudBounds.
Width
, position.Height / _cloudBounds.Height);
Common\Annotation\GroupAnnotation.cs (2)
927
if(selectionRect.
Width
< 0)
930
selectionRect.Width = -selectionRect.
Width
;
Common\Annotation\ImageAnnotation.cs (2)
532
if(rectanglePosition.
Width
< 0)
535
rectanglePosition.Width = -rectanglePosition.
Width
;
Common\Annotation\PolygonAnnotation.cs (4)
573
if(rectanglePosition.
Width
< 0)
576
rectanglePosition.Width = -rectanglePosition.
Width
;
597
float groupScaleX = rectanglePositionAbs.
Width
/ 100.0f;
881
movingDistance.Width /= startMovePositionRel.
Width
/ 100.0f;
Common\Annotation\RectangleAnnotation.cs (5)
396
if(rectanglePosition.
Width
< 0)
399
rectanglePosition.Width = -rectanglePosition.
Width
;
634
if(rectanglePosition.
Width
< 0)
637
rectanglePosition.Width = -rectanglePosition.
Width
;
658
if(absRectanglePosition.
Width
> 30f &&
Common\Annotation\TextAnnotation.cs (10)
426
if(textPosition.
Width
< 0)
429
textPosition.Width = -textPosition.
Width
;
523
if(textPosition.
Width
> 25f)
525
spacingScaleX = textPosition.
Width
/ 50f;
536
textPositionWithSpacing.Width -= (textSpacing.
Width
+ textSpacing.X) * spacingScaleX;
568
textPositionWithSpacing.Width = textPosition.
Width
;
569
textPositionWithSpacing.Width -= textSpacing.
Width
/2f + textSpacing.X / 2f;
646
textActualPosition.X += textPositionWithSpacing.
Width
- textSize.Width;
652
textActualPosition.X += (textPositionWithSpacing.
Width
- textSize.Width) / 2f;
980
contentSize.Width += (textSpacing.X + textSpacing.
Width
) * spacingScaleX;
Common\Borders3D\EmbedBorder.cs (11)
687
if(rect.
Width
> 0 && rect.Height > 0 )
863
areasRect.Width -= (float)Math.Min(areasRect.
Width
, relSizeLeftTop.Width + relSizeRightBottom.Width);
869
if(areasRect.
Width
> 100f - areasRect.Right)
940
radius = (float)Math.Min(radius, rect.
Width
/2f);
1002
screwRect.Height = screwRect.
Width
;
1006
screwRect.X = shadowRect.Right - offset - screwRect.
Width
;
1010
screwRect.X = shadowRect.Right - offset - screwRect.
Width
;
1032
shadowRect.
Width
+ 0.5f*radius,
1062
shadowRect.
Width
- .2f*radius,
1093
graph.DrawEllipse(screwPen, rect.X, rect.Y, rect.
Width
, rect.Height);
1096
graph.DrawEllipse(screwPen, rect.X + 1 * resolution / 96.0f, rect.Y + 1 * resolution / 96.0f, rect.
Width
, rect.Height);
Common\Borders3D\EmbossBorder.cs (5)
120
areasRect.Width -= (float)Math.Min(areasRect.
Width
, borderSize.Width * 2.5f);
129
if(areasRect.X + areasRect.
Width
> 100f)
131
areasRect.X -= 100f - areasRect.
Width
;
195
radius = (float)Math.Min(radius, rect.
Width
/2f);
251
shadowRect.
Width
+ radius - radius*0.25f,
Common\ChartTypes\BarChart.cs (22)
648
if( !(yValueOutside && yValueStartOutside && rectSize.
Width
== 0f) )
903
if (rectLabel.
Width
< 0.001f &&
927
rectLabel.Width -= (float)Math.Min(rectLabel.
Width
, markerSize.Width / 2F);
930
rectLabel.X += (float)Math.Min(rectLabel.
Width
, markerSize.Width / 2F);
952
rectLabel.Width -= (float)Math.Min(rectLabel.
Width
, markerSize.Width / 2F);
955
rectLabel.X += (float)Math.Min(rectLabel.
Width
, markerSize.Width / 2F);
973
valueTextSize.Width > rectLabel.
Width
- 1)
977
prevWidth = rectLabel.
Width
;
995
valueTextSize.Width > rectLabel.
Width
- 1 &&
996
prevWidth > rectLabel.
Width
)
1028
if (rectLabel.
Width
> 0 && rectLabel.Height > 0)
1049
labelBackPosition.X = rectLabel.X + (rectLabel.
Width
- valueTextSize.Width) / 2f;
1532
if(rectSize.Height == 0f || rectSize.
Width
== 0f)
1946
rectLabel.Width -= (float)Math.Min(rectLabel.
Width
, markerSize.Width / 2F);
1949
rectLabel.X += (float)Math.Min(rectLabel.
Width
, markerSize.Width / 2F);
1971
rectLabel.Width -= (float)Math.Min(rectLabel.
Width
, markerSize.Width / 2F);
1974
rectLabel.X += (float)Math.Min(rectLabel.
Width
, markerSize.Width / 2F);
1992
valueTextSize.Width > rectLabel.
Width
)
1996
prevWidth = rectLabel.
Width
;
2014
valueTextSize.Width > rectLabel.
Width
- 1 &&
2015
prevWidth > rectLabel.
Width
)
2042
SizeF size = graph.MeasureStringRel(text, point.Font, new SizeF(rectLabel.
Width
, rectLabel.Height), format);
Common\ChartTypes\BoxPlotChart.cs (2)
540
float dashWidth = (rectSize.
Width
- relBorderWidth.Width * 2) / 9f;
1320
float dashWidth = rectSize.
Width
/ 9f;
Common\ChartTypes\ColumnChart.cs (6)
850
if(rectSize.
Width
< 0)
865
rectSize.
Width
> 0f)
1105
if(intersection.Height <= 0f || intersection.
Width
<= 0f)
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\FastLineChart.cs (1)
650
if (pathBounds.
Width
<= 2.0 || pathBounds.Height <= 2.0)
Common\ChartTypes\FastPointChart.cs (4)
522
(int)Math.Round(markerBounds.
Width
, 0),
585
points[1].X = markerBounds.X + markerBounds.
Width
/2F;
589
points[3].X = markerBounds.X + markerBounds.
Width
/2F;
606
points[1].X = markerBounds.X + markerBounds.
Width
/2F;
Common\ChartTypes\FunnelChart.cs (29)
566
startWidth = (float)(plotAreaPositionAbs.
Width
* (GetYValue(series.Points[pointIndex-1], pointIndex-1) / this._yValueMax));
567
endWidth = (float)(plotAreaPositionAbs.
Width
* (GetYValue(series.Points[pointIndex], pointIndex) / this._yValueMax));
571
plotAreaPositionAbs.X + plotAreaPositionAbs.
Width
/ 2f,
588
plotAreaPositionAbs.X + plotAreaPositionAbs.
Width
/ 2f - this._funnelNeckSize.Width / 2f,
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;
1160
if(boundsRect.
Width
== 0f)
1511
!float.IsNaN(labelInfo.Position.
Width
) &&
1732
if( (position.Right - plotAreaPositionAbs.Right) > requiredSpacing.
Width
)
1756
requiredSpacing.
Width
> 1f ||
1784
float plotAreaCenterXAbs = plotAreaPositionAbs.X + plotAreaPositionAbs.
Width
/ 2f;
2192
plotAreaPosition.Width -= plotAreaSpacing.X + plotAreaSpacing.
Width
;
2211
float topSpacing = (float)Math.Abs( (plotAreaPositionAbs.
Width
/ 2f) * Math.Sin(this._rotation3D / 180F * Math.PI) );
2212
float bottomSpacing = (float)Math.Abs( (plotAreaPositionAbs.
Width
/ 2f) * Math.Sin(this._rotation3D / 180F * Math.PI) );
2425
if(neckSize.Width > this.PlotAreaPosition.
Width
/2f)
2427
neckSize.Width = this.PlotAreaPosition.
Width
/2f;
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;
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 (86)
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 );
786
if(rectangle.
Width
< 0f || rectangle.Height < 0f)
792
SizeF absoluteSize = graph.GetAbsoluteSize( new SizeF( rectangle.
Width
, rectangle.Height ) );
799
PointF middlePoint = new PointF( rectangle.X + rectangle.
Width
/ 2, rectangle.Y + rectangle.Height / 2 );
807
rectangle.X += rectangle.
Width
* ( 1 - _sizeCorrection ) / 2;
809
rectangle.Width = rectangle.
Width
* _sizeCorrection;
818
rect.Width = rect.
Width
/ area.Position.Width * 100f;
820
area.InnerPlotPosition.SetPositionNoAuto(rect.X, rect.Y, rect.
Width
, rect.Height);
871
double xComponent = Math.Cos( midAngle * Math.PI / 180 ) * rectangle.
Width
/ 10;
898
RectangleF shadowRect = new RectangleF( rectangle.X, rectangle.Y, rectangle.
Width
, rectangle.Height );
1034
point.positionRel.X = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * rectangle.
Width
* expShift / 2 + middlePoint.X;
1397
rect.Width = labelRectOver.
Width
;
1418
labelBackPosition.X = rect.X + (rect.
Width
- valueTextSize.Width) / 2f;
1818
doughnutRect.X = rectangle.X + rectangle.
Width
* (1 - (100 - doughnutRadius) / 100) / 2;
1820
doughnutRect.Width = rectangle.
Width
* (100 - doughnutRadius) / 100;
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;
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 );
2555
SizeF absoluteSize = graph.GetAbsoluteSize( new SizeF( rectangle.
Width
, rectangle.Height ) );
2562
PointF middlePoint = new PointF( rectangle.X + rectangle.
Width
/ 2, rectangle.Y + rectangle.Height / 2 );
2584
rectangle.X += rectangle.
Width
* ( 1 - sizeCorrection ) / 2;
2586
rectangle.Width = rectangle.
Width
* sizeCorrection;
2596
double xComponent = Math.Cos( midAngle * Math.PI / 180 ) * rectangle.
Width
/ 10;
2608
rect.Width = rect.
Width
/ 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,
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,
3240
rectangle.Inflate( -rectangle.
Width
* (1 - doughnutRadius) / 2F, -rectangle.Height * (1 - doughnutRadius) / 2F);
4949
position.X = _innerPlotPosition.Right + _chartAreaPosition.
Width
* this._labelLineSize;
4953
position.X = _innerPlotPosition.Left - _chartAreaPosition.
Width
* this._labelLineSize;
4959
angle = (float)Math.Atan( ( position.Y - _innerPlotPosition.Top - _innerPlotPosition.Height / 2) / ( position.X - _innerPlotPosition.Left - _innerPlotPosition.
Width
/ 2 ));
4969
correct = (float)(_innerPlotPosition.
Width
* 0.4 - _innerPlotPosition.
Width
* 0.4 / Math.Cos( angle ));
5327
float oldWidth = pieRectangle.
Width
;
5331
pieRectangle.Width = pieRectangle.
Width
- 2F * maxSize - 2 * pieRectangle.
Width
* labelLineSize;
5336
if( pieRectangle.
Width
< oldWidth * (float)this.MinimumRelativePieSize( area ) )
5348
if( oldWidth * 0.8F < pieRectangle.
Width
)
5353
pieRectangle.X = pieRectangle.X + ( oldWidth - pieRectangle.
Width
) / 2F;
5354
pieWidth = pieRectangle.
Width
/ oldWidth * pieWidth;
5516
labelBackPosition.X = labelPosition.X + (labelPosition.
Width
- valueTextSize.Width) / 2f;
Common\ChartTypes\PointAndFigureChart.cs (1)
820
position.Width = rectSize.
Width
;
Common\ChartTypes\StackedBarChart.cs (3)
1078
labelPosition.X = rectangle.X + rectangle.
Width
/ 2f;
1628
if(rectSize.Height == 0f || rectSize.
Width
== 0f)
1955
SizeF size = graph.MeasureStringRel(text, point.Font, new SizeF(rectLabel.
Width
, rectLabel.Height), format);
Common\ChartTypes\StackedColumnChart.cs (4)
1158
labelPosition.X = rectangle.X + rectangle.
Width
/ 2f;
1664
if(rectSize.
Width
< 0)
1668
if(rectSize.Height == 0f || rectSize.
Width
== 0f)
1874
labelPosition.X = rectangle.X + rectangle.
Width
/ 2f;
Common\General\Axis.cs (31)
1851
_titlePosition.X += titleSizeWithoutSpacing / 2f - _titlePosition.
Width
/ 2f;
1894
_titlePosition.X += titleSizeWithoutSpacing / 2f - _titlePosition.
Width
/ 2f;
1970
if (transformedTitlePosition.
Width
< 0)
1972
transformedTitlePosition.Width = Math.Abs(transformedTitlePosition.
Width
);
1973
transformedTitlePosition.X -= transformedTitlePosition.
Width
;
2008
center.X = titlePosition.X + titlePosition.
Width
/ 2F;
2043
if (rect.
Width
!= rect.Height)
2045
if (rect.
Width
> rect.Height)
2047
rect.X += (rect.
Width
- rect.Height) / 2f;
2052
rect.Y += (rect.Height - rect.
Width
) / 2f;
2053
rect.Height = rect.
Width
;
2080
PointF endPoint = new PointF(rect.X + rect.
Width
/ 2f, rect.Y);
2144
if (rect.
Width
!= rect.Height)
2146
if (rect.
Width
> rect.Height)
2148
rect.X += (rect.
Width
- rect.Height) / 2f;
2153
rect.Y += (rect.Height - rect.
Width
) / 2f;
2154
rect.Height = rect.
Width
;
2182
if (rect.
Width
>= 1f && rect.Height > 1)
3416
maxTitlesize = (plotArea.
Width
/ 100F) * (Axis.maxAxisTitleSize / axesNumber);
3548
this.markSize = Math.Min(this.markSize, (plotArea.
Width
/ 100F) * (Axis.maxAxisMarkSize / axesNumber));
3600
this.markSize = Math.Min(this.markSize, (plotArea.
Width
/ 100F) * (Axis.maxAxisMarkSize / axesNumber));
3640
maxLabelSize = plotArea.
Width
* (_maximumAutoSize / 100f);
5350
if (Math.Round(axisLabelSize.Width) >= Math.Round(rect.
Width
) &&
5443
rect.Height = rect.
Width
;
5551
labelPosition.X = labelPosition.X + labelPosition.
Width
/ 2f - width / 2f;
5566
if (width >= rect.
Width
&& checkWidth)
5577
if (width >= rect.
Width
&& checkWidth)
5590
if (width >= rect.
Width
* 2F && checkWidth)
5601
if (width >= rect.
Width
* 2F && checkWidth)
5679
rect.Height = rect.
Width
;
5699
rect.Width = (float)Math.Ceiling(rect.
Width
);
Common\General\AxisScale.cs (2)
1832
paintAreaPositionRight = paintAreaPosition.X + paintAreaPosition.
Width
;
1836
paintChartAreaSize = paintAreaPosition.
Width
;
Common\General\AxisScaleSegments.cs (4)
365
if(breakPosition.
Width
> 0f && breakPosition.Height > 0f)
418
size = Math.Min(size, breakPosition.
Width
);
485
if(breakPosition.
Width
> 0f && breakPosition.Height > 0f)
718
breakPosition.Width = (float)Math.Abs(breakPosition.X - breakPosition.
Width
);
Common\General\Chart.cs (11)
2123
_titlePosition.Width = chartAreasRectangle.
Width
- _titlePosition.
Width
;
2198
areaPosition.Width = chartAreasRectangle.
Width
/ areaColumns - elementSpacing;
2200
areaPosition.X = chartAreasRectangle.X + column * (chartAreasRectangle.
Width
/ areaColumns) + elementSpacing;
2210
area.Position.SetPositionNoAuto(areaPosition.X, areaPosition.Y, areaPosition.
Width
, areaPosition.Height);
3122
if(areaPlotPosition.
Width
< 5)
3149
rect.Width = areaPlotPosition.
Width
;
3158
area.PlotAreaPosition.SetPositionNoAuto(rect.X, rect.Y, rect.
Width
, rect.Height);
3163
rect.Width = rect.
Width
/ 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 (23)
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);
1708
if (Math.Abs(offset) > plottingRect.
Width
* 0.3f)
1710
offset = plottingRect.
Width
* 0.3f;
1720
if ((axis.labelFarOffset - Position.Right) < plottingRect.
Width
* 0.3f)
1722
rectLabelSideSpacing.Width = (float)Math.Max(axis.labelFarOffset - Position.Right, rectLabelSideSpacing.
Width
);
1726
rectLabelSideSpacing.Width = (float)Math.Max(plottingRect.
Width
* 0.3f, rectLabelSideSpacing.
Width
);
1784
if (rectLabelSideSpacing.
Width
> 0 && rectLabelSideSpacing.
Width
> Position.Right - plottingRect.Right)
1786
plottingRect.Width += (Position.Right - plottingRect.Right) - rectLabelSideSpacing.
Width
;
1812
if(rect.
Width
> rect.Height)
1814
rect.X += (rect.
Width
- rect.Height) / 2f;
1819
rect.Y += (rect.Height - rect.
Width
) / 2f;
1820
rect.Height = rect.
Width
;
1825
this.circularCenter = new PointF(plottingRect.X + plottingRect.
Width
/2f, plottingRect.Y + plottingRect.Height/2f);
1834
if(plottingRect.
Width
< 0f)
1846
(float)Math.Round(plottingRect.
Width
/ (Position.Width / 100F), 5),
2158
currentAxis.paintAreaPositionRight = currentAxis.paintAreaPosition.X + currentAxis.paintAreaPosition.
Width
;
2160
currentAxis.paintChartAreaSize = currentAxis.paintAreaPosition.
Width
;
2603
labelsSizeEstimate = (float)Math.Min(labelsSizeEstimate * 1.1f, plotAreaRectAbs.
Width
/ 5f);
2618
labelsSize = (float)Math.Min(labelsSize, plotAreaRectAbs.
Width
/ 2.5f);
2627
if(plotAreaRectAbs.
Width
< 1.0f)
Common\General\ChartArea3D.cs (2)
1399
axis.interval3DCorrection = size / plottingRect.
Width
;
1404
axis.interval3DCorrection = size / plottingRect.
Width
;
Common\General\ChartGraphics.cs (149)
454
if( rectangle.Height == 0 || rectangle.
Width
== 0 )
474
angle = (float)(Math.Atan(rectangle.
Width
/ rectangle.Height)* 180 / Math.PI);
478
angle = (float)(180 - Math.Atan(rectangle.
Width
/ rectangle.Height)* 180 / Math.PI);
486
RectangleF tempRect = new RectangleF(rectangle.X,rectangle.Y,rectangle.
Width
,rectangle.Height);
499
tempRect.Width = tempRect.
Width
/ 2F;
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));
722
rect.X = point.X - imageScaleRect.
Width
/ 2F;
724
rect.Width = imageScaleRect.
Width
;
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);
860
PointF focusScale = new PointF(1 - 2f * shadowSize / rect.
Width
, 1 - 2f * shadowSize / rect.Height);
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));
971
PointF focusScale = new PointF(1 - 2f * shadowSize / rect.
Width
, 1 - 2f * shadowSize / rect.Height);
1008
points[1].X = rect.X + rect.
Width
/ 2F;
1012
points[3].X = rect.X + rect.
Width
/ 2F;
1063
points[1].X = rect.X + rect.
Width
/ 2F;
1100
PointF focusScale = new PointF(1 - 2f * shadowSize / rect.
Width
, 1 - 2f * shadowSize / rect.Height);
1500
rotationPoint = new PointF(backPositionAbs.X + backPositionAbs.
Width
/2f, backPositionAbs.Y + backPositionAbs.Height/2f);
1543
backPositionAbs.
Width
,
1783
if (position.
Width
== 0 || position.Height == 0)
1792
if (absPosition.
Width
< 1f)
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;
1878
newRect.Y = absPosition.Y - absPosition.
Width
/ 2F;
1879
newRect.Height = absPosition.
Width
;
1887
newRect.X -= newRect.
Width
;
1905
newRect.X -= newRect.
Width
;
1928
rotationPoint.X = absPosition.X + absPosition.
Width
/ 2F;
1934
newRect.Y = rotationPoint.Y - absPosition.
Width
/ 2F;
1935
newRect.Height = absPosition.
Width
;
1998
labelRect.X = absPosition.X + absPosition.
Width
/ 2F - labelSize.Width / 2F;
2073
float sizeChange = truncateRect.
Width
/ (float)Math.Cos(Math.Abs(angle) / 180F * Math.PI);
2079
absPosition.Width = labelRect.
Width
- sizeChange;
2087
absPosition.Width = labelRect.
Width
- sizeChange;
2094
absPosition.Width = labelRect.
Width
- sizeChange;
2105
absPosition.Width = labelRect.
Width
- sizeChange;
2140
if (absPositionWithoutImage.
Width
< 1f)
2290
absPosition.X + (absPosition.
Width
- imageAbsSize.Width - labelSize.Width) / 2,
2310
imageRect.X = absPosition.X + (absPosition.
Width
- imageAbsSize.Width - labelSize.Width) / 2;
2398
PointF centerNotRound = new PointF(absPosition.X + absPosition.
Width
/2F, absPosition.Y + absPosition.Height/2F);
2405
newRect.Y = centerNotRound.Y - absPosition.
Width
/ 2F;
2406
newRect.Height = absPosition.
Width
;
2553
Point center = Point.Round(new PointF(absPosition.X + absPosition.
Width
/2F, absPosition.Y + absPosition.Height/2F));
2716
if(layoutRectangle.
Width
== 0 || layoutRectangle.Height == 0)
2767
if(layoutRectangle.
Width
== 0 || layoutRectangle.Height == 0)
2838
if(rect.
Width
> 0 && rect.Height > 0)
2853
if(gradientRect.
Width
> 0 && gradientRect.Height > 0)
2873
gradientRect.X += gradientRect.
Width
+ 1f;
2903
if(rect.
Width
< 6f || rect.Height < 6f)
2907
else if(rect.
Width
< 15f || rect.Height < 15f)
2958
if(rect.
Width
< 6f || rect.Height < 6f)
2962
else if(rect.
Width
< 15f || rect.Height < 15f)
2976
gradientRect.X = gradientRect.Right - (float)Math.Floor(gradientRect.
Width
/ 3f);
2977
gradientRect.Width = (float)Math.Floor(gradientRect.
Width
/ 3f);
2979
if(gradientRect.
Width
> 0 && gradientRect.Height > 0)
3005
gradientRect.Width = (float)Math.Floor(gradientRect.
Width
/ 3f);
3029
float size = (isVertical) ? rect.
Width
/ 2f : rect.Height / 2f;
3034
if(!isVertical && 2f * size > rect.
Width
)
3036
size = rect.
Width
/2f;
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);
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,
3116
rect.X + rect.
Width
/2f,
3118
rect.X + rect.
Width
/2f,
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);
3426
if( rect.
Width
< 1.0F && rect.
Width
> 0.0F )
3448
fillRect = new RectangleF( rect.X, rect.Y, rect.
Width
, rect.Height);
3456
fillRect = new RectangleF( rect.X, rect.Y, rect.
Width
, rect.Height);
3464
rect.
Width
- borderWidth * 2f + 1,
3479
if(fillRect.
Width
> 2f * this._width)
3536
imageRect.Width = fillRect.
Width
;
3547
imageRect.Width = Math.Min(fillRect.
Width
, imageAbsSize.Width);
3551
if(imageRect.
Width
< fillRect.
Width
)
3557
imageRect.X = fillRect.Right - imageRect.
Width
;
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)),
3597
(backImageWrapMode == ChartImageWrapMode.Unscaled) ? imageRect.
Width
* image.Width / imageAbsSize.Width : image.Width,
3669
this.DrawRectangle( _pen, rect.X, rect.Y, rect.
Width
, rect.Height );
3723
if(rect.Height == 0 || rect.
Width
== 0 || shadowOffset == 0)
3761
offset.Width = absolute.
Width
;
3783
offset.Width = absolute.
Width
+ 2;
3789
radius = (float)Math.Min(radius, offset.
Width
/4f);
3794
radius = offset.
Width
/2f;
3799
if(circular && offset.
Width
!= offset.Height)
3801
float radiusX = offset.
Width
/2f;
3830
shadowBrush.CenterPoint = new PointF(offset.X + offset.
Width
/2f, offset.Y + offset.Height/2f);
3833
PointF focusScale = new PointF(1-2f*shadowOffset/offset.
Width
, 1-2f*shadowOffset/offset.Height);
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 );
4217
imageRect.Width = fillRect.
Width
;
4232
if(imageRect.
Width
< fillRect.
Width
)
4238
imageRect.X = fillRect.Right - imageRect.
Width
;
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 );
4513
imageRect.Width = fillRect.
Width
;
4528
if(imageRect.
Width
< fillRect.
Width
)
4534
imageRect.X = fillRect.Right - imageRect.
Width
;
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)),
4656
relative.Width = rectangle.
Width
* 100F / ((float)(_width - 1));
4747
absolute.Width = rectangle.
Width
* (_width - 1) / 100F;
4824
shadowBrush.CenterPoint = new PointF(rect.X + rect.
Width
/2f, rect.Y + rect.Height/2f);
4827
PointF focusScale = new PointF(1-shadowScale*radius/rect.
Width
, 1-shadowScale*radius/rect.Height);
4908
if(_common == null || borderSkin.SkinStyle == BorderSkinStyle.None || absRect.
Width
== 0 || absRect.Height == 0)
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 );
5135
float minSize = (float)Math.Min(position.
Width
, position.Height);
5155
gradientPath.X + position.
Width
* doughnutRadius /200 - 1 - shadowSize,
5157
gradientPath.
Width
- position.
Width
* doughnutRadius / 100 + 2 + 2f * shadowSize,
5161
path.AddArc( gradientPath.X, gradientPath.Y, gradientPath.
Width
, gradientPath.Height, startAngle + sweepAngle, -sweepAngle );
5192
float minSize = (float)Math.Min(position.
Width
, position.Height);
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 );
5238
innerPosition.Inflate(- position.
Width
* doughnutRadius / 200f + shadowSize, -position.Height * doughnutRadius / 200f + shadowSize);
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 );
5257
blend.Positions[1] = shadowSize / (innerPosition.
Width
/ 2f);
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 (31)
725
double angleCorrection = pieTopRectangle.Height / pieTopRectangle.
Width
;
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);
850
double angleCorrection = pieRectangle.Height / pieRectangle.
Width
;
865
path.AddArc(pieRectangle.X, pieRectangle.Y, pieRectangle.
Width
, pieRectangle.Height, startAngle, sweepAngle);
975
pieDoughnutRectangle.X = pieRectangle.X + pieRectangle.
Width
* (1F - doughnutRadius) / 2F;
978
pieDoughnutRectangle.Width = pieRectangle.
Width
* doughnutRadius;
982
double angleCorrection = pieRectangle.Height / pieRectangle.
Width
;
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);
2939
if(position.
Width
== 0.0 && currentSurface != SurfaceNames.Left && currentSurface != SurfaceNames.Right)
3090
float size = (isVertical) ? positionAbs.
Width
/ 2f : positionAbs.Height / 2f;
3095
if(!isVertical && 2f * size > positionAbs.
Width
)
3097
size = positionAbs.
Width
/2f;
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 );
3234
if(positionAbs.
Width
< 6f || positionAbs.Height < 6f)
3238
else if(positionAbs.
Width
< 15f || positionAbs.Height < 15f)
3253
gradientRect.X = gradientRect.Right - (float)Math.Floor(gradientRect.
Width
/ 3f);
3254
gradientRect.Width = (float)Math.Floor(gradientRect.
Width
/ 3f);
3284
if(bounds.
Width
> 0f && bounds.Height > 0f)
3310
gradientRect.Width = (float)Math.Floor(gradientRect.
Width
/ 3f);
3340
if(bounds.
Width
> 0f && bounds.Height > 0f)
3360
if(positionAbs.
Width
< 6f || positionAbs.Height < 6f)
3364
else if(positionAbs.
Width
< 15f || positionAbs.Height < 15f)
3564
path.AddEllipse(rect.X + shadowSize - 1, rect.Y + shadowSize - 1, rect.
Width
+ 2, rect.Height + 2);
3577
PointF focusScale = new PointF(1 - 2f * shadowSize / rect.
Width
, 1 - 2f * shadowSize / rect.Height);
3599
rectLightCenter.Inflate(rectLightCenter.
Width
/ 4f, rectLightCenter.Height / 4f);
3984
float middleXValue = position.X + position.
Width
/ 2f;
4163
if(boundsRect.Height > 0 && boundsRect.
Width
> 0)
4175
boundsRectMiddlePoint.X = boundsRect.X + boundsRect.
Width
/2f;
Common\General\Label.cs (12)
1635
rect.X += rect.
Width
;
1649
rect.X += rect.
Width
;
1753
rect.X -= rect.
Width
/ 2F;
1837
rectLabels.Width = (float)Math.Max(rectLabels.
Width
, rectLabels.X - labelsAxis.PlotAreaPosition.X);
1844
rectLabels.X -= rectLabels.
Width
;
1861
rectLabels.Width = (float)Math.Max(rectLabels.
Width
, labelsAxis.PlotAreaPosition.Right - rectLabels.X);
2138
rect.X += rect.
Width
;
2155
rect.X += rect.
Width
;
2262
if (rect.
Width
< pixelSize.Width)
2271
rect.X -= rect.
Width
/ 2F;
2325
rectPoints[1] = new Point3D(rect.X + rect.
Width
/ 2f, rect.Bottom, labelsZPosition);
2356
rectPoints[1] = new Point3D(rect.X + rect.
Width
/ 2f, rect.Y, labelsZPosition);
Common\General\Legend.cs (12)
1090
SizeF maxSize = new SizeF(chartAreasRectangle.
Width
- 2*elementSpacing, chartAreasRectangle.Height - 2*elementSpacing);
1133
legendPosition.X = chartAreasRectangle.X + (chartAreasRectangle.
Width
- legendSize.Width) / 2F;
1153
legendPosition.X = chartAreasRectangle.X + (chartAreasRectangle.
Width
- legendSize.Width) / 2F;
1176
chartAreasRectangle.Width -= legendPosition.
Width
+ elementSpacing;
1196
chartAreasRectangle.Width -= legendPosition.
Width
+ elementSpacing;
1199
this.Position.SetPositionNoAuto(legendPosition.X, legendPosition.Y, legendPosition.
Width
, legendPosition.Height);
4581
new RectangleF(rect.Left, rect.Bottom - 1f, rect.
Width
, 0f),
4620
new RectangleF(rect.Left, rect.Bottom - 2f, rect.
Width
, 1f),
4926
float areaSpacing = Math.Min((chartAreasRectangle.Height/100F) * elementSpacing, (chartAreasRectangle.
Width
/100F) * elementSpacing);
4971
legendPosition.X -= legendPosition.
Width
;
4983
legend.Position.SetPositionNoAuto(legendPosition.X, legendPosition.Y, legendPosition.
Width
, legendPosition.Height);
5028
float areaSpacing = Math.Min((legendPlottingRectangle.Height/100F) * elementSpacing, (legendPlottingRectangle.
Width
/100F) * elementSpacing);
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 (2)
245
_translateX = innerPlotRectangle.X+innerPlotRectangle.
Width
/2;
248
float width = innerPlotRectangle.
Width
;
Common\General\Selection.cs (15)
2772
list.Add(new PointF(rect.Left + rect.
Width
/ 2, rect.Top));
2774
list.Add(new PointF(rect.Right - rect.
Width
/ 2, rect.Bottom));
2789
rect.Offset(rect.
Width
/ 2, 0);
3199
if (rect.
Width
> 0 && rect.Height > 0)
3206
else if (rect.
Width
> 0)
3219
if (rect.
Width
> 0)
3223
if (rect.
Width
> 30)
3225
list.Add(new PointF(rect.Left + rect.
Width
/ 2, rect.Top));
3236
if (rect.
Width
> 30)
3238
list.Add(new PointF(rect.Left + rect.
Width
/ 2, rect.Bottom));
3248
else if (rect.
Width
> 0)
3252
if (rect.
Width
> 30)
3254
list.Add(new PointF(rect.Left + rect.
Width
/ 2, rect.Top));
3342
if (rect.
Width
> rect.Height)
3346
else if (rect.
Width
< rect.Height)
Common\General\SmartLabels.cs (4)
939
graph.DrawRectangle(calloutPen, labelRectAbs.X, labelRectAbs.Y, labelRectAbs.
Width
, labelRectAbs.Height);
1077
labelPosition.X + labelPosition.
Width
/2f,
1115
labelPosition.X + labelPosition.
Width
/2f,
1174
labelPosition.X + labelPosition.
Width
/ 2f,
Common\General\StripLine.cs (2)
368
rect.Width = plotAreaPosition.
Width
;
386
if(rect.
Width
> 0 && rect.Height > 0)
Common\General\Title.cs (24)
1366
if(titlePosition.
Width
== 0 || titlePosition.Height == 0)
1370
(titlePosition.
Width
== 0) ? Common.ChartPicture.Width : titlePosition.
Width
,
1407
if(titlePosition.
Width
== 0)
1414
titlePosition.X = titlePosition.X - titlePosition.
Width
;
1420
titlePosition.X = titlePosition.X - titlePosition.
Width
/2f;
1509
exactTitleRect.X = titlePosition.Right - exactTitleRect.
Width
;
1516
titlePosition.
Width
/ 2f -
1517
exactTitleRect.
Width
/ 2f;
1649
center.X = absPosition.X + absPosition.
Width
/ 2F;
1849
frameTitlePosition.
Width
- 2f * elementSpacing,
1857
SizeF layoutArea = new SizeF(chartAreasRectangle.
Width
, chartAreasRectangle.Height);
1908
if(titlePosition.
Width
< 0)
1922
if(titlePosition.
Width
< 0)
1941
chartAreasRectangle.Width -= titlePosition.
Width
+ elementSpacing;
1955
chartAreasRectangle.Width -= titlePosition.
Width
+ elementSpacing;
1972
this.Position.SetPositionNoAuto(titlePosition.X, titlePosition.Y, titlePosition.
Width
, titlePosition.Height);
2065
float areaSpacing = Math.Min((chartAreasRectangle.Height/100F) * elementSpacing, (chartAreasRectangle.
Width
/100F) * elementSpacing);
2121
titlePosition.X -= titlePosition.
Width
;
2122
prevChartAreasRectangle.X -= titlePosition.
Width
+ areaSpacing;
2123
prevChartAreasRectangle.Width += titlePosition.
Width
+ areaSpacing;
2132
prevChartAreasRectangle.Width += titlePosition.
Width
+ areaSpacing;
2137
title.Position.SetPositionNoAuto(titlePosition.X, titlePosition.Y, titlePosition.
Width
, titlePosition.Height);
2198
float areaSpacing = Math.Min((titlePlottingRectangle.Height/100F) * elementSpacing, (titlePlottingRectangle.
Width
/100F) * elementSpacing);
Common\Utilities\ElementPosition.cs (1)
218
this._width = rect.
Width
;
System.Windows.Forms.DataVisualization (549)
Common\Annotation\AnnotationBase.cs (8)
2114
handlePosition = new PointF(rect.X + rect.
Width
/ 2f, rect.Y);
2126
handlePosition = new PointF(rect.X + rect.
Width
/ 2f, rect.Bottom);
2318
if(!double.IsNaN(position.
Width
))
2320
this.Width = position.
Width
;
2482
relativeWidth = contentPosition.
Width
;
2910
double newWidth = position.
Width
;
2986
!float.IsNaN(position.
Width
) &&
2989
newRight = horizAxis.PositionToValue(anchorPoint.X + position.
Width
, false);
Common\Annotation\CalloutAnnotation.cs (16)
658
if(rectanglePosition.
Width
< 0)
661
rectanglePosition.Width = -rectanglePosition.
Width
;
817
if (rectanglePositionAbs.
Width
<= 0 || rectanglePositionAbs.Height <= 0)
832
float radius = Math.Min(rectanglePositionAbs.
Width
, rectanglePositionAbs.Height);
937
float size = Math.Min(rectanglePositionAbs.
Width
, rectanglePositionAbs.Height);
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);
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);
1117
rectanglePosition.X + rectanglePosition.
Width
/ 2f,
1122
new SizeF(rectanglePosition.
Width
, rectanglePosition.Height));
1502
lineSecondPoint.X = rectanglePosition.X + rectanglePosition.
Width
/ 2f;
1677
matrix.Scale(position.
Width
/ _cloudBounds.
Width
, position.Height / _cloudBounds.Height);
1788
matrix.Scale(position.
Width
/ _cloudBounds.
Width
, position.Height / _cloudBounds.Height);
Common\Annotation\GroupAnnotation.cs (2)
927
if(selectionRect.
Width
< 0)
930
selectionRect.Width = -selectionRect.
Width
;
Common\Annotation\ImageAnnotation.cs (2)
532
if(rectanglePosition.
Width
< 0)
535
rectanglePosition.Width = -rectanglePosition.
Width
;
Common\Annotation\PolygonAnnotation.cs (4)
573
if(rectanglePosition.
Width
< 0)
576
rectanglePosition.Width = -rectanglePosition.
Width
;
597
float groupScaleX = rectanglePositionAbs.
Width
/ 100.0f;
881
movingDistance.Width /= startMovePositionRel.
Width
/ 100.0f;
Common\Annotation\RectangleAnnotation.cs (5)
396
if(rectanglePosition.
Width
< 0)
399
rectanglePosition.Width = -rectanglePosition.
Width
;
634
if(rectanglePosition.
Width
< 0)
637
rectanglePosition.Width = -rectanglePosition.
Width
;
658
if(absRectanglePosition.
Width
> 30f &&
Common\Annotation\TextAnnotation.cs (10)
426
if(textPosition.
Width
< 0)
429
textPosition.Width = -textPosition.
Width
;
523
if(textPosition.
Width
> 25f)
525
spacingScaleX = textPosition.
Width
/ 50f;
536
textPositionWithSpacing.Width -= (textSpacing.
Width
+ textSpacing.X) * spacingScaleX;
568
textPositionWithSpacing.Width = textPosition.
Width
;
569
textPositionWithSpacing.Width -= textSpacing.
Width
/2f + textSpacing.X / 2f;
646
textActualPosition.X += textPositionWithSpacing.
Width
- textSize.Width;
652
textActualPosition.X += (textPositionWithSpacing.
Width
- textSize.Width) / 2f;
980
contentSize.Width += (textSpacing.X + textSpacing.
Width
) * spacingScaleX;
Common\Borders3D\EmbedBorder.cs (11)
687
if(rect.
Width
> 0 && rect.Height > 0 )
863
areasRect.Width -= (float)Math.Min(areasRect.
Width
, relSizeLeftTop.Width + relSizeRightBottom.Width);
869
if(areasRect.
Width
> 100f - areasRect.Right)
940
radius = (float)Math.Min(radius, rect.
Width
/2f);
1002
screwRect.Height = screwRect.
Width
;
1006
screwRect.X = shadowRect.Right - offset - screwRect.
Width
;
1010
screwRect.X = shadowRect.Right - offset - screwRect.
Width
;
1032
shadowRect.
Width
+ 0.5f*radius,
1062
shadowRect.
Width
- .2f*radius,
1093
graph.DrawEllipse(screwPen, rect.X, rect.Y, rect.
Width
, rect.Height);
1096
graph.DrawEllipse(screwPen, rect.X + 1 * resolution / 96.0f, rect.Y + 1 * resolution / 96.0f, rect.
Width
, rect.Height);
Common\Borders3D\EmbossBorder.cs (5)
120
areasRect.Width -= (float)Math.Min(areasRect.
Width
, borderSize.Width * 2.5f);
129
if(areasRect.X + areasRect.
Width
> 100f)
131
areasRect.X -= 100f - areasRect.
Width
;
195
radius = (float)Math.Min(radius, rect.
Width
/2f);
251
shadowRect.
Width
+ radius - radius*0.25f,
Common\ChartTypes\BarChart.cs (22)
648
if( !(yValueOutside && yValueStartOutside && rectSize.
Width
== 0f) )
903
if (rectLabel.
Width
< 0.001f &&
927
rectLabel.Width -= (float)Math.Min(rectLabel.
Width
, markerSize.Width / 2F);
930
rectLabel.X += (float)Math.Min(rectLabel.
Width
, markerSize.Width / 2F);
952
rectLabel.Width -= (float)Math.Min(rectLabel.
Width
, markerSize.Width / 2F);
955
rectLabel.X += (float)Math.Min(rectLabel.
Width
, markerSize.Width / 2F);
973
valueTextSize.Width > rectLabel.
Width
- 1)
977
prevWidth = rectLabel.
Width
;
995
valueTextSize.Width > rectLabel.
Width
- 1 &&
996
prevWidth > rectLabel.
Width
)
1028
if (rectLabel.
Width
> 0 && rectLabel.Height > 0)
1049
labelBackPosition.X = rectLabel.X + (rectLabel.
Width
- valueTextSize.Width) / 2f;
1532
if(rectSize.Height == 0f || rectSize.
Width
== 0f)
1946
rectLabel.Width -= (float)Math.Min(rectLabel.
Width
, markerSize.Width / 2F);
1949
rectLabel.X += (float)Math.Min(rectLabel.
Width
, markerSize.Width / 2F);
1971
rectLabel.Width -= (float)Math.Min(rectLabel.
Width
, markerSize.Width / 2F);
1974
rectLabel.X += (float)Math.Min(rectLabel.
Width
, markerSize.Width / 2F);
1992
valueTextSize.Width > rectLabel.
Width
)
1996
prevWidth = rectLabel.
Width
;
2014
valueTextSize.Width > rectLabel.
Width
- 1 &&
2015
prevWidth > rectLabel.
Width
)
2042
SizeF size = graph.MeasureStringRel(text, point.Font, new SizeF(rectLabel.
Width
, rectLabel.Height), format);
Common\ChartTypes\BoxPlotChart.cs (2)
540
float dashWidth = (rectSize.
Width
- relBorderWidth.Width * 2) / 9f;
1320
float dashWidth = rectSize.
Width
/ 9f;
Common\ChartTypes\ColumnChart.cs (6)
850
if(rectSize.
Width
< 0)
865
rectSize.
Width
> 0f)
1105
if(intersection.Height <= 0f || intersection.
Width
<= 0f)
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\FastLineChart.cs (1)
650
if (pathBounds.
Width
<= 2.0 || pathBounds.Height <= 2.0)
Common\ChartTypes\FastPointChart.cs (4)
522
(int)Math.Round(markerBounds.
Width
, 0),
585
points[1].X = markerBounds.X + markerBounds.
Width
/2F;
589
points[3].X = markerBounds.X + markerBounds.
Width
/2F;
606
points[1].X = markerBounds.X + markerBounds.
Width
/2F;
Common\ChartTypes\FunnelChart.cs (29)
566
startWidth = (float)(plotAreaPositionAbs.
Width
* (GetYValue(series.Points[pointIndex-1], pointIndex-1) / this._yValueMax));
567
endWidth = (float)(plotAreaPositionAbs.
Width
* (GetYValue(series.Points[pointIndex], pointIndex) / this._yValueMax));
571
plotAreaPositionAbs.X + plotAreaPositionAbs.
Width
/ 2f,
588
plotAreaPositionAbs.X + plotAreaPositionAbs.
Width
/ 2f - this._funnelNeckSize.Width / 2f,
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;
1160
if(boundsRect.
Width
== 0f)
1511
!float.IsNaN(labelInfo.Position.
Width
) &&
1732
if( (position.Right - plotAreaPositionAbs.Right) > requiredSpacing.
Width
)
1756
requiredSpacing.
Width
> 1f ||
1784
float plotAreaCenterXAbs = plotAreaPositionAbs.X + plotAreaPositionAbs.
Width
/ 2f;
2192
plotAreaPosition.Width -= plotAreaSpacing.X + plotAreaSpacing.
Width
;
2211
float topSpacing = (float)Math.Abs( (plotAreaPositionAbs.
Width
/ 2f) * Math.Sin(this._rotation3D / 180F * Math.PI) );
2212
float bottomSpacing = (float)Math.Abs( (plotAreaPositionAbs.
Width
/ 2f) * Math.Sin(this._rotation3D / 180F * Math.PI) );
2425
if(neckSize.Width > this.PlotAreaPosition.
Width
/2f)
2427
neckSize.Width = this.PlotAreaPosition.
Width
/2f;
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;
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 (86)
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 );
786
if(rectangle.
Width
< 0f || rectangle.Height < 0f)
792
SizeF absoluteSize = graph.GetAbsoluteSize( new SizeF( rectangle.
Width
, rectangle.Height ) );
799
PointF middlePoint = new PointF( rectangle.X + rectangle.
Width
/ 2, rectangle.Y + rectangle.Height / 2 );
807
rectangle.X += rectangle.
Width
* ( 1 - _sizeCorrection ) / 2;
809
rectangle.Width = rectangle.
Width
* _sizeCorrection;
818
rect.Width = rect.
Width
/ area.Position.Width * 100f;
820
area.InnerPlotPosition.SetPositionNoAuto(rect.X, rect.Y, rect.
Width
, rect.Height);
871
double xComponent = Math.Cos( midAngle * Math.PI / 180 ) * rectangle.
Width
/ 10;
898
RectangleF shadowRect = new RectangleF( rectangle.X, rectangle.Y, rectangle.
Width
, rectangle.Height );
1034
point.positionRel.X = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * rectangle.
Width
* expShift / 2 + middlePoint.X;
1397
rect.Width = labelRectOver.
Width
;
1418
labelBackPosition.X = rect.X + (rect.
Width
- valueTextSize.Width) / 2f;
1818
doughnutRect.X = rectangle.X + rectangle.
Width
* (1 - (100 - doughnutRadius) / 100) / 2;
1820
doughnutRect.Width = rectangle.
Width
* (100 - doughnutRadius) / 100;
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;
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 );
2555
SizeF absoluteSize = graph.GetAbsoluteSize( new SizeF( rectangle.
Width
, rectangle.Height ) );
2562
PointF middlePoint = new PointF( rectangle.X + rectangle.
Width
/ 2, rectangle.Y + rectangle.Height / 2 );
2584
rectangle.X += rectangle.
Width
* ( 1 - sizeCorrection ) / 2;
2586
rectangle.Width = rectangle.
Width
* sizeCorrection;
2596
double xComponent = Math.Cos( midAngle * Math.PI / 180 ) * rectangle.
Width
/ 10;
2608
rect.Width = rect.
Width
/ 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,
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,
3240
rectangle.Inflate( -rectangle.
Width
* (1 - doughnutRadius) / 2F, -rectangle.Height * (1 - doughnutRadius) / 2F);
4949
position.X = _innerPlotPosition.Right + _chartAreaPosition.
Width
* this._labelLineSize;
4953
position.X = _innerPlotPosition.Left - _chartAreaPosition.
Width
* this._labelLineSize;
4959
angle = (float)Math.Atan( ( position.Y - _innerPlotPosition.Top - _innerPlotPosition.Height / 2) / ( position.X - _innerPlotPosition.Left - _innerPlotPosition.
Width
/ 2 ));
4969
correct = (float)(_innerPlotPosition.
Width
* 0.4 - _innerPlotPosition.
Width
* 0.4 / Math.Cos( angle ));
5327
float oldWidth = pieRectangle.
Width
;
5331
pieRectangle.Width = pieRectangle.
Width
- 2F * maxSize - 2 * pieRectangle.
Width
* labelLineSize;
5336
if( pieRectangle.
Width
< oldWidth * (float)this.MinimumRelativePieSize( area ) )
5348
if( oldWidth * 0.8F < pieRectangle.
Width
)
5353
pieRectangle.X = pieRectangle.X + ( oldWidth - pieRectangle.
Width
) / 2F;
5354
pieWidth = pieRectangle.
Width
/ oldWidth * pieWidth;
5516
labelBackPosition.X = labelPosition.X + (labelPosition.
Width
- valueTextSize.Width) / 2f;
Common\ChartTypes\PointAndFigureChart.cs (1)
820
position.Width = rectSize.
Width
;
Common\ChartTypes\StackedBarChart.cs (3)
1078
labelPosition.X = rectangle.X + rectangle.
Width
/ 2f;
1628
if(rectSize.Height == 0f || rectSize.
Width
== 0f)
1955
SizeF size = graph.MeasureStringRel(text, point.Font, new SizeF(rectLabel.
Width
, rectLabel.Height), format);
Common\ChartTypes\StackedColumnChart.cs (4)
1158
labelPosition.X = rectangle.X + rectangle.
Width
/ 2f;
1664
if(rectSize.
Width
< 0)
1668
if(rectSize.Height == 0f || rectSize.
Width
== 0f)
1874
labelPosition.X = rectangle.X + rectangle.
Width
/ 2f;
Common\General\Axis.cs (31)
1851
_titlePosition.X += titleSizeWithoutSpacing / 2f - _titlePosition.
Width
/ 2f;
1894
_titlePosition.X += titleSizeWithoutSpacing / 2f - _titlePosition.
Width
/ 2f;
1970
if (transformedTitlePosition.
Width
< 0)
1972
transformedTitlePosition.Width = Math.Abs(transformedTitlePosition.
Width
);
1973
transformedTitlePosition.X -= transformedTitlePosition.
Width
;
2008
center.X = titlePosition.X + titlePosition.
Width
/ 2F;
2043
if (rect.
Width
!= rect.Height)
2045
if (rect.
Width
> rect.Height)
2047
rect.X += (rect.
Width
- rect.Height) / 2f;
2052
rect.Y += (rect.Height - rect.
Width
) / 2f;
2053
rect.Height = rect.
Width
;
2080
PointF endPoint = new PointF(rect.X + rect.
Width
/ 2f, rect.Y);
2144
if (rect.
Width
!= rect.Height)
2146
if (rect.
Width
> rect.Height)
2148
rect.X += (rect.
Width
- rect.Height) / 2f;
2153
rect.Y += (rect.Height - rect.
Width
) / 2f;
2154
rect.Height = rect.
Width
;
2182
if (rect.
Width
>= 1f && rect.Height > 1)
3416
maxTitlesize = (plotArea.
Width
/ 100F) * (Axis.maxAxisTitleSize / axesNumber);
3548
this.markSize = Math.Min(this.markSize, (plotArea.
Width
/ 100F) * (Axis.maxAxisMarkSize / axesNumber));
3600
this.markSize = Math.Min(this.markSize, (plotArea.
Width
/ 100F) * (Axis.maxAxisMarkSize / axesNumber));
3640
maxLabelSize = plotArea.
Width
* (_maximumAutoSize / 100f);
5350
if (Math.Round(axisLabelSize.Width) >= Math.Round(rect.
Width
) &&
5443
rect.Height = rect.
Width
;
5551
labelPosition.X = labelPosition.X + labelPosition.
Width
/ 2f - width / 2f;
5566
if (width >= rect.
Width
&& checkWidth)
5577
if (width >= rect.
Width
&& checkWidth)
5590
if (width >= rect.
Width
* 2F && checkWidth)
5601
if (width >= rect.
Width
* 2F && checkWidth)
5679
rect.Height = rect.
Width
;
5699
rect.Width = (float)Math.Ceiling(rect.
Width
);
Common\General\AxisScale.cs (2)
1832
paintAreaPositionRight = paintAreaPosition.X + paintAreaPosition.
Width
;
1836
paintChartAreaSize = paintAreaPosition.
Width
;
Common\General\AxisScaleSegments.cs (4)
365
if(breakPosition.
Width
> 0f && breakPosition.Height > 0f)
418
size = Math.Min(size, breakPosition.
Width
);
485
if(breakPosition.
Width
> 0f && breakPosition.Height > 0f)
718
breakPosition.Width = (float)Math.Abs(breakPosition.X - breakPosition.
Width
);
Common\General\Chart.cs (11)
2123
_titlePosition.Width = chartAreasRectangle.
Width
- _titlePosition.
Width
;
2198
areaPosition.Width = chartAreasRectangle.
Width
/ areaColumns - elementSpacing;
2200
areaPosition.X = chartAreasRectangle.X + column * (chartAreasRectangle.
Width
/ areaColumns) + elementSpacing;
2210
area.Position.SetPositionNoAuto(areaPosition.X, areaPosition.Y, areaPosition.
Width
, areaPosition.Height);
3122
if(areaPlotPosition.
Width
< 5)
3149
rect.Width = areaPlotPosition.
Width
;
3158
area.PlotAreaPosition.SetPositionNoAuto(rect.X, rect.Y, rect.
Width
, rect.Height);
3163
rect.Width = rect.
Width
/ 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 (23)
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);
1708
if (Math.Abs(offset) > plottingRect.
Width
* 0.3f)
1710
offset = plottingRect.
Width
* 0.3f;
1720
if ((axis.labelFarOffset - Position.Right) < plottingRect.
Width
* 0.3f)
1722
rectLabelSideSpacing.Width = (float)Math.Max(axis.labelFarOffset - Position.Right, rectLabelSideSpacing.
Width
);
1726
rectLabelSideSpacing.Width = (float)Math.Max(plottingRect.
Width
* 0.3f, rectLabelSideSpacing.
Width
);
1784
if (rectLabelSideSpacing.
Width
> 0 && rectLabelSideSpacing.
Width
> Position.Right - plottingRect.Right)
1786
plottingRect.Width += (Position.Right - plottingRect.Right) - rectLabelSideSpacing.
Width
;
1812
if(rect.
Width
> rect.Height)
1814
rect.X += (rect.
Width
- rect.Height) / 2f;
1819
rect.Y += (rect.Height - rect.
Width
) / 2f;
1820
rect.Height = rect.
Width
;
1825
this.circularCenter = new PointF(plottingRect.X + plottingRect.
Width
/2f, plottingRect.Y + plottingRect.Height/2f);
1834
if(plottingRect.
Width
< 0f)
1846
(float)Math.Round(plottingRect.
Width
/ (Position.Width / 100F), 5),
2158
currentAxis.paintAreaPositionRight = currentAxis.paintAreaPosition.X + currentAxis.paintAreaPosition.
Width
;
2160
currentAxis.paintChartAreaSize = currentAxis.paintAreaPosition.
Width
;
2603
labelsSizeEstimate = (float)Math.Min(labelsSizeEstimate * 1.1f, plotAreaRectAbs.
Width
/ 5f);
2618
labelsSize = (float)Math.Min(labelsSize, plotAreaRectAbs.
Width
/ 2.5f);
2627
if(plotAreaRectAbs.
Width
< 1.0f)
Common\General\ChartArea3D.cs (2)
1399
axis.interval3DCorrection = size / plottingRect.
Width
;
1404
axis.interval3DCorrection = size / plottingRect.
Width
;
Common\General\ChartGraphics.cs (149)
454
if( rectangle.Height == 0 || rectangle.
Width
== 0 )
474
angle = (float)(Math.Atan(rectangle.
Width
/ rectangle.Height)* 180 / Math.PI);
478
angle = (float)(180 - Math.Atan(rectangle.
Width
/ rectangle.Height)* 180 / Math.PI);
486
RectangleF tempRect = new RectangleF(rectangle.X,rectangle.Y,rectangle.
Width
,rectangle.Height);
499
tempRect.Width = tempRect.
Width
/ 2F;
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));
722
rect.X = point.X - imageScaleRect.
Width
/ 2F;
724
rect.Width = imageScaleRect.
Width
;
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);
860
PointF focusScale = new PointF(1 - 2f * shadowSize / rect.
Width
, 1 - 2f * shadowSize / rect.Height);
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));
971
PointF focusScale = new PointF(1 - 2f * shadowSize / rect.
Width
, 1 - 2f * shadowSize / rect.Height);
1008
points[1].X = rect.X + rect.
Width
/ 2F;
1012
points[3].X = rect.X + rect.
Width
/ 2F;
1063
points[1].X = rect.X + rect.
Width
/ 2F;
1100
PointF focusScale = new PointF(1 - 2f * shadowSize / rect.
Width
, 1 - 2f * shadowSize / rect.Height);
1500
rotationPoint = new PointF(backPositionAbs.X + backPositionAbs.
Width
/2f, backPositionAbs.Y + backPositionAbs.Height/2f);
1543
backPositionAbs.
Width
,
1783
if (position.
Width
== 0 || position.Height == 0)
1792
if (absPosition.
Width
< 1f)
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;
1878
newRect.Y = absPosition.Y - absPosition.
Width
/ 2F;
1879
newRect.Height = absPosition.
Width
;
1887
newRect.X -= newRect.
Width
;
1905
newRect.X -= newRect.
Width
;
1928
rotationPoint.X = absPosition.X + absPosition.
Width
/ 2F;
1934
newRect.Y = rotationPoint.Y - absPosition.
Width
/ 2F;
1935
newRect.Height = absPosition.
Width
;
1998
labelRect.X = absPosition.X + absPosition.
Width
/ 2F - labelSize.Width / 2F;
2073
float sizeChange = truncateRect.
Width
/ (float)Math.Cos(Math.Abs(angle) / 180F * Math.PI);
2079
absPosition.Width = labelRect.
Width
- sizeChange;
2087
absPosition.Width = labelRect.
Width
- sizeChange;
2094
absPosition.Width = labelRect.
Width
- sizeChange;
2105
absPosition.Width = labelRect.
Width
- sizeChange;
2140
if (absPositionWithoutImage.
Width
< 1f)
2290
absPosition.X + (absPosition.
Width
- imageAbsSize.Width - labelSize.Width) / 2,
2310
imageRect.X = absPosition.X + (absPosition.
Width
- imageAbsSize.Width - labelSize.Width) / 2;
2398
PointF centerNotRound = new PointF(absPosition.X + absPosition.
Width
/2F, absPosition.Y + absPosition.Height/2F);
2405
newRect.Y = centerNotRound.Y - absPosition.
Width
/ 2F;
2406
newRect.Height = absPosition.
Width
;
2553
Point center = Point.Round(new PointF(absPosition.X + absPosition.
Width
/2F, absPosition.Y + absPosition.Height/2F));
2716
if(layoutRectangle.
Width
== 0 || layoutRectangle.Height == 0)
2767
if(layoutRectangle.
Width
== 0 || layoutRectangle.Height == 0)
2838
if(rect.
Width
> 0 && rect.Height > 0)
2853
if(gradientRect.
Width
> 0 && gradientRect.Height > 0)
2873
gradientRect.X += gradientRect.
Width
+ 1f;
2903
if(rect.
Width
< 6f || rect.Height < 6f)
2907
else if(rect.
Width
< 15f || rect.Height < 15f)
2958
if(rect.
Width
< 6f || rect.Height < 6f)
2962
else if(rect.
Width
< 15f || rect.Height < 15f)
2976
gradientRect.X = gradientRect.Right - (float)Math.Floor(gradientRect.
Width
/ 3f);
2977
gradientRect.Width = (float)Math.Floor(gradientRect.
Width
/ 3f);
2979
if(gradientRect.
Width
> 0 && gradientRect.Height > 0)
3005
gradientRect.Width = (float)Math.Floor(gradientRect.
Width
/ 3f);
3029
float size = (isVertical) ? rect.
Width
/ 2f : rect.Height / 2f;
3034
if(!isVertical && 2f * size > rect.
Width
)
3036
size = rect.
Width
/2f;
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);
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,
3116
rect.X + rect.
Width
/2f,
3118
rect.X + rect.
Width
/2f,
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);
3426
if( rect.
Width
< 1.0F && rect.
Width
> 0.0F )
3448
fillRect = new RectangleF( rect.X, rect.Y, rect.
Width
, rect.Height);
3456
fillRect = new RectangleF( rect.X, rect.Y, rect.
Width
, rect.Height);
3464
rect.
Width
- borderWidth * 2f + 1,
3479
if(fillRect.
Width
> 2f * this._width)
3536
imageRect.Width = fillRect.
Width
;
3547
imageRect.Width = Math.Min(fillRect.
Width
, imageAbsSize.Width);
3551
if(imageRect.
Width
< fillRect.
Width
)
3557
imageRect.X = fillRect.Right - imageRect.
Width
;
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)),
3597
(backImageWrapMode == ChartImageWrapMode.Unscaled) ? imageRect.
Width
* image.Width / imageAbsSize.Width : image.Width,
3669
this.DrawRectangle( _pen, rect.X, rect.Y, rect.
Width
, rect.Height );
3723
if(rect.Height == 0 || rect.
Width
== 0 || shadowOffset == 0)
3761
offset.Width = absolute.
Width
;
3783
offset.Width = absolute.
Width
+ 2;
3789
radius = (float)Math.Min(radius, offset.
Width
/4f);
3794
radius = offset.
Width
/2f;
3799
if(circular && offset.
Width
!= offset.Height)
3801
float radiusX = offset.
Width
/2f;
3830
shadowBrush.CenterPoint = new PointF(offset.X + offset.
Width
/2f, offset.Y + offset.Height/2f);
3833
PointF focusScale = new PointF(1-2f*shadowOffset/offset.
Width
, 1-2f*shadowOffset/offset.Height);
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 );
4217
imageRect.Width = fillRect.
Width
;
4232
if(imageRect.
Width
< fillRect.
Width
)
4238
imageRect.X = fillRect.Right - imageRect.
Width
;
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 );
4513
imageRect.Width = fillRect.
Width
;
4528
if(imageRect.
Width
< fillRect.
Width
)
4534
imageRect.X = fillRect.Right - imageRect.
Width
;
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)),
4656
relative.Width = rectangle.
Width
* 100F / ((float)(_width - 1));
4747
absolute.Width = rectangle.
Width
* (_width - 1) / 100F;
4824
shadowBrush.CenterPoint = new PointF(rect.X + rect.
Width
/2f, rect.Y + rect.Height/2f);
4827
PointF focusScale = new PointF(1-shadowScale*radius/rect.
Width
, 1-shadowScale*radius/rect.Height);
4908
if(_common == null || borderSkin.SkinStyle == BorderSkinStyle.None || absRect.
Width
== 0 || absRect.Height == 0)
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 );
5135
float minSize = (float)Math.Min(position.
Width
, position.Height);
5155
gradientPath.X + position.
Width
* doughnutRadius /200 - 1 - shadowSize,
5157
gradientPath.
Width
- position.
Width
* doughnutRadius / 100 + 2 + 2f * shadowSize,
5161
path.AddArc( gradientPath.X, gradientPath.Y, gradientPath.
Width
, gradientPath.Height, startAngle + sweepAngle, -sweepAngle );
5192
float minSize = (float)Math.Min(position.
Width
, position.Height);
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 );
5238
innerPosition.Inflate(- position.
Width
* doughnutRadius / 200f + shadowSize, -position.Height * doughnutRadius / 200f + shadowSize);
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 );
5257
blend.Positions[1] = shadowSize / (innerPosition.
Width
/ 2f);
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 (31)
725
double angleCorrection = pieTopRectangle.Height / pieTopRectangle.
Width
;
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);
850
double angleCorrection = pieRectangle.Height / pieRectangle.
Width
;
865
path.AddArc(pieRectangle.X, pieRectangle.Y, pieRectangle.
Width
, pieRectangle.Height, startAngle, sweepAngle);
975
pieDoughnutRectangle.X = pieRectangle.X + pieRectangle.
Width
* (1F - doughnutRadius) / 2F;
978
pieDoughnutRectangle.Width = pieRectangle.
Width
* doughnutRadius;
982
double angleCorrection = pieRectangle.Height / pieRectangle.
Width
;
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);
2939
if(position.
Width
== 0.0 && currentSurface != SurfaceNames.Left && currentSurface != SurfaceNames.Right)
3090
float size = (isVertical) ? positionAbs.
Width
/ 2f : positionAbs.Height / 2f;
3095
if(!isVertical && 2f * size > positionAbs.
Width
)
3097
size = positionAbs.
Width
/2f;
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 );
3234
if(positionAbs.
Width
< 6f || positionAbs.Height < 6f)
3238
else if(positionAbs.
Width
< 15f || positionAbs.Height < 15f)
3253
gradientRect.X = gradientRect.Right - (float)Math.Floor(gradientRect.
Width
/ 3f);
3254
gradientRect.Width = (float)Math.Floor(gradientRect.
Width
/ 3f);
3284
if(bounds.
Width
> 0f && bounds.Height > 0f)
3310
gradientRect.Width = (float)Math.Floor(gradientRect.
Width
/ 3f);
3340
if(bounds.
Width
> 0f && bounds.Height > 0f)
3360
if(positionAbs.
Width
< 6f || positionAbs.Height < 6f)
3364
else if(positionAbs.
Width
< 15f || positionAbs.Height < 15f)
3564
path.AddEllipse(rect.X + shadowSize - 1, rect.Y + shadowSize - 1, rect.
Width
+ 2, rect.Height + 2);
3577
PointF focusScale = new PointF(1 - 2f * shadowSize / rect.
Width
, 1 - 2f * shadowSize / rect.Height);
3599
rectLightCenter.Inflate(rectLightCenter.
Width
/ 4f, rectLightCenter.Height / 4f);
3984
float middleXValue = position.X + position.
Width
/ 2f;
4163
if(boundsRect.Height > 0 && boundsRect.
Width
> 0)
4175
boundsRectMiddlePoint.X = boundsRect.X + boundsRect.
Width
/2f;
Common\General\Label.cs (12)
1635
rect.X += rect.
Width
;
1649
rect.X += rect.
Width
;
1753
rect.X -= rect.
Width
/ 2F;
1837
rectLabels.Width = (float)Math.Max(rectLabels.
Width
, rectLabels.X - labelsAxis.PlotAreaPosition.X);
1844
rectLabels.X -= rectLabels.
Width
;
1861
rectLabels.Width = (float)Math.Max(rectLabels.
Width
, labelsAxis.PlotAreaPosition.Right - rectLabels.X);
2138
rect.X += rect.
Width
;
2155
rect.X += rect.
Width
;
2262
if (rect.
Width
< pixelSize.Width)
2271
rect.X -= rect.
Width
/ 2F;
2325
rectPoints[1] = new Point3D(rect.X + rect.
Width
/ 2f, rect.Bottom, labelsZPosition);
2356
rectPoints[1] = new Point3D(rect.X + rect.
Width
/ 2f, rect.Y, labelsZPosition);
Common\General\Legend.cs (12)
1090
SizeF maxSize = new SizeF(chartAreasRectangle.
Width
- 2*elementSpacing, chartAreasRectangle.Height - 2*elementSpacing);
1133
legendPosition.X = chartAreasRectangle.X + (chartAreasRectangle.
Width
- legendSize.Width) / 2F;
1153
legendPosition.X = chartAreasRectangle.X + (chartAreasRectangle.
Width
- legendSize.Width) / 2F;
1176
chartAreasRectangle.Width -= legendPosition.
Width
+ elementSpacing;
1196
chartAreasRectangle.Width -= legendPosition.
Width
+ elementSpacing;
1199
this.Position.SetPositionNoAuto(legendPosition.X, legendPosition.Y, legendPosition.
Width
, legendPosition.Height);
4581
new RectangleF(rect.Left, rect.Bottom - 1f, rect.
Width
, 0f),
4620
new RectangleF(rect.Left, rect.Bottom - 2f, rect.
Width
, 1f),
4926
float areaSpacing = Math.Min((chartAreasRectangle.Height/100F) * elementSpacing, (chartAreasRectangle.
Width
/100F) * elementSpacing);
4971
legendPosition.X -= legendPosition.
Width
;
4983
legend.Position.SetPositionNoAuto(legendPosition.X, legendPosition.Y, legendPosition.
Width
, legendPosition.Height);
5028
float areaSpacing = Math.Min((legendPlottingRectangle.Height/100F) * elementSpacing, (legendPlottingRectangle.
Width
/100F) * elementSpacing);
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 (2)
245
_translateX = innerPlotRectangle.X+innerPlotRectangle.
Width
/2;
248
float width = innerPlotRectangle.
Width
;
Common\General\Selection.cs (15)
2772
list.Add(new PointF(rect.Left + rect.
Width
/ 2, rect.Top));
2774
list.Add(new PointF(rect.Right - rect.
Width
/ 2, rect.Bottom));
2789
rect.Offset(rect.
Width
/ 2, 0);
3199
if (rect.
Width
> 0 && rect.Height > 0)
3206
else if (rect.
Width
> 0)
3219
if (rect.
Width
> 0)
3223
if (rect.
Width
> 30)
3225
list.Add(new PointF(rect.Left + rect.
Width
/ 2, rect.Top));
3236
if (rect.
Width
> 30)
3238
list.Add(new PointF(rect.Left + rect.
Width
/ 2, rect.Bottom));
3248
else if (rect.
Width
> 0)
3252
if (rect.
Width
> 30)
3254
list.Add(new PointF(rect.Left + rect.
Width
/ 2, rect.Top));
3342
if (rect.
Width
> rect.Height)
3346
else if (rect.
Width
< rect.Height)
Common\General\SmartLabels.cs (4)
939
graph.DrawRectangle(calloutPen, labelRectAbs.X, labelRectAbs.Y, labelRectAbs.
Width
, labelRectAbs.Height);
1077
labelPosition.X + labelPosition.
Width
/2f,
1115
labelPosition.X + labelPosition.
Width
/2f,
1174
labelPosition.X + labelPosition.
Width
/ 2f,
Common\General\StripLine.cs (2)
368
rect.Width = plotAreaPosition.
Width
;
386
if(rect.
Width
> 0 && rect.Height > 0)
Common\General\Title.cs (24)
1366
if(titlePosition.
Width
== 0 || titlePosition.Height == 0)
1370
(titlePosition.
Width
== 0) ? Common.ChartPicture.Width : titlePosition.
Width
,
1407
if(titlePosition.
Width
== 0)
1414
titlePosition.X = titlePosition.X - titlePosition.
Width
;
1420
titlePosition.X = titlePosition.X - titlePosition.
Width
/2f;
1509
exactTitleRect.X = titlePosition.Right - exactTitleRect.
Width
;
1516
titlePosition.
Width
/ 2f -
1517
exactTitleRect.
Width
/ 2f;
1649
center.X = absPosition.X + absPosition.
Width
/ 2F;
1849
frameTitlePosition.
Width
- 2f * elementSpacing,
1857
SizeF layoutArea = new SizeF(chartAreasRectangle.
Width
, chartAreasRectangle.Height);
1908
if(titlePosition.
Width
< 0)
1922
if(titlePosition.
Width
< 0)
1941
chartAreasRectangle.Width -= titlePosition.
Width
+ elementSpacing;
1955
chartAreasRectangle.Width -= titlePosition.
Width
+ elementSpacing;
1972
this.Position.SetPositionNoAuto(titlePosition.X, titlePosition.Y, titlePosition.
Width
, titlePosition.Height);
2065
float areaSpacing = Math.Min((chartAreasRectangle.Height/100F) * elementSpacing, (chartAreasRectangle.
Width
/100F) * elementSpacing);
2121
titlePosition.X -= titlePosition.
Width
;
2122
prevChartAreasRectangle.X -= titlePosition.
Width
+ areaSpacing;
2123
prevChartAreasRectangle.Width += titlePosition.
Width
+ areaSpacing;
2132
prevChartAreasRectangle.Width += titlePosition.
Width
+ areaSpacing;
2137
title.Position.SetPositionNoAuto(titlePosition.X, titlePosition.Y, titlePosition.
Width
, titlePosition.Height);
2198
float areaSpacing = Math.Min((titlePlottingRectangle.Height/100F) * elementSpacing, (titlePlottingRectangle.
Width
/100F) * elementSpacing);
Common\Utilities\ElementPosition.cs (1)
218
this._width = rect.
Width
;
WinForm\Utilities\AccessibleObject.cs (1)
306
absolute.Width = bounds.
Width
* (this._chart.Width - 1) / 100F;
System.Workflow.ComponentModel (1)
AuthoringOM\Design\DesignerHelpers.cs (1)
505
Rectangle bounds = new Rectangle(0, 0, Convert.ToInt32(Math.Ceiling(boundsF.
Width
)), Convert.ToInt32(Math.Ceiling(boundsF.Height)));