185 writes to Width
System.Web.DataVisualization (91)
Common\Annotation\AnnotationBase.cs (7)
3168
size.
Width
+= movingDistance.Width;
3179
size.
Width
-= movingDistance.Width;
3184
size.
Width
-= movingDistance.Width;
3188
size.
Width
-= movingDistance.Width;
3198
size.
Width
+= movingDistance.Width;
3204
size.
Width
+= movingDistance.Width;
3222
size.
Width
= float.NaN;
Common\Annotation\CalloutAnnotation.cs (2)
1123
ellipseSize.
Width
/= 10f;
1213
ellipseSize.
Width
*= 1.5f;
Common\Annotation\PolygonAnnotation.cs (1)
881
movingDistance.
Width
/= startMovePositionRel.Width / 100.0f;
Common\Annotation\TextAnnotation.cs (1)
980
contentSize.
Width
+= (textSpacing.X + textSpacing.Width) * spacingScaleX;
Common\Borders3D\EmbedBorder.cs (4)
845
relSizeLeftTop.
Width
+= defaultRadiusSize * 0.7f;
847
relSizeRightBottom.
Width
+= defaultRadiusSize * 0.7f;
853
relSizeLeftTop.
Width
= 0;
857
relSizeRightBottom.
Width
= 0;
Common\ChartTypes\BarChart.cs (6)
719
size.
Width
= pixelSize * graph.Graphics.DpiX / 96;
767
markerSize.
Width
= point.MarkerSize;
1034
valueTextSize.
Width
+= spacing;
1750
markerSize.
Width
= point.MarkerSize;
1875
markerSize.
Width
= point.MarkerSize;
2116
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\BoxPlotChart.cs (3)
486
relBorderWidth.
Width
= 0;
850
size.
Width
= markerSize * graph.Graphics.DpiX / 96;
968
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\BubbleChart.cs (2)
186
size.
Width
= markerSize * graph.Graphics.DpiX / 96;
194
size.
Width
= ScaleBubbleSize(graph, common, area, point.YValues[1]);
Common\ChartTypes\ColumnChart.cs (2)
1251
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
1373
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\ErrorBarChart.cs (2)
907
size.
Width
= markerSize * graph.Graphics.DpiX / 96;
1025
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\FunnelChart.cs (2)
2391
neckSize.
Width
= w;
2427
neckSize.
Width
= this.PlotAreaPosition.Width/2f;
Common\ChartTypes\PieChart.cs (4)
1262
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
1404
valueTextSize.
Width
+= spacing;
5502
valueTextSize.
Width
+= spacing;
5578
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\PointChart.cs (2)
710
sizeLabel.
Width
+= horizontalSpacing;
1418
size.
Width
= markerSize * graph.Graphics.DpiX / 96;
Common\ChartTypes\RadarChart.cs (2)
963
size.
Width
= markerSize * graph.Graphics.DpiX / 96;
1077
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\StackedAreaChart.cs (2)
1044
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
1526
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\StackedBarChart.cs (2)
1182
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
2086
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\StackedColumnChart.cs (2)
1239
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
1951
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\StockChart.cs (9)
540
markerSize.
Width
= point.MarkerSize;
545
markerSize.
Width
= point.MarkerSize * graph.Graphics.DpiX / 96;
1007
markerSize.
Width
= point.MarkerSize;
1012
markerSize.
Width
= point.MarkerSize * graph.Graphics.DpiX / 96;
1064
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
1367
markerSize.
Width
= point.MarkerSize;
1372
markerSize.
Width
= point.MarkerSize * graph.Graphics.DpiX / 96;
1874
markerSize.
Width
= point.MarkerSize;
1879
markerSize.
Width
= point.MarkerSize * common.graph.Graphics.DpiX / 96;
Common\General\Axis.cs (18)
2253
axisTitleSize.
Width
= tempValue;
4870
textSize.
Width
= textSize.Height;
5323
axisLabelSize.
Width
+= imageRelSize.Width;
5333
axisLabelSize.
Width
+= spacerSize.Width;
5344
axisLabelSize.
Width
= chartGraph.GetAbsoluteSize(new SizeF(axisLabelSize.Height, axisLabelSize.Height)).Height;
5345
axisLabelSize.
Width
= chartGraph.GetRelativeSize(new SizeF(axisLabelSize.Width, axisLabelSize.Width)).Width;
5497
axisLabelSize.
Width
= Math.Max(axisLabelSize.Width, imageRelSize.Width);
5501
axisLabelSize.
Width
+= imageRelSize.Width;
5512
axisLabelSize.
Width
+= spacerSize.Width;
5732
axisLabelSize.
Width
= Math.Max(axisLabelSize.Width, imageRelSize.Width);
5736
axisLabelSize.
Width
+= imageRelSize.Width;
5747
axisLabelSize.
Width
+= spacerSize.Width;
5766
axisLabelSize.
Width
= (float)Math.Ceiling(axisLabelSize.Width) * 1.05f;
5939
axisLabelSize.
Width
= (float)Math.Ceiling(axisLabelSize.Width);
5951
axisLabelSize.
Width
+= imageRelSize.Width;
5961
axisLabelSize.
Width
+= spacerSize.Width;
5975
axisLabelSize.
Width
= chartGraph.GetAbsoluteSize(new SizeF(axisLabelSize.Height, axisLabelSize.Height)).Height;
5976
axisLabelSize.
Width
= chartGraph.GetRelativeSize(new SizeF(axisLabelSize.Width, axisLabelSize.Width)).Width;
Common\General\ChartArea.cs (2)
2666
areaDiff.
Width
-= titleSize.Width;
2692
textSize.
Width
= (float)Math.Ceiling(textSize.Width * 1.1f);
Common\General\ChartArea3D.cs (1)
2092
interval.
Width
= interval.Width * 100F / ((float)(this.Common.Chart.Width.Value - 1));
Common\General\ChartGraphics.cs (4)
1713
size.
Width
+= 10;
2163
labelSizeWithImage.
Width
+= imageAbsSize.Width;
4701
relative.
Width
= size.Width * 100F / ((float)(_width - 1));
4769
absolute.
Width
= size.Width * (_width - 1) / 100F;
Common\General\Legend.cs (1)
1102
maxSize.
Width
= (maxSize.Width / 100F) * this._maximumLegendAutoSize;
Common\General\StripLine.cs (1)
713
size.
Width
*= size.Width / (textSizeProjection[index].X - textSizeProjection[(index == 0) ? 1 : 0].X);
Common\General\Title.cs (7)
1375
layoutArea.
Width
= layoutArea.Height;
1391
titleSize.
Width
+= titleBorderSpacing;
1399
titleSize.
Width
= titleSize.Height;
1863
layoutArea.
Width
= layoutArea.Height;
1868
layoutArea.
Width
-= 2f * elementSpacing;
1881
titleSize.
Width
+= titleBorderSpacing;
1889
titleSize.
Width
= titleSize.Height;
Common\Utilities\ImageLoader.cs (2)
389
size.
Width
= image.Width * graphics.DpiX / image.HorizontalResolution;
394
size.
Width
= image.Width;
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ContainerControl.cs (2)
768
retval.
Width
= (int)Math.Round(((float)size.cx) / ((float)fontMeasureString.Length));
771
retval.
Width
= tm.tmAveCharWidth;
System.Windows.Forms.DataVisualization (92)
Common\Annotation\AnnotationBase.cs (7)
3168
size.
Width
+= movingDistance.Width;
3179
size.
Width
-= movingDistance.Width;
3184
size.
Width
-= movingDistance.Width;
3188
size.
Width
-= movingDistance.Width;
3198
size.
Width
+= movingDistance.Width;
3204
size.
Width
+= movingDistance.Width;
3222
size.
Width
= float.NaN;
Common\Annotation\CalloutAnnotation.cs (2)
1123
ellipseSize.
Width
/= 10f;
1213
ellipseSize.
Width
*= 1.5f;
Common\Annotation\PolygonAnnotation.cs (1)
881
movingDistance.
Width
/= startMovePositionRel.Width / 100.0f;
Common\Annotation\TextAnnotation.cs (1)
980
contentSize.
Width
+= (textSpacing.X + textSpacing.Width) * spacingScaleX;
Common\Borders3D\EmbedBorder.cs (4)
845
relSizeLeftTop.
Width
+= defaultRadiusSize * 0.7f;
847
relSizeRightBottom.
Width
+= defaultRadiusSize * 0.7f;
853
relSizeLeftTop.
Width
= 0;
857
relSizeRightBottom.
Width
= 0;
Common\ChartTypes\BarChart.cs (6)
719
size.
Width
= pixelSize * graph.Graphics.DpiX / 96;
767
markerSize.
Width
= point.MarkerSize;
1034
valueTextSize.
Width
+= spacing;
1750
markerSize.
Width
= point.MarkerSize;
1875
markerSize.
Width
= point.MarkerSize;
2116
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\BoxPlotChart.cs (3)
486
relBorderWidth.
Width
= 0;
850
size.
Width
= markerSize * graph.Graphics.DpiX / 96;
968
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\BubbleChart.cs (2)
186
size.
Width
= markerSize * graph.Graphics.DpiX / 96;
194
size.
Width
= ScaleBubbleSize(graph, common, area, point.YValues[1]);
Common\ChartTypes\ColumnChart.cs (2)
1251
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
1373
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\ErrorBarChart.cs (2)
907
size.
Width
= markerSize * graph.Graphics.DpiX / 96;
1025
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\FunnelChart.cs (2)
2391
neckSize.
Width
= w;
2427
neckSize.
Width
= this.PlotAreaPosition.Width/2f;
Common\ChartTypes\PieChart.cs (4)
1262
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
1404
valueTextSize.
Width
+= spacing;
5502
valueTextSize.
Width
+= spacing;
5578
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\PointChart.cs (2)
710
sizeLabel.
Width
+= horizontalSpacing;
1418
size.
Width
= markerSize * graph.Graphics.DpiX / 96;
Common\ChartTypes\RadarChart.cs (2)
963
size.
Width
= markerSize * graph.Graphics.DpiX / 96;
1077
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\StackedAreaChart.cs (2)
1044
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
1526
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\StackedBarChart.cs (2)
1182
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
2086
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\StackedColumnChart.cs (2)
1239
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
1951
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
Common\ChartTypes\StockChart.cs (9)
540
markerSize.
Width
= point.MarkerSize;
545
markerSize.
Width
= point.MarkerSize * graph.Graphics.DpiX / 96;
1007
markerSize.
Width
= point.MarkerSize;
1012
markerSize.
Width
= point.MarkerSize * graph.Graphics.DpiX / 96;
1064
sizeLabel.
Width
+= sizeLabel.Width / text.Length;
1367
markerSize.
Width
= point.MarkerSize;
1372
markerSize.
Width
= point.MarkerSize * graph.Graphics.DpiX / 96;
1874
markerSize.
Width
= point.MarkerSize;
1879
markerSize.
Width
= point.MarkerSize * common.graph.Graphics.DpiX / 96;
Common\General\Axis.cs (18)
2253
axisTitleSize.
Width
= tempValue;
4870
textSize.
Width
= textSize.Height;
5323
axisLabelSize.
Width
+= imageRelSize.Width;
5333
axisLabelSize.
Width
+= spacerSize.Width;
5344
axisLabelSize.
Width
= chartGraph.GetAbsoluteSize(new SizeF(axisLabelSize.Height, axisLabelSize.Height)).Height;
5345
axisLabelSize.
Width
= chartGraph.GetRelativeSize(new SizeF(axisLabelSize.Width, axisLabelSize.Width)).Width;
5497
axisLabelSize.
Width
= Math.Max(axisLabelSize.Width, imageRelSize.Width);
5501
axisLabelSize.
Width
+= imageRelSize.Width;
5512
axisLabelSize.
Width
+= spacerSize.Width;
5732
axisLabelSize.
Width
= Math.Max(axisLabelSize.Width, imageRelSize.Width);
5736
axisLabelSize.
Width
+= imageRelSize.Width;
5747
axisLabelSize.
Width
+= spacerSize.Width;
5766
axisLabelSize.
Width
= (float)Math.Ceiling(axisLabelSize.Width) * 1.05f;
5939
axisLabelSize.
Width
= (float)Math.Ceiling(axisLabelSize.Width);
5951
axisLabelSize.
Width
+= imageRelSize.Width;
5961
axisLabelSize.
Width
+= spacerSize.Width;
5975
axisLabelSize.
Width
= chartGraph.GetAbsoluteSize(new SizeF(axisLabelSize.Height, axisLabelSize.Height)).Height;
5976
axisLabelSize.
Width
= chartGraph.GetRelativeSize(new SizeF(axisLabelSize.Width, axisLabelSize.Width)).Width;
Common\General\ChartArea.cs (2)
2666
areaDiff.
Width
-= titleSize.Width;
2692
textSize.
Width
= (float)Math.Ceiling(textSize.Width * 1.1f);
Common\General\ChartArea3D.cs (1)
2089
interval.
Width
= interval.Width * 100F / ((float)(this.Common.Chart.Width - 1));
Common\General\ChartGraphics.cs (4)
1713
size.
Width
+= 10;
2163
labelSizeWithImage.
Width
+= imageAbsSize.Width;
4701
relative.
Width
= size.Width * 100F / ((float)(_width - 1));
4769
absolute.
Width
= size.Width * (_width - 1) / 100F;
Common\General\Legend.cs (1)
1102
maxSize.
Width
= (maxSize.Width / 100F) * this._maximumLegendAutoSize;
Common\General\StripLine.cs (1)
713
size.
Width
*= size.Width / (textSizeProjection[index].X - textSizeProjection[(index == 0) ? 1 : 0].X);
Common\General\Title.cs (7)
1375
layoutArea.
Width
= layoutArea.Height;
1391
titleSize.
Width
+= titleBorderSpacing;
1399
titleSize.
Width
= titleSize.Height;
1863
layoutArea.
Width
= layoutArea.Height;
1868
layoutArea.
Width
-= 2f * elementSpacing;
1881
titleSize.
Width
+= titleBorderSpacing;
1889
titleSize.
Width
= titleSize.Height;
Common\Utilities\ImageLoader.cs (2)
389
size.
Width
= image.Width * graphics.DpiX / image.HorizontalResolution;
394
size.
Width
= image.Width;
WinForm\Utilities\AccessibleObject.cs (1)
319
rectSize.
Width
*= this._chartScale.X;
1064 references to Width
System.Drawing (21)
commonui\System\Drawing\Advanced\PointF.cs (2)
187
return new PointF(pt.X + sz.
Width
, pt.Y + sz.Height);
196
return new PointF(pt.X - sz.
Width
, pt.Y - sz.Height);
commonui\System\Drawing\Advanced\RectangleF.cs (3)
67
this.width = size.
Width
;
116
this.Width = value.
Width
;
371
Inflate(size.
Width
, size.Height);
commonui\System\Drawing\Advanced\SizeF.cs (9)
113
return sz1.
Width
== sz2.
Width
&& sz1.Height == sz2.Height;
134
return new PointF(size.
Width
, size.Height);
195
return new SizeF(sz1.
Width
+ sz2.
Width
, sz1.Height + sz2.Height);
206
return new SizeF(sz1.
Width
- sz2.
Width
, sz1.Height - sz2.Height);
223
return(comp.
Width
== this.
Width
) &&
commonui\System\Drawing\Advanced\SizeFConverter.cs (2)
125
args[nArg++] = floatConverter.ConvertToString(context, culture, size.
Width
);
135
return new InstanceDescriptor(ctor, new object[] {size.
Width
, size.Height});
commonui\System\Drawing\Graphics.cs (2)
2524
GPRECTF grfLayout = new GPRECTF(0, 0, layoutArea.
Width
, layoutArea.Height);
2588
GPRECTF grfLayout = new GPRECTF(0, 0, layoutArea.
Width
, layoutArea.Height);
commonui\System\Drawing\Size.cs (3)
193
return new Size((int)Math.Ceiling(value.
Width
), (int)Math.Ceiling(value.Height));
211
return new Size((int)value.
Width
, (int)value.Height);
220
return new Size((int)Math.Round(value.
Width
), (int)Math.Round(value.Height));
System.Web.DataVisualization (505)
Common\Annotation\AnnotationBase.cs (22)
2064
rect.X - markerSizeRel.
Width
/2f,
2066
markerSizeRel.
Width
,
2069
rect.Right - markerSizeRel.
Width
/2f,
2071
markerSizeRel.
Width
,
2138
handlePosition.X - markerSizeRel.
Width
/2f,
2140
markerSizeRel.
Width
,
2230
(float)anchorX - markerSizeRel.
Width
/2f,
2232
markerSizeRel.
Width
,
2465
groupScaleX = groupSize.
Width
/ 100.0;
3166
firstPoint.X -= movingDistance.
Width
;
3168
size.Width += movingDistance.
Width
;
3179
size.Width -= movingDistance.
Width
;
3184
size.Width -= movingDistance.
Width
;
3188
size.Width -= movingDistance.
Width
;
3197
firstPoint.X -= movingDistance.
Width
;
3198
size.Width += movingDistance.
Width
;
3203
firstPoint.X -= movingDistance.
Width
;
3204
size.Width += movingDistance.
Width
;
3208
anchorPoint.X -= movingDistance.
Width
;
3213
firstPoint.X -= movingDistance.
Width
;
3541
(float)anchorX - markerSizeRel.
Width
/2f,
3543
markerSizeRel.
Width
,
Common\Annotation\ArrowAnnotation.cs (1)
314
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
Common\Annotation\CalloutAnnotation.cs (5)
651
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
1172
dxAbs -= size.
Width
;
1174
dxAbs += size.
Width
;
1189
ellipseLocation.X - ellipseSize.
Width
/ 2f,
1191
ellipseSize.
Width
,
Common\Annotation\GroupAnnotation.cs (1)
921
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
Common\Annotation\ImageAnnotation.cs (2)
525
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
711
return new RectangleF(float.NaN, float.NaN, imageSize.
Width
, imageSize.Height);
Common\Annotation\LineAnnotation.cs (1)
569
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
Common\Annotation\PolygonAnnotation.cs (2)
566
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
898
pathPoints[pointIndex].X -= movingDistance.
Width
;
Common\Annotation\RectangleAnnotation.cs (2)
389
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
627
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
Common\Annotation\TextAnnotation.cs (7)
419
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
646
textActualPosition.X += textPositionWithSpacing.Width - textSize.
Width
;
652
textActualPosition.X += (textPositionWithSpacing.Width - textSize.
Width
) / 2f;
926
return new RectangleF(float.NaN, float.NaN, contentSize.
Width
, contentSize.Height);
968
if(contentSize.
Width
> 25f)
970
spacingScaleX = contentSize.
Width
/ 25f;
983
result = new RectangleF(float.NaN, float.NaN, contentSize.
Width
, contentSize.Height);
Common\Borders3D\EmbedBorder.cs (20)
67
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize*2f);
81
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize * 2f);
113
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize*2f);
127
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize * 2f);
160
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize*2f);
174
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize * 2f);
206
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize*2f);
220
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize * 2f);
253
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize*2f);
268
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize * 2f);
301
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize*2f);
314
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize * 2f);
683
rect.X += sizeLeftTop.
Width
;
685
rect.Width -= sizeRightBottom.
Width
+ sizeLeftTop.
Width
;
852
if(relSizeLeftTop.
Width
> 30f)
856
if(relSizeRightBottom.
Width
> 30f)
862
areasRect.X += relSizeLeftTop.
Width
;
863
areasRect.Width -= (float)Math.Min(areasRect.Width, relSizeLeftTop.
Width
+ relSizeRightBottom.
Width
);
Common\Borders3D\EmbossBorder.cs (3)
117
if(borderSize.
Width
< 30f)
119
areasRect.X += borderSize.
Width
;
120
areasRect.Width -= (float)Math.Min(areasRect.Width, borderSize.
Width
* 2.5f);
Common\ChartTypes\BarChart.cs (34)
544
(barStartPosition - barSize) < pixelRelSize.
Width
)
546
barSize = barStartPosition - pixelRelSize.
Width
;
549
(barSize - barStartPosition) < pixelRelSize.
Width
)
551
barSize = barStartPosition + pixelRelSize.
Width
;
721
pixelSize = (int)Math.Max(size.
Width
, size.Height);
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)
995
valueTextSize.
Width
> rectLabel.Width - 1 &&
1033
float spacing = valueTextSize.
Width
/ text.Length / 2;
1038
valueTextSize.
Width
,
1049
labelBackPosition.X = rectLabel.X + (rectLabel.Width - valueTextSize.
Width
) / 2f;
1053
labelBackPosition.X = rectLabel.Right - valueTextSize.
Width
- spacing / 2f;
1116
common.HotRegionsList.AddHotRegion( insertIndex, graph, markerPosition.X, markerPosition.Y, relativeMarkerSize.
Width
/2f, point, seriesName, pointIndex );
1123
new RectangleF(markerPosition.X - relativeMarkerSize.
Width
/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.
Width
, relativeMarkerSize.Height),
1453
(barStartPosition - barSize) < pixelRelSize.
Width
)
1455
barSize = barStartPosition - pixelRelSize.
Width
;
1458
(barSize - barStartPosition) < pixelRelSize.
Width
)
1460
barSize = barStartPosition + pixelRelSize.
Width
;
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)
2014
valueTextSize.
Width
> rectLabel.Width - 1 &&
2047
rotationCenter.X = rectLabel.X + size.
Width
/ 2;
2051
rotationCenter.X = rectLabel.Right - size.
Width
/ 2;
2114
SizeF sizeLabel = new SizeF(size.
Width
, size.Height);
2116
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
2118
rotationCenter.X - sizeLabel.
Width
/ 2,
2120
sizeLabel.
Width
,
Common\ChartTypes\BoxPlotChart.cs (10)
507
new PointF(rectSize.Left + relBorderWidth.
Width
, (float)vAxis.GetPosition( point.YValues[4])),
508
new PointF(rectSize.Right - relBorderWidth.
Width
, (float)vAxis.GetPosition( point.YValues[4])),
540
float dashWidth = (rectSize.Width - relBorderWidth.
Width
* 2) / 9f;
544
dashWidth = Math.Max(dashWidth, minSize.
Width
);
546
for(float curPosition = rectSize.Left + relBorderWidth.
Width
; curPosition < (rectSize.Right - relBorderWidth.
Width
); curPosition += dashWidth * 2f)
823
new RectangleF(xPosition, yPosition, markerSize.
Width
, markerSize.Height));
966
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
968
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1324
dashWidth = Math.Max(dashWidth, minSize.
Width
);
Common\ChartTypes\BubbleChart.cs (2)
304
_maxBubleSize = (float)(Math.Min(areaSize.
Width
, areaSize.Height) / (100.0/_maxPossibleBubbleSize));
305
_minBubleSize = (float)(Math.Min(areaSize.
Width
, areaSize.Height) / (100.0/_minPossibleBubbleSize));
Common\ChartTypes\ColumnChart.cs (8)
1152
new RectangleF(markerPosition.X, markerPosition.Y, markerSize.
Width
, markerSize.Height));
1175
circCoord[2] = relativeMarkerSize.
Width
/2f;
1191
new RectangleF(markerPosition.X - relativeMarkerSize.
Width
/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.
Width
, relativeMarkerSize.Height),
1250
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1251
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1372
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1373
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
Common\ChartTypes\ErrorBarChart.cs (3)
880
new RectangleF(xPosition, yPosition, markerSize.
Width
, markerSize.Height));
1023
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1025
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
Common\ChartTypes\FastLineChart.cs (3)
308
double axesValuesPixelSizeX = Math.Abs(hAxis.PositionToValue(axesMin.
Width
+ pixelSize.
Width
, false) - hAxis.PositionToValue(axesMin.
Width
, false));
Common\ChartTypes\FastPointChart.cs (3)
309
double axesValuesPixelSizeX = Math.Abs(hAxis.PositionToValue(axesMin.
Width
+ pixelSize.
Width
, false) - hAxis.PositionToValue(axesMin.
Width
, false));
Common\ChartTypes\FunnelChart.cs (49)
588
plotAreaPositionAbs.X + plotAreaPositionAbs.Width / 2f - this._funnelNeckSize.
Width
/ 2f,
597
plotAreaPositionAbs.X + plotAreaPositionAbs.Width / 2f - this._funnelNeckSize.
Width
/ 2f,
670
if(startWidth < this._funnelNeckSize.
Width
)
672
startWidth = this._funnelNeckSize.
Width
;
674
if(endWidth < this._funnelNeckSize.
Width
)
676
endWidth = this._funnelNeckSize.
Width
;
983
if(startWidth < this._funnelNeckSize.
Width
)
985
startWidth = this._funnelNeckSize.
Width
;
987
if(endWidth < this._funnelNeckSize.
Width
)
989
endWidth = this._funnelNeckSize.
Width
;
1045
startWidth > this._funnelNeckSize.
Width
&&
1046
endWidth <= this._funnelNeckSize.
Width
)
1051
xCenterPointAbs + this._funnelNeckSize.
Width
/ 2f, plotAreaPositionAbs.Top,
1052
xCenterPointAbs + this._funnelNeckSize.
Width
/ 2f, plotAreaPositionAbs.Bottom,
1119
startWidth > this._funnelNeckSize.
Width
&&
1120
endWidth <= this._funnelNeckSize.
Width
)
1125
xCenterPointAbs - this._funnelNeckSize.
Width
/ 2f, plotAreaPositionAbs.Top,
1126
xCenterPointAbs - this._funnelNeckSize.
Width
/ 2f, plotAreaPositionAbs.Bottom,
1535
labelInfo.CalloutPoint2.X -= spacing.
Width
/ 2f;
1542
labelInfo.CalloutPoint2.X += spacing.
Width
/ 2f;
1563
labelBackPosition.Inflate(spacing.
Width
/ 2f, spacing.Height / 8f);
1815
labelInfo.Position.Width = labelInfo.Size.
Width
;
1832
if(topDiameter < this._funnelNeckSize.
Width
)
1834
topDiameter = this._funnelNeckSize.
Width
;
1836
if(bottomDiameter < this._funnelNeckSize.
Width
)
1838
bottomDiameter = this._funnelNeckSize.
Width
;
1842
if(segmentInfo.StartWidth >= this._funnelNeckSize.
Width
&&
1843
segmentInfo.EndWidth < this._funnelNeckSize.
Width
)
1859
4f * labelSpacing.
Width
;
1865
Math.Max(this._funnelNeckSize.
Width
/2f, (topDiameter + bottomDiameter) / 4f);
1877
labelInfo.Size.
Width
-
1878
4f * labelSpacing.
Width
;
1884
Math.Max(this._funnelNeckSize.
Width
/2f, (topDiameter + bottomDiameter) / 4f);
1904
4f * labelSpacing.
Width
;
1909
labelInfo.Size.
Width
-
1911
4f * labelSpacing.
Width
;
1924
4f * labelSpacing.
Width
;
1929
labelInfo.Size.
Width
-
1931
4f * labelSpacing.
Width
;
1943
4f * labelSpacing.
Width
;
1948
labelInfo.Size.
Width
-
1950
4f * labelSpacing.
Width
;
1961
4f * labelSpacing.
Width
;
1972
labelInfo.Size.
Width
-
1973
4f * labelSpacing.
Width
;
1999
labelInfo.Position.X = plotAreaCenterXAbs - labelInfo.Size.
Width
/ 2f;
2395
if (!parseSucceed || neckSize.
Width
< 0 || neckSize.
Width
> 100)
2425
if(neckSize.
Width
> this.PlotAreaPosition.Width/2f)
Common\ChartTypes\PieChart.cs (48)
793
float absRadius = ( absoluteSize.
Width
< absoluteSize.Height ) ? absoluteSize.
Width
: absoluteSize.Height;
802
rectangle = new RectangleF( middlePoint.X - relativeSize.
Width
/ 2, middlePoint.Y - relativeSize.Height / 2, relativeSize.
Width
, relativeSize.Height );
889
double offset = graph.GetRelativeSize( new SizeF( point.series.ShadowOffset, point.series.ShadowOffset ) ).
Width
;
1232
width = relativeSize.
Width
* expShift / positionRatio * ( 1 + ( 100 - doughnutRadius ) / 100F );
1237
width = relativeSize.
Width
* expShift / positionRatio;
1260
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1262
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1309
float x1 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.
Width
* expShift / 2 + middlePoint.X;
1312
float x2 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.
Width
* shift * expShift + middlePoint.X;
1343
x3Overlap = -relativeSize.
Width
* shift * expShift + middlePoint.X - relativeSize.
Width
/ 10 * labelsHorizontalLineSize;
1344
x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.
Width
* shift * expShift + middlePoint.X - relativeSize.
Width
/ 10 * labelsHorizontalLineSize;
1360
x3Overlap = relativeSize.
Width
* shift * expShift + middlePoint.X + relativeSize.
Width
/ 10 * labelsHorizontalLineSize;
1361
x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.
Width
* shift * expShift + middlePoint.X + relativeSize.
Width
/ 10 * labelsHorizontalLineSize;
1403
float spacing = valueTextSize.
Width
/ text.Length / 2;
1408
valueTextSize.
Width
,
1418
labelBackPosition.X = rect.X + (rect.Width - valueTextSize.
Width
) / 2f;
1422
labelBackPosition.X = rect.Right - valueTextSize.
Width
- spacing / 2f;
1720
x3 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.
Width
* shift * expShift + middlePoint.X - relativeSize.
Width
/ 10 * labelsHorizontalLineSize;
1724
x3 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.
Width
* shift * expShift + middlePoint.X + relativeSize.
Width
/ 10 * labelsHorizontalLineSize;
1753
float xOverlap = -relativeSize.
Width
* shift * expShift + middlePoint.X - relativeSize.
Width
/ 10 * labelsHorizontalLineSize;
1754
if( (xOverlap - size.
Width
) < area.Position.X )
1761
float xOverlap = relativeSize.
Width
* shift * expShift + middlePoint.X + relativeSize.
Width
/ 10 * labelsHorizontalLineSize;
1762
if( (xOverlap + size.
Width
) > area.Position.Right )
1772
if( x3 - size.
Width
< area.PlotAreaPosition.ToRectangleF().Left )
1777
if( x3 + size.
Width
> area.PlotAreaPosition.ToRectangleF().Right )
2556
float absRadius = ( absoluteSize.
Width
< absoluteSize.Height ) ? absoluteSize.
Width
: absoluteSize.Height;
2565
rectangle = new RectangleF( middlePoint.X - relativeSize.
Width
/ 2, middlePoint.Y - relativeSize.Height / 2, relativeSize.
Width
, relativeSize.Height );
5321
maxSize = Math.Max( size.
Width
, maxSize );
5501
float spacing = valueTextSize.
Width
/ text.Length / 2;
5506
valueTextSize.
Width
,
5516
labelBackPosition.X = labelPosition.X + (labelPosition.Width - valueTextSize.
Width
) / 2f;
5520
labelBackPosition.X = labelPosition.Right - valueTextSize.
Width
- spacing / 2f;
5576
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
5578
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
5580
labelPosition.X - sizeLabel.
Width
/2,
5582
sizeLabel.
Width
,
Common\ChartTypes\PointAndFigureChart.cs (2)
762
if(markSize.
Width
> markSize.Height)
764
pointCount = (int)(pointAndFigureSeries.Points.Count * (markSize.
Width
/ markSize.Height));
Common\ChartTypes\PointChart.cs (20)
493
new RectangleF(markerPosition.X, markerPosition.Y, markerSize.
Width
, markerSize.Height));
628
common.HotRegionsList.AddHotRegion( insertIndex, graph, markerPosition.X, markerPosition.Y, relativeMarkerSize.
Width
/2f, point, seriesName, pointIndex );
635
new RectangleF(markerPosition.X - relativeMarkerSize.
Width
/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.
Width
, relativeMarkerSize.Height),
707
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
708
float horizontalSpacing = sizeLabel.
Width
/ text.Length;
974
labelPosition.Width = size.
Width
;
986
labelPosition.X = position.X - size.
Width
;
989
labelPosition.X -= 4f*pixelSize.
Width
;
990
labelPosition.Width += 4f*pixelSize.
Width
;
998
labelPosition.Width += 4f*pixelSize.
Width
;
1003
labelPosition.X = position.X - size.
Width
/2F;
1006
labelPosition.X -= 2f*pixelSize.
Width
;
1007
labelPosition.Width += 4f*pixelSize.
Width
;
1235
new RectangleF(markerRotatedPosition.X, markerRotatedPosition.Y, markerSize.
Width
, markerSize.Height),
1285
circCoord[2] = relativeMarkerSize.
Width
/2f;
1316
new RectangleF(markerRotatedPosition.X - relativeMarkerSize.
Width
/2f, markerRotatedPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.
Width
, relativeMarkerSize.Height),
1767
markerPosition.X - markerSize.
Width
/ 2f,
1769
markerSize.
Width
,
Common\ChartTypes\RadarChart.cs (8)
768
new RectangleF(dataPointPos[index].X, dataPointPos[index].Y, markerSize.
Width
, markerSize.Height),
812
circCoord[2] = relativeMarkerSize.
Width
/2f;
829
new RectangleF(relativeMarkerPosition.X - relativeMarkerSize.
Width
/2f, relativeMarkerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.
Width
, relativeMarkerSize.Height),
1075
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1077
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1592
markerPosition.X - markerSize.
Width
/2f,
1594
markerSize.
Width
,
Common\ChartTypes\StackedAreaChart.cs (8)
1042
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1044
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1046
labelPosition.X - sizeLabel.
Width
/ 2,
1048
sizeLabel.
Width
,
1524
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1526
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1528
points[0].PointF.X - sizeLabel.
Width
/ 2,
1530
sizeLabel.
Width
,
Common\ChartTypes\StackedBarChart.cs (13)
1128
labelPosition.X = rectangle.X + sizeFont.
Width
/ 2f;
1132
labelPosition.X = rectangle.Right - sizeFont.
Width
/ 2f;
1136
labelPosition.X = rectangle.Right + sizeFont.
Width
/ 2f;
1180
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1182
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1184
labelPosition.X - sizeLabel.
Width
/ 2,
1186
sizeLabel.
Width
,
1960
rotationCenter.X = rectLabel.X + size.
Width
/ 2;
1964
rotationCenter.X = rectLabel.Right - size.
Width
/ 2;
2084
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
2086
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
2088
rotationCenter.X - sizeLabel.
Width
/ 2,
2090
sizeLabel.
Width
,
Common\ChartTypes\StackedColumnChart.cs (8)
1237
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1239
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1241
labelPosition.X - sizeLabel.
Width
/ 2,
1243
sizeLabel.
Width
,
1949
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1951
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1953
labelPosition.X - sizeLabel.
Width
/ 2,
1955
sizeLabel.
Width
,
Common\ChartTypes\StockChart.cs (12)
571
new RectangleF(markerPosition.X, markerPosition.Y, markerSize.
Width
, markerSize.Height));
588
circCoord[2] = relativeMarkerSize.
Width
/2f;
604
new RectangleF(markerPosition.X - relativeMarkerSize.
Width
/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.
Width
, relativeMarkerSize.Height),
1062
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1064
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1398
new RectangleF(markerPosition.X, markerPosition.Y, markerSize.
Width
, markerSize.Height));
1415
circCoord[2] = relativeMarkerSize.
Width
/2f;
1431
new RectangleF(markerPosition.X - relativeMarkerSize.
Width
/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.
Width
, relativeMarkerSize.Height),
1916
markerPosition.X - markerSize.
Width
/ 2f,
1918
markerSize.
Width
,
Common\DataManager\DataSeries.cs (4)
663
pointDepth = relativeSize.
Width
;
693
pointGapDepth = relativeSize.
Width
;
731
double pixelPointWidth = pointSize.
Width
;
821
pointWidth = pointRelativeSize.
Width
;
Common\General\Axis.cs (62)
1825
_titlePosition.Width = axisTitleSize.
Width
;
1845
axisTitleSize = graph.GetRelativeSize(new SizeF(axisTitleSize.Height, axisTitleSize.
Width
));
1847
_titlePosition.Width = axisTitleSize.
Width
;
1868
_titlePosition.Width = axisTitleSize.
Width
;
1888
axisTitleSize = graph.GetRelativeSize(new SizeF(axisTitleSize.Height, axisTitleSize.
Width
));
1890
_titlePosition.Width = axisTitleSize.
Width
;
2252
axisTitleSize.Height = axisTitleSize.
Width
;
2313
rotationCenter.X = ChartArea.PlotAreaPosition.X + axisTitleSize.
Width
/ 2f;
2317
rotationCenter.X = ChartArea.PlotAreaPosition.Right - axisTitleSize.
Width
/ 2f;
2325
rotationCenter.X = ChartArea.PlotAreaPosition.X + axisTitleSize.
Width
/ 2f;
2329
rotationCenter.X = ChartArea.PlotAreaPosition.Right - axisTitleSize.
Width
/ 2f;
2676
rect.Inflate(size.
Width
, 2);
3404
this.titleSize = Math.Min(titleStringSize.
Width
, maxTitlesize);
3415
titleStringSize = chartGraph.GetRelativeSize(new SizeF(titleStringSize.Height, titleStringSize.
Width
));
3419
this.titleSize = Math.Min(titleStringSize.
Width
, maxTitlesize);
3488
arrowSize = Math.Max(arrowSizePrimary.
Width
, arrowSizeSecondary.
Width
);
3547
this.markSize += borderSize.
Width
/ 2f;
3587
this.markSize += areaWallSize.
Width
;
4869
float tempValue = textSize.
Width
;
4884
float leftSideAngle = (float)(Math.Atan((textSize.
Width
/ 2f) / plotAreaRadius) * 180f / Math.PI);
4952
textSize.
Width
,
4956
curLabelPosition.X = labelPosition[0].X - textSize.
Width
/ 2f;
4961
curLabelPosition.X = labelPosition[0].X - textSize.
Width
/ 2f;
5323
axisLabelSize.Width += imageRelSize.
Width
;
5333
axisLabelSize.Width += spacerSize.
Width
;
5345
axisLabelSize.Width = chartGraph.GetRelativeSize(new SizeF(axisLabelSize.
Width
, axisLabelSize.
Width
)).
Width
;
5346
groupingLabelSizes[groupLevelIndex - 1] = (float)Math.Max(groupingLabelSizes[groupLevelIndex - 1], axisLabelSize.
Width
);
5350
if (Math.Round(axisLabelSize.
Width
) >= Math.Round(rect.Width) &&
5472
(axisLabelSize.
Width
== 0f ||
5497
axisLabelSize.Width = Math.Max(axisLabelSize.
Width
, imageRelSize.
Width
);
5501
axisLabelSize.Width += imageRelSize.
Width
;
5512
axisLabelSize.Width += spacerSize.
Width
;
5518
float width = axisLabelSize.
Width
;
5528
width += (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.
Width
;
5531
height += (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.
Width
;
5535
width = (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.
Width
;
5538
height = (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.
Width
;
5708
if (axisLabelSize.
Width
== 0f || axisLabelSize.Height == 0f)
5732
axisLabelSize.Width = Math.Max(axisLabelSize.
Width
, imageRelSize.
Width
);
5736
axisLabelSize.Width += imageRelSize.
Width
;
5747
axisLabelSize.Width += spacerSize.
Width
;
5753
float width = axisLabelSize.
Width
;
5757
width = (float)Math.Cos((90 - Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.
Width
;
5761
height += (float)Math.Sin((90 - Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.
Width
;
5766
axisLabelSize.Width = (float)Math.Ceiling(axisLabelSize.
Width
) * 1.05f;
5779
labelNearOffset = (float)Math.Min(labelNearOffset, (fromPosition + toPosition) / 2f - axisLabelSize.
Width
/ 2f);
5780
labelFarOffset = (float)Math.Max(labelFarOffset, (fromPosition + toPosition) / 2f + axisLabelSize.
Width
/ 2f);
5804
resultSize = Math.Max(resultSize, axisLabelSize.
Width
);
5805
resultRotatedSize = Math.Max(resultRotatedSize, axisLabelSize.
Width
);
5813
resultSize = Math.Max(resultSize, axisLabelSize.
Width
);
5939
axisLabelSize.Width = (float)Math.Ceiling(axisLabelSize.
Width
);
5951
axisLabelSize.Width += imageRelSize.
Width
;
5961
axisLabelSize.Width += spacerSize.
Width
;
5976
axisLabelSize.Width = chartGraph.GetRelativeSize(new SizeF(axisLabelSize.
Width
, axisLabelSize.
Width
)).
Width
;
5977
resultSize[groupLevelIndex - 1] = Math.Max(resultSize[groupLevelIndex - 1], axisLabelSize.
Width
);
Common\General\ChartArea.cs (11)
1573
plottingRect.Width -= areaWallSize.
Width
;
1577
plottingRect.X += areaWallSize.
Width
;
1578
plottingRect.Width -= areaWallSize.
Width
;
2645
this.AxisY.labelSize = relativeLabelSize.
Width
;
2646
this.AxisY2.labelSize = relativeLabelSize.
Width
;
2666
areaDiff.Width -= titleSize.
Width
;
2692
textSize.Width = (float)Math.Ceiling(textSize.
Width
* 1.1f);
2710
float width = (float)Math.Cos(textAngle/180F*Math.PI) * textSize.
Width
;
2711
float height = (float)Math.Sin(textAngle/180F*Math.PI) * textSize.
Width
;
2716
width -= areaDiff.
Width
;
2744
float width = textSize.
Width
;
Common\General\ChartArea3D.cs (10)
713
position.Width += areaSceneWallWidth.
Width
;
716
position.X -= areaSceneWallWidth.
Width
;
725
float wallDepth = areaSceneWallWidth.
Width
;
748
wallRect2D.Width = areaSceneWallWidth.
Width
;
752
wallRect2D.X = position.Right - areaSceneWallWidth.
Width
;
772
wallRect2D.Width -= areaSceneWallWidth.
Width
;
775
wallRect2D.X += areaSceneWallWidth.
Width
;
2092
interval.Width = interval.
Width
* 100F / ((float)(this.Common.Chart.Width.Value - 1));
2123
Math.Abs(points[1].X - points[0].X) >= interval.
Width
)
2133
Math.Abs(points[1].Z - points[0].Z) >= interval.
Width
)
Common\General\ChartGraphics.cs (37)
718
imageScaleRect.Width = size.
Width
;
1719
new PointF(absCenter.X - size.
Width
/ 2f, absCenter.Y - size.Height / 2f),
1720
new PointF(absCenter.X + size.
Width
/ 2f, absCenter.Y - size.Height / 2f),
1721
new PointF(absCenter.X + size.
Width
/ 2f, absCenter.Y + size.Height / 2f),
1722
new PointF(absCenter.X - size.
Width
/ 2f, absCenter.Y + size.Height / 2f)};
1986
labelRect.Width = labelSize.
Width
;
1990
labelRect.X = absPosition.Right - labelSize.
Width
;
1998
labelRect.X = absPosition.X + absPosition.Width / 2F - labelSize.
Width
/ 2F;
2136
absPositionWithoutImage.Width -= imageAbsSize.
Width
;
2137
absPositionWithoutImage.X += imageAbsSize.
Width
;
2160
SizeF labelSizeWithImage = new SizeF(labelSize.
Width
, labelSize.Height);
2163
labelSizeWithImage.Width += imageAbsSize.
Width
;
2290
absPosition.X + (absPosition.Width - imageAbsSize.
Width
- labelSize.
Width
) / 2,
2292
imageAbsSize.
Width
,
2310
imageRect.X = absPosition.X + (absPosition.Width - imageAbsSize.
Width
- labelSize.
Width
) / 2;
2314
imageRect.X = absPosition.Right - imageAbsSize.
Width
- labelSize.
Width
;
2572
leftLine[2].X = (float)Math.Round((double)center.X - labelSize.
Width
/2F - 1F);
2579
rightLine[2].X = (float)Math.Round((double)center.X + labelSize.
Width
/2F - 1F);
2681
return new Size( (int)Math.Ceiling(size.
Width
), (int)Math.Ceiling(size.Height));
2697
return new Size( (int)Math.Ceiling(size.
Width
), (int)Math.Ceiling(size.Height));
2781
rotationCenter.X = rect.X + size.
Width
/ 2;
2786
rotationCenter.X = rect.Right - size.
Width
/ 2;
3547
imageRect.Width = Math.Min(fillRect.Width, imageAbsSize.
Width
);
3597
(backImageWrapMode == ChartImageWrapMode.Unscaled) ? imageRect.Width * image.Width / imageAbsSize.
Width
: image.Width,
4228
imageRect.Width = imageAbsSize.
Width
;
4524
imageRect.Width = imageSize.
Width
;
4701
relative.Width = size.
Width
* 100F / ((float)(_width - 1));
4769
absolute.Width = size.
Width
* (_width - 1) / 100F;
5412
size = GetAbsoluteSize( new SizeF((float)size, (float)size) ).
Width
;
5441
size = GetAbsoluteSize( new SizeF((float)size, (float)size) ).
Width
;
5466
size = GetAbsoluteSize( new SizeF((float)size, (float)size) ).
Width
;
5467
shift = GetAbsoluteSize( new SizeF((float)shift,(float)shift) ).
Width
;
5491
size = GetAbsoluteSize( new SizeF((float)size, (float)size) ).
Width
;
5492
shift = GetAbsoluteSize( new SizeF((float)shift,(float)shift) ).
Width
;
Common\General\ChartGraphics3D.cs (15)
3114
gradientPoints[4] = new Point3D( position.X + sizeRel.
Width
, position.Top + position.Height / 2f, positionZ + depth );
3115
gradientPoints[5] = new Point3D( position.Right - sizeRel.
Width
, position.Top + position.Height / 2f, positionZ + depth );
3246
gradientRect.Inflate(-shadowSizeRel.
Width
, -shadowSizeRel.Height);
3302
gradientRect.Inflate(-shadowSizeRel.
Width
, -shadowSizeRel.Height);
3375
gradientPoints[3] = new Point3D( position.Right - shadowSizeRel.
Width
, position.Top + shadowSizeRel.Height, positionZ + depth );
3376
gradientPoints[4] = new Point3D( position.Left + shadowSizeRel.
Width
, position.Top + shadowSizeRel.Height, positionZ + depth );
3377
gradientPoints[5] = new Point3D( position.Left + shadowSizeRel.
Width
, position.Bottom - shadowSizeRel.Height, positionZ + depth );
3406
gradientPoints[3] = new Point3D( position.Left + shadowSizeRel.
Width
, position.Bottom - shadowSizeRel.Height, positionZ + depth );
3407
gradientPoints[4] = new Point3D( position.Right - shadowSizeRel.
Width
, position.Bottom - shadowSizeRel.Height, positionZ + depth );
3408
gradientPoints[5] = new Point3D( position.Right - shadowSizeRel.
Width
, position.Top + shadowSizeRel.Height, positionZ + depth );
3607
Point3D[] centerPoint = new Point3D[] { new Point3D(point.X, point.Y, positionZ + markerRelativeSize.
Width
) };
3632
rectNonRotated.X = point.X - ((float)markerRelativeSize.
Width
) / 2F;
3634
rectNonRotated.Width = markerRelativeSize.
Width
;
3640
positionZ - markerRelativeSize.
Width
/ 2f,
3641
markerRelativeSize.
Width
,
Common\General\GridTickMarks.cs (12)
835
point1.X -= area.areaSceneWallWidth.
Width
;
841
point2.X += area.areaSceneWallWidth.
Width
;
853
if(axisOnEdge && area.areaSceneWallWidth.
Width
!= 0f)
865
point3 = new Point3D(point1.X, point1.Y, - area.areaSceneWallWidth.
Width
);
874
point4 = new Point3D(point1.X, point1.Y, - _size - area.areaSceneWallWidth.
Width
);
882
point4 = new Point3D(point1.X, point1.Y, - _size/2 - area.areaSceneWallWidth.
Width
);
906
point3 = new Point3D(point1.X, point1.Y, - area.areaSceneWallWidth.
Width
);
915
point4 = new Point3D(axisPosition, point1.Y, - _size - area.areaSceneWallWidth.
Width
);
923
point4 = new Point3D(axisPosition, point1.Y, - _size/2 - area.areaSceneWallWidth.
Width
);
947
point3 = new Point3D(point2.X, point2.Y, - area.areaSceneWallWidth.
Width
);
956
point4 = new Point3D(axisPosition, point1.Y, - _size - area.areaSceneWallWidth.
Width
);
965
point4 = new Point3D(axisPosition, point1.Y, - _size/2 - area.areaSceneWallWidth.
Width
);
Common\General\Label.cs (8)
1324
labelPosition.Width = size.
Width
;
1329
labelPosition.X = position.X - size.
Width
;
1337
labelPosition.X = position.X - size.
Width
/2F;
2005
labelsZPosition -= this._axis.ChartArea.areaSceneWallWidth.
Width
;
2009
labelsZPosition -= this._axis.MajorTickMark.Size + this._axis.ChartArea.areaSceneWallWidth.
Width
;
2013
labelsZPosition -= this._axis.MajorTickMark.Size / 2f + this._axis.ChartArea.areaSceneWallWidth.
Width
;
2262
if (rect.Width < pixelSize.
Width
)
2264
rect.Width = pixelSize.
Width
;
Common\General\Legend.cs (11)
888
Size maxSize = new Size((int)maxSizeAbs.
Width
, (int)maxSizeAbs.Height);
1102
maxSize.Width = (maxSize.
Width
/ 100F) * this._maximumLegendAutoSize;
1106
if(maxSize.
Width
<= 0 || maxSize.Height <= 0)
1113
legendPosition.Width = legendSize.
Width
;
1114
if(float.IsNaN(legendSize.Height) || float.IsNaN(legendSize.
Width
))
1129
legendPosition.X = chartAreasRectangle.Right - legendSize.
Width
- elementSpacing;
1133
legendPosition.X = chartAreasRectangle.X + (chartAreasRectangle.Width - legendSize.
Width
) / 2F;
1149
legendPosition.X = chartAreasRectangle.Right - legendSize.
Width
- elementSpacing;
1153
legendPosition.X = chartAreasRectangle.X + (chartAreasRectangle.Width - legendSize.
Width
) / 2F;
1181
legendPosition.X = chartAreasRectangle.Right - legendSize.
Width
- elementSpacing;
4707
if(legendPixelSize.
Width
< legendPixelSize.Height)
Common\General\LegendColumns.cs (5)
1512
cellSize.Width = (int)imageSize.
Width
;
2099
imagePosition.Width = (int)imageSize.
Width
;
2226
int newWidth = (int)(this.SeriesSymbolSize.Width * singleWCharacterSize.
Width
/ 100f);
2296
imageScale.Width = (int)imageSize.
Width
;
2437
imageScale.Width = (int)imageSize.
Width
;
Common\General\Selection.cs (6)
859
circleCenter.X - circleRadius.
Width
,
860
circleCenter.Y - circleRadius.
Width
,
861
2 * circleRadius.
Width
,
862
2 * circleRadius.
Width
3093
rect1.Inflate(size.
Width
, 2);
3177
rect.Inflate(relSize.
Width
, relSize.Height);
Common\General\SmartLabels.cs (10)
815
markerSize.
Width
+ labelMovement*(pixelSize.
Width
* 2f),
1414
labelPosition.Width = size.
Width
;
1426
labelPosition.X = position.X - size.
Width
;
1429
labelPosition.X -= 4f*pixelSize.
Width
;
1430
labelPosition.Width += 4f*pixelSize.
Width
;
1438
labelPosition.Width += 4f*pixelSize.
Width
;
1443
labelPosition.X = position.X - size.
Width
/2F;
1446
labelPosition.X -= 2f*pixelSize.
Width
;
1447
labelPosition.Width += 4f*pixelSize.
Width
;
Common\General\StripLine.cs (8)
492
lineRect.X = point1.X - relBorderWidth.
Width
/ 2f;
494
lineRect.Width = relBorderWidth.
Width
;
705
textSizeProjection[1] = new Point3D(size.
Width
, 0f, zPositon);
713
size.Width *= size.
Width
/ (textSizeProjection[index].X - textSizeProjection[(index == 0) ? 1 : 0].X);
725
rotationCenter.X = rect.X + size.
Width
/ 2 + sizeBorder.
Width
;
729
rotationCenter.X = rect.Right - size.
Width
/ 2 - sizeBorder.
Width
;
Common\General\Title.cs (9)
1374
float tempValue = layoutArea.
Width
;
1398
float tempValue = titleSize.
Width
;
1409
titlePosition.Width = titleSize.
Width
;
1488
titleSize.
Width
,
1862
float tempValue = layoutArea.
Width
;
1888
float tempValue = titleSize.
Width
;
1896
titlePosition.Width = titleSize.
Width
;
1897
if(float.IsNaN(titleSize.Height) || float.IsNaN(titleSize.
Width
))
1946
titlePosition.X = chartAreasRectangle.Right - titleSize.
Width
- elementSpacing;
System.Web.Mobile (1)
UI\MobileControls\Design\Util\ImageCreator.cs (1)
124
int strPelLen = (int) g.MeasureString(controlID, boldFont).
Width
;
System.Windows.Forms (33)
winforms\Managed\System\WinForms\ComboBox.cs (1)
2149
if (factor.
Width
!= 1F && factor.Height != 1F) {
winforms\Managed\System\WinForms\ContainerControl.cs (3)
92
if (value.
Width
< 0 || value.Height < 0) {
120
return new SizeF(current.
Width
/ saved.
Width
, current.Height / saved.Height);
winforms\Managed\System\WinForms\Control.cs (4)
6591
float dx = factor.
Width
;
11499
float dx = factor.
Width
;
11539
factor.
Width
,
11545
factor.
Width
,
winforms\Managed\System\WinForms\DataGrid.cs (1)
4771
size = (int) g.MeasureString(columnName, headerFont).
Width
+ layout.ColumnHeaders.Height + 1; // This is not a bug, the sort triangle's width is equal to it's height.
winforms\Managed\System\WinForms\DataGridCaption.cs (1)
467
Size textSize = new Size((int) g.MeasureString(text, this.Font).
Width
+ 2, this.Font.Height + 2);
winforms\Managed\System\WinForms\DataGridParentRows.cs (2)
588
int size = (int) g.MeasureString(displayTableName, textFont).
Width
;
607
int size = (int) g.MeasureString(colName, font).
Width
;
winforms\Managed\System\WinForms\DataGridTable.cs (2)
384
focusedTextWidth = (int) Math.Ceiling(g.MeasureString(((string) RelationsList[focusedRelation]), DataGrid.LinkFont).
Width
);
918
int rwidth = (int) Math.Ceiling(g.MeasureString(((string) this.RelationsList[r]), this.DataGrid.LinkFont).
Width
)
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
246
int titleWidth = (int) graphics.MeasureString(title, Font).
Width
;
winforms\Managed\System\WinForms\Form.cs (3)
613
return new Size((int)Math.Round(real.
Width
), (int)Math.Round(real.Height));
3372
Size newVar = new Size((int)Math.Round(newVarF.
Width
), (int)Math.Round(newVarF.Height));
4109
float stringWidth = graphics.MeasureString(magicString, font).
Width
;
winforms\Managed\System\WinForms\GroupBox.cs (1)
737
if (factor.
Width
!= 1F && factor.Height != 1F) {
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (2)
705
anchorInfo.Left = (int)((float)anchorInfo.Left * factor.
Width
);
707
anchorInfo.Right = (int)((float)anchorInfo.Right * factor.
Width
);
winforms\Managed\System\WinForms\ListBox.cs (2)
2056
if (factor.
Width
!= 1F && factor.Height != 1F) {
2240
width = (int)(Math.Ceiling(graphics.MeasureString(GetItemText(item), this.Font).
Width
));
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
1408
cacheItems.lastLabelWidth = (int) textSize.
Width
;
1426
cacheItems.lastValueTextWidth = (int) g.MeasureString(valueString, f).
Width
;
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (1)
323
int detailsWidth = (int) Math.Ceiling(sizef.
Width
);
winforms\Managed\System\WinForms\ScrollableControl.cs (1)
814
ScaleDockPadding(factor.
Width
, factor.Height);
winforms\Managed\System\WinForms\SplitContainer.cs (1)
1891
scale = factor.
Width
;
winforms\Managed\System\WinForms\TableLayoutPanel.cs (2)
528
cs.Width = (float)Math.Round(lastColumnHeight * factor.
Width
);
531
cs.Width = (float)Math.Round(cs.Width * factor.
Width
);
winforms\Managed\System\WinForms\ToolBar.cs (1)
841
currentScaleDX = factor.
Width
;
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1735
MinimumSize = ScaleSize(minSize, factor.
Width
, factor.Height);
1738
MaximumSize = ScaleSize(maxSize, factor.
Width
, factor.Height);
System.Windows.Forms.DataVisualization (490)
Common\Annotation\AnnotationBase.cs (22)
2064
rect.X - markerSizeRel.
Width
/2f,
2066
markerSizeRel.
Width
,
2069
rect.Right - markerSizeRel.
Width
/2f,
2071
markerSizeRel.
Width
,
2138
handlePosition.X - markerSizeRel.
Width
/2f,
2140
markerSizeRel.
Width
,
2230
(float)anchorX - markerSizeRel.
Width
/2f,
2232
markerSizeRel.
Width
,
2465
groupScaleX = groupSize.
Width
/ 100.0;
3166
firstPoint.X -= movingDistance.
Width
;
3168
size.Width += movingDistance.
Width
;
3179
size.Width -= movingDistance.
Width
;
3184
size.Width -= movingDistance.
Width
;
3188
size.Width -= movingDistance.
Width
;
3197
firstPoint.X -= movingDistance.
Width
;
3198
size.Width += movingDistance.
Width
;
3203
firstPoint.X -= movingDistance.
Width
;
3204
size.Width += movingDistance.
Width
;
3208
anchorPoint.X -= movingDistance.
Width
;
3213
firstPoint.X -= movingDistance.
Width
;
3541
(float)anchorX - markerSizeRel.
Width
/2f,
3543
markerSizeRel.
Width
,
Common\Annotation\ArrowAnnotation.cs (1)
314
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
Common\Annotation\CalloutAnnotation.cs (5)
651
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
1172
dxAbs -= size.
Width
;
1174
dxAbs += size.
Width
;
1189
ellipseLocation.X - ellipseSize.
Width
/ 2f,
1191
ellipseSize.
Width
,
Common\Annotation\GroupAnnotation.cs (1)
921
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
Common\Annotation\ImageAnnotation.cs (2)
525
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
711
return new RectangleF(float.NaN, float.NaN, imageSize.
Width
, imageSize.Height);
Common\Annotation\LineAnnotation.cs (1)
569
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
Common\Annotation\PolygonAnnotation.cs (2)
566
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
898
pathPoints[pointIndex].X -= movingDistance.
Width
;
Common\Annotation\RectangleAnnotation.cs (2)
389
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
627
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
Common\Annotation\TextAnnotation.cs (7)
419
PointF secondPoint = new PointF(firstPoint.X + size.
Width
, firstPoint.Y + size.Height);
646
textActualPosition.X += textPositionWithSpacing.Width - textSize.
Width
;
652
textActualPosition.X += (textPositionWithSpacing.Width - textSize.
Width
) / 2f;
926
return new RectangleF(float.NaN, float.NaN, contentSize.
Width
, contentSize.Height);
968
if(contentSize.
Width
> 25f)
970
spacingScaleX = contentSize.
Width
/ 25f;
983
result = new RectangleF(float.NaN, float.NaN, contentSize.
Width
, contentSize.Height);
Common\Borders3D\EmbedBorder.cs (20)
67
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize*2f);
81
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize * 2f);
113
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize*2f);
127
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize * 2f);
160
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize*2f);
174
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize * 2f);
206
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize*2f);
220
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize * 2f);
253
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize*2f);
268
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize * 2f);
301
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize*2f);
314
sizeLeftTop = new SizeF(sizeLeftTop.
Width
, defaultRadiusSize * 2f);
683
rect.X += sizeLeftTop.
Width
;
685
rect.Width -= sizeRightBottom.
Width
+ sizeLeftTop.
Width
;
852
if(relSizeLeftTop.
Width
> 30f)
856
if(relSizeRightBottom.
Width
> 30f)
862
areasRect.X += relSizeLeftTop.
Width
;
863
areasRect.Width -= (float)Math.Min(areasRect.Width, relSizeLeftTop.
Width
+ relSizeRightBottom.
Width
);
Common\Borders3D\EmbossBorder.cs (3)
117
if(borderSize.
Width
< 30f)
119
areasRect.X += borderSize.
Width
;
120
areasRect.Width -= (float)Math.Min(areasRect.Width, borderSize.
Width
* 2.5f);
Common\ChartTypes\BarChart.cs (34)
544
(barStartPosition - barSize) < pixelRelSize.
Width
)
546
barSize = barStartPosition - pixelRelSize.
Width
;
549
(barSize - barStartPosition) < pixelRelSize.
Width
)
551
barSize = barStartPosition + pixelRelSize.
Width
;
721
pixelSize = (int)Math.Max(size.
Width
, size.Height);
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)
995
valueTextSize.
Width
> rectLabel.Width - 1 &&
1033
float spacing = valueTextSize.
Width
/ text.Length / 2;
1038
valueTextSize.
Width
,
1049
labelBackPosition.X = rectLabel.X + (rectLabel.Width - valueTextSize.
Width
) / 2f;
1053
labelBackPosition.X = rectLabel.Right - valueTextSize.
Width
- spacing / 2f;
1116
common.HotRegionsList.AddHotRegion( insertIndex, graph, markerPosition.X, markerPosition.Y, relativeMarkerSize.
Width
/2f, point, seriesName, pointIndex );
1123
new RectangleF(markerPosition.X - relativeMarkerSize.
Width
/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.
Width
, relativeMarkerSize.Height),
1453
(barStartPosition - barSize) < pixelRelSize.
Width
)
1455
barSize = barStartPosition - pixelRelSize.
Width
;
1458
(barSize - barStartPosition) < pixelRelSize.
Width
)
1460
barSize = barStartPosition + pixelRelSize.
Width
;
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)
2014
valueTextSize.
Width
> rectLabel.Width - 1 &&
2047
rotationCenter.X = rectLabel.X + size.
Width
/ 2;
2051
rotationCenter.X = rectLabel.Right - size.
Width
/ 2;
2114
SizeF sizeLabel = new SizeF(size.
Width
, size.Height);
2116
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
2118
rotationCenter.X - sizeLabel.
Width
/ 2,
2120
sizeLabel.
Width
,
Common\ChartTypes\BoxPlotChart.cs (10)
507
new PointF(rectSize.Left + relBorderWidth.
Width
, (float)vAxis.GetPosition( point.YValues[4])),
508
new PointF(rectSize.Right - relBorderWidth.
Width
, (float)vAxis.GetPosition( point.YValues[4])),
540
float dashWidth = (rectSize.Width - relBorderWidth.
Width
* 2) / 9f;
544
dashWidth = Math.Max(dashWidth, minSize.
Width
);
546
for(float curPosition = rectSize.Left + relBorderWidth.
Width
; curPosition < (rectSize.Right - relBorderWidth.
Width
); curPosition += dashWidth * 2f)
823
new RectangleF(xPosition, yPosition, markerSize.
Width
, markerSize.Height));
966
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
968
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1324
dashWidth = Math.Max(dashWidth, minSize.
Width
);
Common\ChartTypes\BubbleChart.cs (2)
304
_maxBubleSize = (float)(Math.Min(areaSize.
Width
, areaSize.Height) / (100.0/_maxPossibleBubbleSize));
305
_minBubleSize = (float)(Math.Min(areaSize.
Width
, areaSize.Height) / (100.0/_minPossibleBubbleSize));
Common\ChartTypes\ColumnChart.cs (8)
1152
new RectangleF(markerPosition.X, markerPosition.Y, markerSize.
Width
, markerSize.Height));
1175
circCoord[2] = relativeMarkerSize.
Width
/2f;
1191
new RectangleF(markerPosition.X - relativeMarkerSize.
Width
/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.
Width
, relativeMarkerSize.Height),
1250
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1251
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1372
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1373
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
Common\ChartTypes\ErrorBarChart.cs (3)
880
new RectangleF(xPosition, yPosition, markerSize.
Width
, markerSize.Height));
1023
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1025
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
Common\ChartTypes\FastLineChart.cs (3)
308
double axesValuesPixelSizeX = Math.Abs(hAxis.PositionToValue(axesMin.
Width
+ pixelSize.
Width
, false) - hAxis.PositionToValue(axesMin.
Width
, false));
Common\ChartTypes\FastPointChart.cs (3)
309
double axesValuesPixelSizeX = Math.Abs(hAxis.PositionToValue(axesMin.
Width
+ pixelSize.
Width
, false) - hAxis.PositionToValue(axesMin.
Width
, false));
Common\ChartTypes\FunnelChart.cs (49)
588
plotAreaPositionAbs.X + plotAreaPositionAbs.Width / 2f - this._funnelNeckSize.
Width
/ 2f,
597
plotAreaPositionAbs.X + plotAreaPositionAbs.Width / 2f - this._funnelNeckSize.
Width
/ 2f,
670
if(startWidth < this._funnelNeckSize.
Width
)
672
startWidth = this._funnelNeckSize.
Width
;
674
if(endWidth < this._funnelNeckSize.
Width
)
676
endWidth = this._funnelNeckSize.
Width
;
983
if(startWidth < this._funnelNeckSize.
Width
)
985
startWidth = this._funnelNeckSize.
Width
;
987
if(endWidth < this._funnelNeckSize.
Width
)
989
endWidth = this._funnelNeckSize.
Width
;
1045
startWidth > this._funnelNeckSize.
Width
&&
1046
endWidth <= this._funnelNeckSize.
Width
)
1051
xCenterPointAbs + this._funnelNeckSize.
Width
/ 2f, plotAreaPositionAbs.Top,
1052
xCenterPointAbs + this._funnelNeckSize.
Width
/ 2f, plotAreaPositionAbs.Bottom,
1119
startWidth > this._funnelNeckSize.
Width
&&
1120
endWidth <= this._funnelNeckSize.
Width
)
1125
xCenterPointAbs - this._funnelNeckSize.
Width
/ 2f, plotAreaPositionAbs.Top,
1126
xCenterPointAbs - this._funnelNeckSize.
Width
/ 2f, plotAreaPositionAbs.Bottom,
1535
labelInfo.CalloutPoint2.X -= spacing.
Width
/ 2f;
1542
labelInfo.CalloutPoint2.X += spacing.
Width
/ 2f;
1563
labelBackPosition.Inflate(spacing.
Width
/ 2f, spacing.Height / 8f);
1815
labelInfo.Position.Width = labelInfo.Size.
Width
;
1832
if(topDiameter < this._funnelNeckSize.
Width
)
1834
topDiameter = this._funnelNeckSize.
Width
;
1836
if(bottomDiameter < this._funnelNeckSize.
Width
)
1838
bottomDiameter = this._funnelNeckSize.
Width
;
1842
if(segmentInfo.StartWidth >= this._funnelNeckSize.
Width
&&
1843
segmentInfo.EndWidth < this._funnelNeckSize.
Width
)
1859
4f * labelSpacing.
Width
;
1865
Math.Max(this._funnelNeckSize.
Width
/2f, (topDiameter + bottomDiameter) / 4f);
1877
labelInfo.Size.
Width
-
1878
4f * labelSpacing.
Width
;
1884
Math.Max(this._funnelNeckSize.
Width
/2f, (topDiameter + bottomDiameter) / 4f);
1904
4f * labelSpacing.
Width
;
1909
labelInfo.Size.
Width
-
1911
4f * labelSpacing.
Width
;
1924
4f * labelSpacing.
Width
;
1929
labelInfo.Size.
Width
-
1931
4f * labelSpacing.
Width
;
1943
4f * labelSpacing.
Width
;
1948
labelInfo.Size.
Width
-
1950
4f * labelSpacing.
Width
;
1961
4f * labelSpacing.
Width
;
1972
labelInfo.Size.
Width
-
1973
4f * labelSpacing.
Width
;
1999
labelInfo.Position.X = plotAreaCenterXAbs - labelInfo.Size.
Width
/ 2f;
2395
if (!parseSucceed || neckSize.
Width
< 0 || neckSize.
Width
> 100)
2425
if(neckSize.
Width
> this.PlotAreaPosition.Width/2f)
Common\ChartTypes\PieChart.cs (48)
793
float absRadius = ( absoluteSize.
Width
< absoluteSize.Height ) ? absoluteSize.
Width
: absoluteSize.Height;
802
rectangle = new RectangleF( middlePoint.X - relativeSize.
Width
/ 2, middlePoint.Y - relativeSize.Height / 2, relativeSize.
Width
, relativeSize.Height );
889
double offset = graph.GetRelativeSize( new SizeF( point.series.ShadowOffset, point.series.ShadowOffset ) ).
Width
;
1232
width = relativeSize.
Width
* expShift / positionRatio * ( 1 + ( 100 - doughnutRadius ) / 100F );
1237
width = relativeSize.
Width
* expShift / positionRatio;
1260
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1262
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1309
float x1 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.
Width
* expShift / 2 + middlePoint.X;
1312
float x2 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.
Width
* shift * expShift + middlePoint.X;
1343
x3Overlap = -relativeSize.
Width
* shift * expShift + middlePoint.X - relativeSize.
Width
/ 10 * labelsHorizontalLineSize;
1344
x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.
Width
* shift * expShift + middlePoint.X - relativeSize.
Width
/ 10 * labelsHorizontalLineSize;
1360
x3Overlap = relativeSize.
Width
* shift * expShift + middlePoint.X + relativeSize.
Width
/ 10 * labelsHorizontalLineSize;
1361
x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.
Width
* shift * expShift + middlePoint.X + relativeSize.
Width
/ 10 * labelsHorizontalLineSize;
1403
float spacing = valueTextSize.
Width
/ text.Length / 2;
1408
valueTextSize.
Width
,
1418
labelBackPosition.X = rect.X + (rect.Width - valueTextSize.
Width
) / 2f;
1422
labelBackPosition.X = rect.Right - valueTextSize.
Width
- spacing / 2f;
1720
x3 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.
Width
* shift * expShift + middlePoint.X - relativeSize.
Width
/ 10 * labelsHorizontalLineSize;
1724
x3 = (float)Math.Cos( (midAngle) * Math.PI / 180 ) * relativeSize.
Width
* shift * expShift + middlePoint.X + relativeSize.
Width
/ 10 * labelsHorizontalLineSize;
1753
float xOverlap = -relativeSize.
Width
* shift * expShift + middlePoint.X - relativeSize.
Width
/ 10 * labelsHorizontalLineSize;
1754
if( (xOverlap - size.
Width
) < area.Position.X )
1761
float xOverlap = relativeSize.
Width
* shift * expShift + middlePoint.X + relativeSize.
Width
/ 10 * labelsHorizontalLineSize;
1762
if( (xOverlap + size.
Width
) > area.Position.Right )
1772
if( x3 - size.
Width
< area.PlotAreaPosition.ToRectangleF().Left )
1777
if( x3 + size.
Width
> area.PlotAreaPosition.ToRectangleF().Right )
2556
float absRadius = ( absoluteSize.
Width
< absoluteSize.Height ) ? absoluteSize.
Width
: absoluteSize.Height;
2565
rectangle = new RectangleF( middlePoint.X - relativeSize.
Width
/ 2, middlePoint.Y - relativeSize.Height / 2, relativeSize.
Width
, relativeSize.Height );
5321
maxSize = Math.Max( size.
Width
, maxSize );
5501
float spacing = valueTextSize.
Width
/ text.Length / 2;
5506
valueTextSize.
Width
,
5516
labelBackPosition.X = labelPosition.X + (labelPosition.Width - valueTextSize.
Width
) / 2f;
5520
labelBackPosition.X = labelPosition.Right - valueTextSize.
Width
- spacing / 2f;
5576
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
5578
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
5580
labelPosition.X - sizeLabel.
Width
/2,
5582
sizeLabel.
Width
,
Common\ChartTypes\PointAndFigureChart.cs (2)
762
if(markSize.
Width
> markSize.Height)
764
pointCount = (int)(pointAndFigureSeries.Points.Count * (markSize.
Width
/ markSize.Height));
Common\ChartTypes\PointChart.cs (20)
493
new RectangleF(markerPosition.X, markerPosition.Y, markerSize.
Width
, markerSize.Height));
628
common.HotRegionsList.AddHotRegion( insertIndex, graph, markerPosition.X, markerPosition.Y, relativeMarkerSize.
Width
/2f, point, seriesName, pointIndex );
635
new RectangleF(markerPosition.X - relativeMarkerSize.
Width
/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.
Width
, relativeMarkerSize.Height),
707
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
708
float horizontalSpacing = sizeLabel.
Width
/ text.Length;
974
labelPosition.Width = size.
Width
;
986
labelPosition.X = position.X - size.
Width
;
989
labelPosition.X -= 4f*pixelSize.
Width
;
990
labelPosition.Width += 4f*pixelSize.
Width
;
998
labelPosition.Width += 4f*pixelSize.
Width
;
1003
labelPosition.X = position.X - size.
Width
/2F;
1006
labelPosition.X -= 2f*pixelSize.
Width
;
1007
labelPosition.Width += 4f*pixelSize.
Width
;
1235
new RectangleF(markerRotatedPosition.X, markerRotatedPosition.Y, markerSize.
Width
, markerSize.Height),
1285
circCoord[2] = relativeMarkerSize.
Width
/2f;
1316
new RectangleF(markerRotatedPosition.X - relativeMarkerSize.
Width
/2f, markerRotatedPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.
Width
, relativeMarkerSize.Height),
1767
markerPosition.X - markerSize.
Width
/ 2f,
1769
markerSize.
Width
,
Common\ChartTypes\RadarChart.cs (8)
768
new RectangleF(dataPointPos[index].X, dataPointPos[index].Y, markerSize.
Width
, markerSize.Height),
812
circCoord[2] = relativeMarkerSize.
Width
/2f;
829
new RectangleF(relativeMarkerPosition.X - relativeMarkerSize.
Width
/2f, relativeMarkerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.
Width
, relativeMarkerSize.Height),
1075
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1077
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1592
markerPosition.X - markerSize.
Width
/2f,
1594
markerSize.
Width
,
Common\ChartTypes\StackedAreaChart.cs (8)
1042
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1044
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1046
labelPosition.X - sizeLabel.
Width
/ 2,
1048
sizeLabel.
Width
,
1524
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1526
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1528
points[0].PointF.X - sizeLabel.
Width
/ 2,
1530
sizeLabel.
Width
,
Common\ChartTypes\StackedBarChart.cs (13)
1128
labelPosition.X = rectangle.X + sizeFont.
Width
/ 2f;
1132
labelPosition.X = rectangle.Right - sizeFont.
Width
/ 2f;
1136
labelPosition.X = rectangle.Right + sizeFont.
Width
/ 2f;
1180
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1182
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1184
labelPosition.X - sizeLabel.
Width
/ 2,
1186
sizeLabel.
Width
,
1960
rotationCenter.X = rectLabel.X + size.
Width
/ 2;
1964
rotationCenter.X = rectLabel.Right - size.
Width
/ 2;
2084
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
2086
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
2088
rotationCenter.X - sizeLabel.
Width
/ 2,
2090
sizeLabel.
Width
,
Common\ChartTypes\StackedColumnChart.cs (8)
1237
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1239
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1241
labelPosition.X - sizeLabel.
Width
/ 2,
1243
sizeLabel.
Width
,
1949
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1951
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1953
labelPosition.X - sizeLabel.
Width
/ 2,
1955
sizeLabel.
Width
,
Common\ChartTypes\StockChart.cs (12)
571
new RectangleF(markerPosition.X, markerPosition.Y, markerSize.
Width
, markerSize.Height));
588
circCoord[2] = relativeMarkerSize.
Width
/2f;
604
new RectangleF(markerPosition.X - relativeMarkerSize.
Width
/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.
Width
, relativeMarkerSize.Height),
1062
SizeF sizeLabel = new SizeF(sizeFont.
Width
, sizeFont.Height);
1064
sizeLabel.Width += sizeLabel.
Width
/ text.Length;
1398
new RectangleF(markerPosition.X, markerPosition.Y, markerSize.
Width
, markerSize.Height));
1415
circCoord[2] = relativeMarkerSize.
Width
/2f;
1431
new RectangleF(markerPosition.X - relativeMarkerSize.
Width
/2f, markerPosition.Y - relativeMarkerSize.Height/2f, relativeMarkerSize.
Width
, relativeMarkerSize.Height),
1916
markerPosition.X - markerSize.
Width
/ 2f,
1918
markerSize.
Width
,
Common\DataManager\DataSeries.cs (4)
663
pointDepth = relativeSize.
Width
;
693
pointGapDepth = relativeSize.
Width
;
731
double pixelPointWidth = pointSize.
Width
;
821
pointWidth = pointRelativeSize.
Width
;
Common\General\Axis.cs (62)
1825
_titlePosition.Width = axisTitleSize.
Width
;
1845
axisTitleSize = graph.GetRelativeSize(new SizeF(axisTitleSize.Height, axisTitleSize.
Width
));
1847
_titlePosition.Width = axisTitleSize.
Width
;
1868
_titlePosition.Width = axisTitleSize.
Width
;
1888
axisTitleSize = graph.GetRelativeSize(new SizeF(axisTitleSize.Height, axisTitleSize.
Width
));
1890
_titlePosition.Width = axisTitleSize.
Width
;
2252
axisTitleSize.Height = axisTitleSize.
Width
;
2313
rotationCenter.X = ChartArea.PlotAreaPosition.X + axisTitleSize.
Width
/ 2f;
2317
rotationCenter.X = ChartArea.PlotAreaPosition.Right - axisTitleSize.
Width
/ 2f;
2325
rotationCenter.X = ChartArea.PlotAreaPosition.X + axisTitleSize.
Width
/ 2f;
2329
rotationCenter.X = ChartArea.PlotAreaPosition.Right - axisTitleSize.
Width
/ 2f;
2676
rect.Inflate(size.
Width
, 2);
3404
this.titleSize = Math.Min(titleStringSize.
Width
, maxTitlesize);
3415
titleStringSize = chartGraph.GetRelativeSize(new SizeF(titleStringSize.Height, titleStringSize.
Width
));
3419
this.titleSize = Math.Min(titleStringSize.
Width
, maxTitlesize);
3488
arrowSize = Math.Max(arrowSizePrimary.
Width
, arrowSizeSecondary.
Width
);
3547
this.markSize += borderSize.
Width
/ 2f;
3587
this.markSize += areaWallSize.
Width
;
4869
float tempValue = textSize.
Width
;
4884
float leftSideAngle = (float)(Math.Atan((textSize.
Width
/ 2f) / plotAreaRadius) * 180f / Math.PI);
4952
textSize.
Width
,
4956
curLabelPosition.X = labelPosition[0].X - textSize.
Width
/ 2f;
4961
curLabelPosition.X = labelPosition[0].X - textSize.
Width
/ 2f;
5323
axisLabelSize.Width += imageRelSize.
Width
;
5333
axisLabelSize.Width += spacerSize.
Width
;
5345
axisLabelSize.Width = chartGraph.GetRelativeSize(new SizeF(axisLabelSize.
Width
, axisLabelSize.
Width
)).
Width
;
5346
groupingLabelSizes[groupLevelIndex - 1] = (float)Math.Max(groupingLabelSizes[groupLevelIndex - 1], axisLabelSize.
Width
);
5350
if (Math.Round(axisLabelSize.
Width
) >= Math.Round(rect.Width) &&
5472
(axisLabelSize.
Width
== 0f ||
5497
axisLabelSize.Width = Math.Max(axisLabelSize.
Width
, imageRelSize.
Width
);
5501
axisLabelSize.Width += imageRelSize.
Width
;
5512
axisLabelSize.Width += spacerSize.
Width
;
5518
float width = axisLabelSize.
Width
;
5528
width += (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.
Width
;
5531
height += (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.
Width
;
5535
width = (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.
Width
;
5538
height = (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.
Width
;
5708
if (axisLabelSize.
Width
== 0f || axisLabelSize.Height == 0f)
5732
axisLabelSize.Width = Math.Max(axisLabelSize.
Width
, imageRelSize.
Width
);
5736
axisLabelSize.Width += imageRelSize.
Width
;
5747
axisLabelSize.Width += spacerSize.
Width
;
5753
float width = axisLabelSize.
Width
;
5757
width = (float)Math.Cos((90 - Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.
Width
;
5761
height += (float)Math.Sin((90 - Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.
Width
;
5766
axisLabelSize.Width = (float)Math.Ceiling(axisLabelSize.
Width
) * 1.05f;
5779
labelNearOffset = (float)Math.Min(labelNearOffset, (fromPosition + toPosition) / 2f - axisLabelSize.
Width
/ 2f);
5780
labelFarOffset = (float)Math.Max(labelFarOffset, (fromPosition + toPosition) / 2f + axisLabelSize.
Width
/ 2f);
5804
resultSize = Math.Max(resultSize, axisLabelSize.
Width
);
5805
resultRotatedSize = Math.Max(resultRotatedSize, axisLabelSize.
Width
);
5813
resultSize = Math.Max(resultSize, axisLabelSize.
Width
);
5939
axisLabelSize.Width = (float)Math.Ceiling(axisLabelSize.
Width
);
5951
axisLabelSize.Width += imageRelSize.
Width
;
5961
axisLabelSize.Width += spacerSize.
Width
;
5976
axisLabelSize.Width = chartGraph.GetRelativeSize(new SizeF(axisLabelSize.
Width
, axisLabelSize.
Width
)).
Width
;
5977
resultSize[groupLevelIndex - 1] = Math.Max(resultSize[groupLevelIndex - 1], axisLabelSize.
Width
);
Common\General\ChartArea.cs (11)
1573
plottingRect.Width -= areaWallSize.
Width
;
1577
plottingRect.X += areaWallSize.
Width
;
1578
plottingRect.Width -= areaWallSize.
Width
;
2645
this.AxisY.labelSize = relativeLabelSize.
Width
;
2646
this.AxisY2.labelSize = relativeLabelSize.
Width
;
2666
areaDiff.Width -= titleSize.
Width
;
2692
textSize.Width = (float)Math.Ceiling(textSize.
Width
* 1.1f);
2710
float width = (float)Math.Cos(textAngle/180F*Math.PI) * textSize.
Width
;
2711
float height = (float)Math.Sin(textAngle/180F*Math.PI) * textSize.
Width
;
2716
width -= areaDiff.
Width
;
2744
float width = textSize.
Width
;
Common\General\ChartArea3D.cs (10)
713
position.Width += areaSceneWallWidth.
Width
;
716
position.X -= areaSceneWallWidth.
Width
;
725
float wallDepth = areaSceneWallWidth.
Width
;
748
wallRect2D.Width = areaSceneWallWidth.
Width
;
752
wallRect2D.X = position.Right - areaSceneWallWidth.
Width
;
772
wallRect2D.Width -= areaSceneWallWidth.
Width
;
775
wallRect2D.X += areaSceneWallWidth.
Width
;
2089
interval.Width = interval.
Width
* 100F / ((float)(this.Common.Chart.Width - 1));
2123
Math.Abs(points[1].X - points[0].X) >= interval.
Width
)
2133
Math.Abs(points[1].Z - points[0].Z) >= interval.
Width
)
Common\General\ChartGraphics.cs (37)
718
imageScaleRect.Width = size.
Width
;
1719
new PointF(absCenter.X - size.
Width
/ 2f, absCenter.Y - size.Height / 2f),
1720
new PointF(absCenter.X + size.
Width
/ 2f, absCenter.Y - size.Height / 2f),
1721
new PointF(absCenter.X + size.
Width
/ 2f, absCenter.Y + size.Height / 2f),
1722
new PointF(absCenter.X - size.
Width
/ 2f, absCenter.Y + size.Height / 2f)};
1986
labelRect.Width = labelSize.
Width
;
1990
labelRect.X = absPosition.Right - labelSize.
Width
;
1998
labelRect.X = absPosition.X + absPosition.Width / 2F - labelSize.
Width
/ 2F;
2136
absPositionWithoutImage.Width -= imageAbsSize.
Width
;
2137
absPositionWithoutImage.X += imageAbsSize.
Width
;
2160
SizeF labelSizeWithImage = new SizeF(labelSize.
Width
, labelSize.Height);
2163
labelSizeWithImage.Width += imageAbsSize.
Width
;
2290
absPosition.X + (absPosition.Width - imageAbsSize.
Width
- labelSize.
Width
) / 2,
2292
imageAbsSize.
Width
,
2310
imageRect.X = absPosition.X + (absPosition.Width - imageAbsSize.
Width
- labelSize.
Width
) / 2;
2314
imageRect.X = absPosition.Right - imageAbsSize.
Width
- labelSize.
Width
;
2572
leftLine[2].X = (float)Math.Round((double)center.X - labelSize.
Width
/2F - 1F);
2579
rightLine[2].X = (float)Math.Round((double)center.X + labelSize.
Width
/2F - 1F);
2681
return new Size( (int)Math.Ceiling(size.
Width
), (int)Math.Ceiling(size.Height));
2697
return new Size( (int)Math.Ceiling(size.
Width
), (int)Math.Ceiling(size.Height));
2781
rotationCenter.X = rect.X + size.
Width
/ 2;
2786
rotationCenter.X = rect.Right - size.
Width
/ 2;
3547
imageRect.Width = Math.Min(fillRect.Width, imageAbsSize.
Width
);
3597
(backImageWrapMode == ChartImageWrapMode.Unscaled) ? imageRect.Width * image.Width / imageAbsSize.
Width
: image.Width,
4228
imageRect.Width = imageAbsSize.
Width
;
4524
imageRect.Width = imageSize.
Width
;
4701
relative.Width = size.
Width
* 100F / ((float)(_width - 1));
4769
absolute.Width = size.
Width
* (_width - 1) / 100F;
5412
size = GetAbsoluteSize( new SizeF((float)size, (float)size) ).
Width
;
5441
size = GetAbsoluteSize( new SizeF((float)size, (float)size) ).
Width
;
5466
size = GetAbsoluteSize( new SizeF((float)size, (float)size) ).
Width
;
5467
shift = GetAbsoluteSize( new SizeF((float)shift,(float)shift) ).
Width
;
5491
size = GetAbsoluteSize( new SizeF((float)size, (float)size) ).
Width
;
5492
shift = GetAbsoluteSize( new SizeF((float)shift,(float)shift) ).
Width
;
Common\General\ChartGraphics3D.cs (15)
3114
gradientPoints[4] = new Point3D( position.X + sizeRel.
Width
, position.Top + position.Height / 2f, positionZ + depth );
3115
gradientPoints[5] = new Point3D( position.Right - sizeRel.
Width
, position.Top + position.Height / 2f, positionZ + depth );
3246
gradientRect.Inflate(-shadowSizeRel.
Width
, -shadowSizeRel.Height);
3302
gradientRect.Inflate(-shadowSizeRel.
Width
, -shadowSizeRel.Height);
3375
gradientPoints[3] = new Point3D( position.Right - shadowSizeRel.
Width
, position.Top + shadowSizeRel.Height, positionZ + depth );
3376
gradientPoints[4] = new Point3D( position.Left + shadowSizeRel.
Width
, position.Top + shadowSizeRel.Height, positionZ + depth );
3377
gradientPoints[5] = new Point3D( position.Left + shadowSizeRel.
Width
, position.Bottom - shadowSizeRel.Height, positionZ + depth );
3406
gradientPoints[3] = new Point3D( position.Left + shadowSizeRel.
Width
, position.Bottom - shadowSizeRel.Height, positionZ + depth );
3407
gradientPoints[4] = new Point3D( position.Right - shadowSizeRel.
Width
, position.Bottom - shadowSizeRel.Height, positionZ + depth );
3408
gradientPoints[5] = new Point3D( position.Right - shadowSizeRel.
Width
, position.Top + shadowSizeRel.Height, positionZ + depth );
3607
Point3D[] centerPoint = new Point3D[] { new Point3D(point.X, point.Y, positionZ + markerRelativeSize.
Width
) };
3632
rectNonRotated.X = point.X - ((float)markerRelativeSize.
Width
) / 2F;
3634
rectNonRotated.Width = markerRelativeSize.
Width
;
3640
positionZ - markerRelativeSize.
Width
/ 2f,
3641
markerRelativeSize.
Width
,
Common\General\Label.cs (5)
1324
labelPosition.Width = size.
Width
;
1329
labelPosition.X = position.X - size.
Width
;
1337
labelPosition.X = position.X - size.
Width
/2F;
2262
if (rect.Width < pixelSize.
Width
)
2264
rect.Width = pixelSize.
Width
;
Common\General\Legend.cs (11)
888
Size maxSize = new Size((int)maxSizeAbs.
Width
, (int)maxSizeAbs.Height);
1102
maxSize.Width = (maxSize.
Width
/ 100F) * this._maximumLegendAutoSize;
1106
if(maxSize.
Width
<= 0 || maxSize.Height <= 0)
1113
legendPosition.Width = legendSize.
Width
;
1114
if(float.IsNaN(legendSize.Height) || float.IsNaN(legendSize.
Width
))
1129
legendPosition.X = chartAreasRectangle.Right - legendSize.
Width
- elementSpacing;
1133
legendPosition.X = chartAreasRectangle.X + (chartAreasRectangle.Width - legendSize.
Width
) / 2F;
1149
legendPosition.X = chartAreasRectangle.Right - legendSize.
Width
- elementSpacing;
1153
legendPosition.X = chartAreasRectangle.X + (chartAreasRectangle.Width - legendSize.
Width
) / 2F;
1181
legendPosition.X = chartAreasRectangle.Right - legendSize.
Width
- elementSpacing;
4707
if(legendPixelSize.
Width
< legendPixelSize.Height)
Common\General\LegendColumns.cs (5)
1512
cellSize.Width = (int)imageSize.
Width
;
2099
imagePosition.Width = (int)imageSize.
Width
;
2226
int newWidth = (int)(this.SeriesSymbolSize.Width * singleWCharacterSize.
Width
/ 100f);
2296
imageScale.Width = (int)imageSize.
Width
;
2437
imageScale.Width = (int)imageSize.
Width
;
Common\General\Selection.cs (6)
859
circleCenter.X - circleRadius.
Width
,
860
circleCenter.Y - circleRadius.
Width
,
861
2 * circleRadius.
Width
,
862
2 * circleRadius.
Width
3093
rect1.Inflate(size.
Width
, 2);
3177
rect.Inflate(relSize.
Width
, relSize.Height);
Common\General\SmartLabels.cs (10)
815
markerSize.
Width
+ labelMovement*(pixelSize.
Width
* 2f),
1414
labelPosition.Width = size.
Width
;
1426
labelPosition.X = position.X - size.
Width
;
1429
labelPosition.X -= 4f*pixelSize.
Width
;
1430
labelPosition.Width += 4f*pixelSize.
Width
;
1438
labelPosition.Width += 4f*pixelSize.
Width
;
1443
labelPosition.X = position.X - size.
Width
/2F;
1446
labelPosition.X -= 2f*pixelSize.
Width
;
1447
labelPosition.Width += 4f*pixelSize.
Width
;
Common\General\StripLine.cs (8)
492
lineRect.X = point1.X - relBorderWidth.
Width
/ 2f;
494
lineRect.Width = relBorderWidth.
Width
;
705
textSizeProjection[1] = new Point3D(size.
Width
, 0f, zPositon);
713
size.Width *= size.
Width
/ (textSizeProjection[index].X - textSizeProjection[(index == 0) ? 1 : 0].X);
725
rotationCenter.X = rect.X + size.
Width
/ 2 + sizeBorder.
Width
;
729
rotationCenter.X = rect.Right - size.
Width
/ 2 - sizeBorder.
Width
;
Common\General\Title.cs (9)
1374
float tempValue = layoutArea.
Width
;
1398
float tempValue = titleSize.
Width
;
1409
titlePosition.Width = titleSize.
Width
;
1488
titleSize.
Width
,
1862
float tempValue = layoutArea.
Width
;
1888
float tempValue = titleSize.
Width
;
1896
titlePosition.Width = titleSize.
Width
;
1897
if(float.IsNaN(titleSize.Height) || float.IsNaN(titleSize.
Width
))
1946
titlePosition.X = chartAreasRectangle.Right - titleSize.
Width
- elementSpacing;
System.Workflow.Activities (1)
Designers\StateMachineDesignerPaint.cs (1)
47
return new Size(Convert.ToInt32(Math.Ceiling(textSize.
Width
)), Convert.ToInt32(Math.Ceiling(textSize.Height)));
System.Workflow.ComponentModel (13)
AuthoringOM\Design\DesignerHelpers.cs (1)
79
return new Size(Convert.ToInt32(Math.Ceiling(textSize.
Width
)), Convert.ToInt32(Math.Ceiling(textSize.Height)));
AuthoringOM\Design\DesignerWidgets.cs (4)
1342
maxTextSize.Width = Math.Max(Convert.ToInt32(Math.Ceiling(size.
Width
)), maxTextSize.Width);
1978
this.drawItems[i].TextSize = new Size(Convert.ToInt32(Math.Ceiling(sizef.
Width
)), Convert.ToInt32(Math.Ceiling(sizef.Height)));
2167
int width = Convert.ToInt32((Math.Ceiling(textSize.
Width
) / 3)) * 30;
3386
this.previewDescTextSize = new Size(Convert.ToInt32(Math.Ceiling(stringSize.
Width
)), Convert.ToInt32(Math.Ceiling(stringSize.Height)));
AuthoringOM\Design\WorkflowLayouts.cs (6)
151
transformationMatrix.Scale(viewPortData.Scaling.
Width
, viewPortData.Scaling.Height, MatrixOrder.Prepend);
239
transformationMatrix.Scale(viewPortData.Scaling.
Width
, viewPortData.Scaling.Height, MatrixOrder.Prepend);
535
coOrdTxMatrix.Scale(viewPortData.Scaling.
Width
, viewPortData.Scaling.Height, MatrixOrder.Prepend);
546
coOrdTxMatrix.Scale(viewPortData.Scaling.
Width
/ (float)this.parentView.Zoom * 100.0f, viewPortData.Scaling.Height / (float)this.parentView.Zoom * 100.0f);
608
coOrdTxMatrix.Scale(viewPortData.Scaling.
Width
, viewPortData.Scaling.Height, MatrixOrder.Prepend);
627
viewPortMatrix.Scale(viewPortData.Scaling.
Width
, viewPortData.Scaling.Height, MatrixOrder.Prepend);
AuthoringOM\Design\WorkflowPrinting.cs (1)
266
layoutRectangle.Size = new Size(Convert.ToInt32(Math.Ceiling((stringSize.
Width
))), Convert.ToInt32(Math.Ceiling((stringSize.Height))));
AuthoringOM\Design\WorkflowView.cs (1)
1573
transformationMatrix.Scale(viewPortData.Scaling.
Width
, viewPortData.Scaling.Height, MatrixOrder.Prepend);