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)
719size.Width = pixelSize * graph.Graphics.DpiX / 96; 767 markerSize.Width = point.MarkerSize; 1034valueTextSize.Width += spacing; 1750 markerSize.Width = point.MarkerSize; 1875markerSize.Width = point.MarkerSize; 2116sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\BoxPlotChart.cs (3)
486 relBorderWidth.Width = 0; 850size.Width = markerSize * graph.Graphics.DpiX / 96; 968sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\BubbleChart.cs (2)
186size.Width = markerSize * graph.Graphics.DpiX / 96; 194 size.Width = ScaleBubbleSize(graph, common, area, point.YValues[1]);
Common\ChartTypes\ColumnChart.cs (2)
1251sizeLabel.Width += sizeLabel.Width / text.Length; 1373sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\ErrorBarChart.cs (2)
907size.Width = markerSize * graph.Graphics.DpiX / 96; 1025sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\FunnelChart.cs (2)
2391neckSize.Width = w; 2427 neckSize.Width = this.PlotAreaPosition.Width/2f;
Common\ChartTypes\PieChart.cs (4)
1262sizeLabel.Width += sizeLabel.Width / text.Length; 1404valueTextSize.Width += spacing; 5502valueTextSize.Width += spacing; 5578 sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\PointChart.cs (2)
710sizeLabel.Width += horizontalSpacing; 1418size.Width = markerSize * graph.Graphics.DpiX / 96;
Common\ChartTypes\RadarChart.cs (2)
963size.Width = markerSize * graph.Graphics.DpiX / 96; 1077sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\StackedAreaChart.cs (2)
1044sizeLabel.Width += sizeLabel.Width / text.Length; 1526sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\StackedBarChart.cs (2)
1182sizeLabel.Width += sizeLabel.Width / text.Length; 2086sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\StackedColumnChart.cs (2)
1239sizeLabel.Width += sizeLabel.Width / text.Length; 1951sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\StockChart.cs (9)
540 markerSize.Width = point.MarkerSize; 545markerSize.Width = point.MarkerSize * graph.Graphics.DpiX / 96; 1007markerSize.Width = point.MarkerSize; 1012markerSize.Width = point.MarkerSize * graph.Graphics.DpiX / 96; 1064sizeLabel.Width += sizeLabel.Width / text.Length; 1367 markerSize.Width = point.MarkerSize; 1372markerSize.Width = point.MarkerSize * graph.Graphics.DpiX / 96; 1874 markerSize.Width = point.MarkerSize; 1879markerSize.Width = point.MarkerSize * common.graph.Graphics.DpiX / 96;
Common\General\Axis.cs (18)
2253axisTitleSize.Width = tempValue; 4870textSize.Width = textSize.Height; 5323axisLabelSize.Width += imageRelSize.Width; 5333axisLabelSize.Width += spacerSize.Width; 5344axisLabelSize.Width = chartGraph.GetAbsoluteSize(new SizeF(axisLabelSize.Height, axisLabelSize.Height)).Height; 5345axisLabelSize.Width = chartGraph.GetRelativeSize(new SizeF(axisLabelSize.Width, axisLabelSize.Width)).Width; 5497axisLabelSize.Width = Math.Max(axisLabelSize.Width, imageRelSize.Width); 5501axisLabelSize.Width += imageRelSize.Width; 5512axisLabelSize.Width += spacerSize.Width; 5732axisLabelSize.Width = Math.Max(axisLabelSize.Width, imageRelSize.Width); 5736axisLabelSize.Width += imageRelSize.Width; 5747axisLabelSize.Width += spacerSize.Width; 5766axisLabelSize.Width = (float)Math.Ceiling(axisLabelSize.Width) * 1.05f; 5939axisLabelSize.Width = (float)Math.Ceiling(axisLabelSize.Width); 5951 axisLabelSize.Width += imageRelSize.Width; 5961 axisLabelSize.Width += spacerSize.Width; 5975axisLabelSize.Width = chartGraph.GetAbsoluteSize(new SizeF(axisLabelSize.Height, axisLabelSize.Height)).Height; 5976axisLabelSize.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)
1713size.Width += 10; 2163labelSizeWithImage.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)
1102maxSize.Width = (maxSize.Width / 100F) * this._maximumLegendAutoSize;
Common\General\StripLine.cs (1)
713size.Width *= size.Width / (textSizeProjection[index].X - textSizeProjection[(index == 0) ? 1 : 0].X);
Common\General\Title.cs (7)
1375layoutArea.Width = layoutArea.Height; 1391 titleSize.Width += titleBorderSpacing; 1399titleSize.Width = titleSize.Height; 1863layoutArea.Width = layoutArea.Height; 1868 layoutArea.Width -= 2f * elementSpacing; 1881 titleSize.Width += titleBorderSpacing; 1889titleSize.Width = titleSize.Height;
Common\Utilities\ImageLoader.cs (2)
389size.Width = image.Width * graphics.DpiX / image.HorizontalResolution; 394size.Width = image.Width;
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ContainerControl.cs (2)
768retval.Width = (int)Math.Round(((float)size.cx) / ((float)fontMeasureString.Length)); 771retval.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)
719size.Width = pixelSize * graph.Graphics.DpiX / 96; 767 markerSize.Width = point.MarkerSize; 1034valueTextSize.Width += spacing; 1750 markerSize.Width = point.MarkerSize; 1875markerSize.Width = point.MarkerSize; 2116sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\BoxPlotChart.cs (3)
486 relBorderWidth.Width = 0; 850size.Width = markerSize * graph.Graphics.DpiX / 96; 968sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\BubbleChart.cs (2)
186size.Width = markerSize * graph.Graphics.DpiX / 96; 194 size.Width = ScaleBubbleSize(graph, common, area, point.YValues[1]);
Common\ChartTypes\ColumnChart.cs (2)
1251sizeLabel.Width += sizeLabel.Width / text.Length; 1373sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\ErrorBarChart.cs (2)
907size.Width = markerSize * graph.Graphics.DpiX / 96; 1025sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\FunnelChart.cs (2)
2391neckSize.Width = w; 2427 neckSize.Width = this.PlotAreaPosition.Width/2f;
Common\ChartTypes\PieChart.cs (4)
1262sizeLabel.Width += sizeLabel.Width / text.Length; 1404valueTextSize.Width += spacing; 5502valueTextSize.Width += spacing; 5578 sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\PointChart.cs (2)
710sizeLabel.Width += horizontalSpacing; 1418size.Width = markerSize * graph.Graphics.DpiX / 96;
Common\ChartTypes\RadarChart.cs (2)
963size.Width = markerSize * graph.Graphics.DpiX / 96; 1077sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\StackedAreaChart.cs (2)
1044sizeLabel.Width += sizeLabel.Width / text.Length; 1526sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\StackedBarChart.cs (2)
1182sizeLabel.Width += sizeLabel.Width / text.Length; 2086sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\StackedColumnChart.cs (2)
1239sizeLabel.Width += sizeLabel.Width / text.Length; 1951sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\StockChart.cs (9)
540 markerSize.Width = point.MarkerSize; 545markerSize.Width = point.MarkerSize * graph.Graphics.DpiX / 96; 1007markerSize.Width = point.MarkerSize; 1012markerSize.Width = point.MarkerSize * graph.Graphics.DpiX / 96; 1064sizeLabel.Width += sizeLabel.Width / text.Length; 1367 markerSize.Width = point.MarkerSize; 1372markerSize.Width = point.MarkerSize * graph.Graphics.DpiX / 96; 1874 markerSize.Width = point.MarkerSize; 1879markerSize.Width = point.MarkerSize * common.graph.Graphics.DpiX / 96;
Common\General\Axis.cs (18)
2253axisTitleSize.Width = tempValue; 4870textSize.Width = textSize.Height; 5323axisLabelSize.Width += imageRelSize.Width; 5333axisLabelSize.Width += spacerSize.Width; 5344axisLabelSize.Width = chartGraph.GetAbsoluteSize(new SizeF(axisLabelSize.Height, axisLabelSize.Height)).Height; 5345axisLabelSize.Width = chartGraph.GetRelativeSize(new SizeF(axisLabelSize.Width, axisLabelSize.Width)).Width; 5497axisLabelSize.Width = Math.Max(axisLabelSize.Width, imageRelSize.Width); 5501axisLabelSize.Width += imageRelSize.Width; 5512axisLabelSize.Width += spacerSize.Width; 5732axisLabelSize.Width = Math.Max(axisLabelSize.Width, imageRelSize.Width); 5736axisLabelSize.Width += imageRelSize.Width; 5747axisLabelSize.Width += spacerSize.Width; 5766axisLabelSize.Width = (float)Math.Ceiling(axisLabelSize.Width) * 1.05f; 5939axisLabelSize.Width = (float)Math.Ceiling(axisLabelSize.Width); 5951 axisLabelSize.Width += imageRelSize.Width; 5961 axisLabelSize.Width += spacerSize.Width; 5975axisLabelSize.Width = chartGraph.GetAbsoluteSize(new SizeF(axisLabelSize.Height, axisLabelSize.Height)).Height; 5976axisLabelSize.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)
1713size.Width += 10; 2163labelSizeWithImage.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)
1102maxSize.Width = (maxSize.Width / 100F) * this._maximumLegendAutoSize;
Common\General\StripLine.cs (1)
713size.Width *= size.Width / (textSizeProjection[index].X - textSizeProjection[(index == 0) ? 1 : 0].X);
Common\General\Title.cs (7)
1375layoutArea.Width = layoutArea.Height; 1391 titleSize.Width += titleBorderSpacing; 1399titleSize.Width = titleSize.Height; 1863layoutArea.Width = layoutArea.Height; 1868 layoutArea.Width -= 2f * elementSpacing; 1881 titleSize.Width += titleBorderSpacing; 1889titleSize.Width = titleSize.Height;
Common\Utilities\ImageLoader.cs (2)
389size.Width = image.Width * graphics.DpiX / image.HorizontalResolution; 394size.Width = image.Width;
WinForm\Utilities\AccessibleObject.cs (1)
319rectSize.Width *= this._chartScale.X;
1064 references to Width
System.Drawing (21)
commonui\System\Drawing\Advanced\PointF.cs (2)
187return new PointF(pt.X + sz.Width, pt.Y + sz.Height); 196return new PointF(pt.X - sz.Width, pt.Y - sz.Height);
commonui\System\Drawing\Advanced\RectangleF.cs (3)
67this.width = size.Width; 116this.Width = value.Width; 371Inflate(size.Width, size.Height);
commonui\System\Drawing\Advanced\SizeF.cs (9)
113return sz1.Width == sz2.Width && sz1.Height == sz2.Height; 134return new PointF(size.Width, size.Height); 195return new SizeF(sz1.Width + sz2.Width, sz1.Height + sz2.Height); 206return new SizeF(sz1.Width - sz2.Width, sz1.Height - sz2.Height); 223return(comp.Width == this.Width) &&
commonui\System\Drawing\Advanced\SizeFConverter.cs (2)
125args[nArg++] = floatConverter.ConvertToString(context, culture, size.Width); 135return new InstanceDescriptor(ctor, new object[] {size.Width, size.Height});
commonui\System\Drawing\Graphics.cs (2)
2524GPRECTF grfLayout = new GPRECTF(0, 0, layoutArea.Width, layoutArea.Height); 2588GPRECTF grfLayout = new GPRECTF(0, 0, layoutArea.Width, layoutArea.Height);
commonui\System\Drawing\Size.cs (3)
193return new Size((int)Math.Ceiling(value.Width), (int)Math.Ceiling(value.Height)); 211return new Size((int)value.Width, (int)value.Height); 220return 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); 711return 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); 646textActualPosition.X += textPositionWithSpacing.Width - textSize.Width; 652textActualPosition.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); 81sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize * 2f); 113 sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize*2f); 127sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize * 2f); 160 sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize*2f); 174sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize * 2f); 206 sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize*2f); 220sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize * 2f); 253 sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize*2f); 268sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize * 2f); 301 sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize*2f); 314sizeLeftTop = 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; 721pixelSize = (int)Math.Max(size.Width, size.Height); 927rectLabel.Width -= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F); 930rectLabel.X += (float)Math.Min(rectLabel.Width, markerSize.Width / 2F); 952rectLabel.Width -= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F); 955rectLabel.X += (float)Math.Min(rectLabel.Width, markerSize.Width / 2F); 973valueTextSize.Width > rectLabel.Width - 1) 995valueTextSize.Width > rectLabel.Width - 1 && 1033float spacing = valueTextSize.Width / text.Length / 2; 1038valueTextSize.Width, 1049labelBackPosition.X = rectLabel.X + (rectLabel.Width - valueTextSize.Width) / 2f; 1053labelBackPosition.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; 1946rectLabel.Width -= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F); 1949rectLabel.X += (float)Math.Min(rectLabel.Width, markerSize.Width / 2F); 1971rectLabel.Width -= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F); 1974rectLabel.X += (float)Math.Min(rectLabel.Width, markerSize.Width / 2F); 1992valueTextSize.Width > rectLabel.Width) 2014valueTextSize.Width > rectLabel.Width - 1 && 2047rotationCenter.X = rectLabel.X + size.Width / 2; 2051rotationCenter.X = rectLabel.Right - size.Width / 2; 2114SizeF sizeLabel = new SizeF(size.Width, size.Height); 2116sizeLabel.Width += sizeLabel.Width / text.Length; 2118rotationCenter.X - sizeLabel.Width / 2, 2120sizeLabel.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)); 966SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 968sizeLabel.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), 1250SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1251sizeLabel.Width += sizeLabel.Width / text.Length; 1372SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1373sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\ErrorBarChart.cs (3)
880 new RectangleF(xPosition, yPosition, markerSize.Width, markerSize.Height)); 1023SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1025sizeLabel.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; 2395if (!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; 1260SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1262sizeLabel.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; 1343x3Overlap = -relativeSize.Width * shift * expShift + middlePoint.X - relativeSize.Width / 10 * labelsHorizontalLineSize; 1344x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.Width * shift * expShift + middlePoint.X - relativeSize.Width / 10 * labelsHorizontalLineSize; 1360x3Overlap = relativeSize.Width * shift * expShift + middlePoint.X + relativeSize.Width / 10 * labelsHorizontalLineSize; 1361x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.Width * shift * expShift + middlePoint.X + relativeSize.Width / 10 * labelsHorizontalLineSize; 1403float spacing = valueTextSize.Width / text.Length / 2; 1408valueTextSize.Width, 1418labelBackPosition.X = rect.X + (rect.Width - valueTextSize.Width) / 2f; 1422labelBackPosition.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 ); 5501float spacing = valueTextSize.Width / text.Length / 2; 5506valueTextSize.Width, 5516labelBackPosition.X = labelPosition.X + (labelPosition.Width - valueTextSize.Width) / 2f; 5520labelBackPosition.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), 707SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 708float 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), 1075SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1077sizeLabel.Width += sizeLabel.Width / text.Length; 1592 markerPosition.X - markerSize.Width/2f, 1594 markerSize.Width,
Common\ChartTypes\StackedAreaChart.cs (8)
1042SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1044sizeLabel.Width += sizeLabel.Width / text.Length; 1046labelPosition.X - sizeLabel.Width / 2, 1048sizeLabel.Width, 1524SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1526sizeLabel.Width += sizeLabel.Width / text.Length; 1528points[0].PointF.X - sizeLabel.Width / 2, 1530sizeLabel.Width,
Common\ChartTypes\StackedBarChart.cs (13)
1128labelPosition.X = rectangle.X + sizeFont.Width / 2f; 1132labelPosition.X = rectangle.Right - sizeFont.Width / 2f; 1136labelPosition.X = rectangle.Right + sizeFont.Width / 2f; 1180SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1182sizeLabel.Width += sizeLabel.Width / text.Length; 1184labelPosition.X - sizeLabel.Width / 2, 1186sizeLabel.Width, 1960rotationCenter.X = rectLabel.X + size.Width / 2; 1964rotationCenter.X = rectLabel.Right - size.Width / 2; 2084SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 2086sizeLabel.Width += sizeLabel.Width / text.Length; 2088rotationCenter.X - sizeLabel.Width / 2, 2090sizeLabel.Width,
Common\ChartTypes\StackedColumnChart.cs (8)
1237SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1239sizeLabel.Width += sizeLabel.Width / text.Length; 1241labelPosition.X - sizeLabel.Width / 2, 1243sizeLabel.Width, 1949SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1951sizeLabel.Width += sizeLabel.Width / text.Length; 1953labelPosition.X - sizeLabel.Width / 2, 1955sizeLabel.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), 1062SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1064sizeLabel.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; 1845axisTitleSize = graph.GetRelativeSize(new SizeF(axisTitleSize.Height, axisTitleSize.Width)); 1847 _titlePosition.Width = axisTitleSize.Width; 1868_titlePosition.Width = axisTitleSize.Width; 1888axisTitleSize = graph.GetRelativeSize(new SizeF(axisTitleSize.Height, axisTitleSize.Width)); 1890 _titlePosition.Width = axisTitleSize.Width; 2252axisTitleSize.Height = axisTitleSize.Width; 2313rotationCenter.X = ChartArea.PlotAreaPosition.X + axisTitleSize.Width / 2f; 2317rotationCenter.X = ChartArea.PlotAreaPosition.Right - axisTitleSize.Width / 2f; 2325rotationCenter.X = ChartArea.PlotAreaPosition.X + axisTitleSize.Width / 2f; 2329rotationCenter.X = ChartArea.PlotAreaPosition.Right - axisTitleSize.Width / 2f; 2676rect.Inflate(size.Width, 2); 3404this.titleSize = Math.Min(titleStringSize.Width, maxTitlesize); 3415 titleStringSize = chartGraph.GetRelativeSize(new SizeF(titleStringSize.Height, titleStringSize.Width)); 3419 this.titleSize = Math.Min(titleStringSize.Width, maxTitlesize); 3488arrowSize = Math.Max(arrowSizePrimary.Width, arrowSizeSecondary.Width); 3547this.markSize += borderSize.Width / 2f; 3587this.markSize += areaWallSize.Width; 4869float tempValue = textSize.Width; 4884float leftSideAngle = (float)(Math.Atan((textSize.Width / 2f) / plotAreaRadius) * 180f / Math.PI); 4952textSize.Width, 4956curLabelPosition.X = labelPosition[0].X - textSize.Width / 2f; 4961curLabelPosition.X = labelPosition[0].X - textSize.Width / 2f; 5323axisLabelSize.Width += imageRelSize.Width; 5333axisLabelSize.Width += spacerSize.Width; 5345axisLabelSize.Width = chartGraph.GetRelativeSize(new SizeF(axisLabelSize.Width, axisLabelSize.Width)).Width; 5346groupingLabelSizes[groupLevelIndex - 1] = (float)Math.Max(groupingLabelSizes[groupLevelIndex - 1], axisLabelSize.Width); 5350if (Math.Round(axisLabelSize.Width) >= Math.Round(rect.Width) && 5472(axisLabelSize.Width == 0f || 5497axisLabelSize.Width = Math.Max(axisLabelSize.Width, imageRelSize.Width); 5501axisLabelSize.Width += imageRelSize.Width; 5512axisLabelSize.Width += spacerSize.Width; 5518float width = axisLabelSize.Width; 5528width += (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5531height += (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5535width = (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5538height = (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5708if (axisLabelSize.Width == 0f || axisLabelSize.Height == 0f) 5732axisLabelSize.Width = Math.Max(axisLabelSize.Width, imageRelSize.Width); 5736axisLabelSize.Width += imageRelSize.Width; 5747axisLabelSize.Width += spacerSize.Width; 5753float width = axisLabelSize.Width; 5757width = (float)Math.Cos((90 - Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5761height += (float)Math.Sin((90 - Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5766axisLabelSize.Width = (float)Math.Ceiling(axisLabelSize.Width) * 1.05f; 5779labelNearOffset = (float)Math.Min(labelNearOffset, (fromPosition + toPosition) / 2f - axisLabelSize.Width / 2f); 5780labelFarOffset = (float)Math.Max(labelFarOffset, (fromPosition + toPosition) / 2f + axisLabelSize.Width / 2f); 5804resultSize = Math.Max(resultSize, axisLabelSize.Width); 5805resultRotatedSize = Math.Max(resultRotatedSize, axisLabelSize.Width); 5813resultSize = Math.Max(resultSize, axisLabelSize.Width); 5939axisLabelSize.Width = (float)Math.Ceiling(axisLabelSize.Width); 5951 axisLabelSize.Width += imageRelSize.Width; 5961 axisLabelSize.Width += spacerSize.Width; 5976axisLabelSize.Width = chartGraph.GetRelativeSize(new SizeF(axisLabelSize.Width, axisLabelSize.Width)).Width; 5977resultSize[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)
718imageScaleRect.Width = size.Width; 1719new PointF(absCenter.X - size.Width / 2f, absCenter.Y - size.Height / 2f), 1720new PointF(absCenter.X + size.Width / 2f, absCenter.Y - size.Height / 2f), 1721new PointF(absCenter.X + size.Width / 2f, absCenter.Y + size.Height / 2f), 1722new PointF(absCenter.X - size.Width / 2f, absCenter.Y + size.Height / 2f)}; 1986labelRect.Width = labelSize.Width; 1990labelRect.X = absPosition.Right - labelSize.Width; 1998labelRect.X = absPosition.X + absPosition.Width / 2F - labelSize.Width / 2F; 2136absPositionWithoutImage.Width -= imageAbsSize.Width; 2137absPositionWithoutImage.X += imageAbsSize.Width; 2160SizeF labelSizeWithImage = new SizeF(labelSize.Width, labelSize.Height); 2163labelSizeWithImage.Width += imageAbsSize.Width; 2290absPosition.X + (absPosition.Width - imageAbsSize.Width - labelSize.Width) / 2, 2292imageAbsSize.Width, 2310imageRect.X = absPosition.X + (absPosition.Width - imageAbsSize.Width - labelSize.Width) / 2; 2314imageRect.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; 3547imageRect.Width = Math.Min(fillRect.Width, imageAbsSize.Width); 3597(backImageWrapMode == ChartImageWrapMode.Unscaled) ? imageRect.Width * image.Width / imageAbsSize.Width : image.Width, 4228imageRect.Width = imageAbsSize.Width; 4524imageRect.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 ); 3607Point3D[] centerPoint = new Point3D[] { new Point3D(point.X, point.Y, positionZ + markerRelativeSize.Width) }; 3632rectNonRotated.X = point.X - ((float)markerRelativeSize.Width) / 2F; 3634rectNonRotated.Width = markerRelativeSize.Width; 3640positionZ - markerRelativeSize.Width / 2f, 3641markerRelativeSize.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; 2005labelsZPosition -= this._axis.ChartArea.areaSceneWallWidth.Width; 2009labelsZPosition -= this._axis.MajorTickMark.Size + this._axis.ChartArea.areaSceneWallWidth.Width; 2013labelsZPosition -= this._axis.MajorTickMark.Size / 2f + this._axis.ChartArea.areaSceneWallWidth.Width; 2262if (rect.Width < pixelSize.Width) 2264rect.Width = pixelSize.Width;
Common\General\Legend.cs (11)
888 Size maxSize = new Size((int)maxSizeAbs.Width, (int)maxSizeAbs.Height); 1102maxSize.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)
1512cellSize.Width = (int)imageSize.Width; 2099imagePosition.Width = (int)imageSize.Width; 2226 int newWidth = (int)(this.SeriesSymbolSize.Width * singleWCharacterSize.Width / 100f); 2296imageScale.Width = (int)imageSize.Width; 2437imageScale.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 3093rect1.Inflate(size.Width, 2); 3177rect.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; 705textSizeProjection[1] = new Point3D(size.Width, 0f, zPositon); 713size.Width *= size.Width / (textSizeProjection[index].X - textSizeProjection[(index == 0) ? 1 : 0].X); 725rotationCenter.X = rect.X + size.Width / 2 + sizeBorder.Width; 729rotationCenter.X = rect.Right - size.Width / 2 - sizeBorder.Width;
Common\General\Title.cs (9)
1374float tempValue = layoutArea.Width; 1398float tempValue = titleSize.Width; 1409 titlePosition.Width = titleSize.Width; 1488 titleSize.Width, 1862float tempValue = layoutArea.Width; 1888float 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)
124int strPelLen = (int) g.MeasureString(controlID, boldFont).Width;
System.Windows.Forms (33)
winforms\Managed\System\WinForms\ComboBox.cs (1)
2149if (factor.Width != 1F && factor.Height != 1F) {
winforms\Managed\System\WinForms\ContainerControl.cs (3)
92if (value.Width < 0 || value.Height < 0) { 120return new SizeF(current.Width / saved.Width, current.Height / saved.Height);
winforms\Managed\System\WinForms\Control.cs (4)
6591float dx = factor.Width; 11499float dx = factor.Width; 11539factor.Width, 11545factor.Width,
winforms\Managed\System\WinForms\DataGrid.cs (1)
4771size = (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)
467Size textSize = new Size((int) g.MeasureString(text, this.Font).Width + 2, this.Font.Height + 2);
winforms\Managed\System\WinForms\DataGridParentRows.cs (2)
588int size = (int) g.MeasureString(displayTableName, textFont).Width; 607int size = (int) g.MeasureString(colName, font).Width;
winforms\Managed\System\WinForms\DataGridTable.cs (2)
384focusedTextWidth = (int) Math.Ceiling(g.MeasureString(((string) RelationsList[focusedRelation]), DataGrid.LinkFont).Width); 918int rwidth = (int) Math.Ceiling(g.MeasureString(((string) this.RelationsList[r]), this.DataGrid.LinkFont).Width)
winforms\Managed\System\WinForms\Design\ComponentEditorForm.cs (1)
246int titleWidth = (int) graphics.MeasureString(title, Font).Width;
winforms\Managed\System\WinForms\Form.cs (3)
613return new Size((int)Math.Round(real.Width), (int)Math.Round(real.Height)); 3372Size newVar = new Size((int)Math.Round(newVarF.Width), (int)Math.Round(newVarF.Height)); 4109float stringWidth = graphics.MeasureString(magicString, font).Width;
winforms\Managed\System\WinForms\GroupBox.cs (1)
737if (factor.Width != 1F && factor.Height != 1F) {
winforms\Managed\System\WinForms\Layout\DockAndAnchorLayout.cs (2)
705anchorInfo.Left = (int)((float)anchorInfo.Left * factor.Width); 707anchorInfo.Right = (int)((float)anchorInfo.Right * factor.Width);
winforms\Managed\System\WinForms\ListBox.cs (2)
2056if (factor.Width != 1F && factor.Height != 1F) { 2240width = (int)(Math.Ceiling(graphics.MeasureString(GetItemText(item), this.Font).Width));
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (2)
1408cacheItems.lastLabelWidth = (int) textSize.Width; 1426cacheItems.lastValueTextWidth = (int) g.MeasureString(valueString, f).Width;
winforms\Managed\System\WinForms\PropertyGridInternal\GridErrorDlg.cs (1)
323int detailsWidth = (int) Math.Ceiling(sizef.Width);
winforms\Managed\System\WinForms\ScrollableControl.cs (1)
814ScaleDockPadding(factor.Width, factor.Height);
winforms\Managed\System\WinForms\SplitContainer.cs (1)
1891scale = factor.Width;
winforms\Managed\System\WinForms\TableLayoutPanel.cs (2)
528cs.Width = (float)Math.Round(lastColumnHeight * factor.Width); 531cs.Width = (float)Math.Round(cs.Width * factor.Width);
winforms\Managed\System\WinForms\ToolBar.cs (1)
841currentScaleDX = factor.Width;
winforms\Managed\System\WinForms\ToolStripDropDown.cs (2)
1735MinimumSize = ScaleSize(minSize, factor.Width, factor.Height); 1738MaximumSize = 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); 711return 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); 646textActualPosition.X += textPositionWithSpacing.Width - textSize.Width; 652textActualPosition.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); 81sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize * 2f); 113 sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize*2f); 127sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize * 2f); 160 sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize*2f); 174sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize * 2f); 206 sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize*2f); 220sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize * 2f); 253 sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize*2f); 268sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize * 2f); 301 sizeLeftTop = new SizeF(sizeLeftTop.Width, defaultRadiusSize*2f); 314sizeLeftTop = 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; 721pixelSize = (int)Math.Max(size.Width, size.Height); 927rectLabel.Width -= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F); 930rectLabel.X += (float)Math.Min(rectLabel.Width, markerSize.Width / 2F); 952rectLabel.Width -= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F); 955rectLabel.X += (float)Math.Min(rectLabel.Width, markerSize.Width / 2F); 973valueTextSize.Width > rectLabel.Width - 1) 995valueTextSize.Width > rectLabel.Width - 1 && 1033float spacing = valueTextSize.Width / text.Length / 2; 1038valueTextSize.Width, 1049labelBackPosition.X = rectLabel.X + (rectLabel.Width - valueTextSize.Width) / 2f; 1053labelBackPosition.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; 1946rectLabel.Width -= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F); 1949rectLabel.X += (float)Math.Min(rectLabel.Width, markerSize.Width / 2F); 1971rectLabel.Width -= (float)Math.Min(rectLabel.Width, markerSize.Width / 2F); 1974rectLabel.X += (float)Math.Min(rectLabel.Width, markerSize.Width / 2F); 1992valueTextSize.Width > rectLabel.Width) 2014valueTextSize.Width > rectLabel.Width - 1 && 2047rotationCenter.X = rectLabel.X + size.Width / 2; 2051rotationCenter.X = rectLabel.Right - size.Width / 2; 2114SizeF sizeLabel = new SizeF(size.Width, size.Height); 2116sizeLabel.Width += sizeLabel.Width / text.Length; 2118rotationCenter.X - sizeLabel.Width / 2, 2120sizeLabel.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)); 966SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 968sizeLabel.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), 1250SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1251sizeLabel.Width += sizeLabel.Width / text.Length; 1372SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1373sizeLabel.Width += sizeLabel.Width / text.Length;
Common\ChartTypes\ErrorBarChart.cs (3)
880 new RectangleF(xPosition, yPosition, markerSize.Width, markerSize.Height)); 1023SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1025sizeLabel.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; 2395if (!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; 1260SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1262sizeLabel.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; 1343x3Overlap = -relativeSize.Width * shift * expShift + middlePoint.X - relativeSize.Width / 10 * labelsHorizontalLineSize; 1344x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.Width * shift * expShift + middlePoint.X - relativeSize.Width / 10 * labelsHorizontalLineSize; 1360x3Overlap = relativeSize.Width * shift * expShift + middlePoint.X + relativeSize.Width / 10 * labelsHorizontalLineSize; 1361x3 = (float)Math.Cos((midAngle) * Math.PI / 180) * relativeSize.Width * shift * expShift + middlePoint.X + relativeSize.Width / 10 * labelsHorizontalLineSize; 1403float spacing = valueTextSize.Width / text.Length / 2; 1408valueTextSize.Width, 1418labelBackPosition.X = rect.X + (rect.Width - valueTextSize.Width) / 2f; 1422labelBackPosition.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 ); 5501float spacing = valueTextSize.Width / text.Length / 2; 5506valueTextSize.Width, 5516labelBackPosition.X = labelPosition.X + (labelPosition.Width - valueTextSize.Width) / 2f; 5520labelBackPosition.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), 707SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 708float 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), 1075SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1077sizeLabel.Width += sizeLabel.Width / text.Length; 1592 markerPosition.X - markerSize.Width/2f, 1594 markerSize.Width,
Common\ChartTypes\StackedAreaChart.cs (8)
1042SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1044sizeLabel.Width += sizeLabel.Width / text.Length; 1046labelPosition.X - sizeLabel.Width / 2, 1048sizeLabel.Width, 1524SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1526sizeLabel.Width += sizeLabel.Width / text.Length; 1528points[0].PointF.X - sizeLabel.Width / 2, 1530sizeLabel.Width,
Common\ChartTypes\StackedBarChart.cs (13)
1128labelPosition.X = rectangle.X + sizeFont.Width / 2f; 1132labelPosition.X = rectangle.Right - sizeFont.Width / 2f; 1136labelPosition.X = rectangle.Right + sizeFont.Width / 2f; 1180SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1182sizeLabel.Width += sizeLabel.Width / text.Length; 1184labelPosition.X - sizeLabel.Width / 2, 1186sizeLabel.Width, 1960rotationCenter.X = rectLabel.X + size.Width / 2; 1964rotationCenter.X = rectLabel.Right - size.Width / 2; 2084SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 2086sizeLabel.Width += sizeLabel.Width / text.Length; 2088rotationCenter.X - sizeLabel.Width / 2, 2090sizeLabel.Width,
Common\ChartTypes\StackedColumnChart.cs (8)
1237SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1239sizeLabel.Width += sizeLabel.Width / text.Length; 1241labelPosition.X - sizeLabel.Width / 2, 1243sizeLabel.Width, 1949SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1951sizeLabel.Width += sizeLabel.Width / text.Length; 1953labelPosition.X - sizeLabel.Width / 2, 1955sizeLabel.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), 1062SizeF sizeLabel = new SizeF(sizeFont.Width, sizeFont.Height); 1064sizeLabel.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; 1845axisTitleSize = graph.GetRelativeSize(new SizeF(axisTitleSize.Height, axisTitleSize.Width)); 1847 _titlePosition.Width = axisTitleSize.Width; 1868_titlePosition.Width = axisTitleSize.Width; 1888axisTitleSize = graph.GetRelativeSize(new SizeF(axisTitleSize.Height, axisTitleSize.Width)); 1890 _titlePosition.Width = axisTitleSize.Width; 2252axisTitleSize.Height = axisTitleSize.Width; 2313rotationCenter.X = ChartArea.PlotAreaPosition.X + axisTitleSize.Width / 2f; 2317rotationCenter.X = ChartArea.PlotAreaPosition.Right - axisTitleSize.Width / 2f; 2325rotationCenter.X = ChartArea.PlotAreaPosition.X + axisTitleSize.Width / 2f; 2329rotationCenter.X = ChartArea.PlotAreaPosition.Right - axisTitleSize.Width / 2f; 2676rect.Inflate(size.Width, 2); 3404this.titleSize = Math.Min(titleStringSize.Width, maxTitlesize); 3415 titleStringSize = chartGraph.GetRelativeSize(new SizeF(titleStringSize.Height, titleStringSize.Width)); 3419 this.titleSize = Math.Min(titleStringSize.Width, maxTitlesize); 3488arrowSize = Math.Max(arrowSizePrimary.Width, arrowSizeSecondary.Width); 3547this.markSize += borderSize.Width / 2f; 3587this.markSize += areaWallSize.Width; 4869float tempValue = textSize.Width; 4884float leftSideAngle = (float)(Math.Atan((textSize.Width / 2f) / plotAreaRadius) * 180f / Math.PI); 4952textSize.Width, 4956curLabelPosition.X = labelPosition[0].X - textSize.Width / 2f; 4961curLabelPosition.X = labelPosition[0].X - textSize.Width / 2f; 5323axisLabelSize.Width += imageRelSize.Width; 5333axisLabelSize.Width += spacerSize.Width; 5345axisLabelSize.Width = chartGraph.GetRelativeSize(new SizeF(axisLabelSize.Width, axisLabelSize.Width)).Width; 5346groupingLabelSizes[groupLevelIndex - 1] = (float)Math.Max(groupingLabelSizes[groupLevelIndex - 1], axisLabelSize.Width); 5350if (Math.Round(axisLabelSize.Width) >= Math.Round(rect.Width) && 5472(axisLabelSize.Width == 0f || 5497axisLabelSize.Width = Math.Max(axisLabelSize.Width, imageRelSize.Width); 5501axisLabelSize.Width += imageRelSize.Width; 5512axisLabelSize.Width += spacerSize.Width; 5518float width = axisLabelSize.Width; 5528width += (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5531height += (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5535width = (float)Math.Cos((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5538height = (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5708if (axisLabelSize.Width == 0f || axisLabelSize.Height == 0f) 5732axisLabelSize.Width = Math.Max(axisLabelSize.Width, imageRelSize.Width); 5736axisLabelSize.Width += imageRelSize.Width; 5747axisLabelSize.Width += spacerSize.Width; 5753float width = axisLabelSize.Width; 5757width = (float)Math.Cos((90 - Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5761height += (float)Math.Sin((90 - Math.Abs(angle)) / 180F * Math.PI) * axisLabelSize.Width; 5766axisLabelSize.Width = (float)Math.Ceiling(axisLabelSize.Width) * 1.05f; 5779labelNearOffset = (float)Math.Min(labelNearOffset, (fromPosition + toPosition) / 2f - axisLabelSize.Width / 2f); 5780labelFarOffset = (float)Math.Max(labelFarOffset, (fromPosition + toPosition) / 2f + axisLabelSize.Width / 2f); 5804resultSize = Math.Max(resultSize, axisLabelSize.Width); 5805resultRotatedSize = Math.Max(resultRotatedSize, axisLabelSize.Width); 5813resultSize = Math.Max(resultSize, axisLabelSize.Width); 5939axisLabelSize.Width = (float)Math.Ceiling(axisLabelSize.Width); 5951 axisLabelSize.Width += imageRelSize.Width; 5961 axisLabelSize.Width += spacerSize.Width; 5976axisLabelSize.Width = chartGraph.GetRelativeSize(new SizeF(axisLabelSize.Width, axisLabelSize.Width)).Width; 5977resultSize[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)
718imageScaleRect.Width = size.Width; 1719new PointF(absCenter.X - size.Width / 2f, absCenter.Y - size.Height / 2f), 1720new PointF(absCenter.X + size.Width / 2f, absCenter.Y - size.Height / 2f), 1721new PointF(absCenter.X + size.Width / 2f, absCenter.Y + size.Height / 2f), 1722new PointF(absCenter.X - size.Width / 2f, absCenter.Y + size.Height / 2f)}; 1986labelRect.Width = labelSize.Width; 1990labelRect.X = absPosition.Right - labelSize.Width; 1998labelRect.X = absPosition.X + absPosition.Width / 2F - labelSize.Width / 2F; 2136absPositionWithoutImage.Width -= imageAbsSize.Width; 2137absPositionWithoutImage.X += imageAbsSize.Width; 2160SizeF labelSizeWithImage = new SizeF(labelSize.Width, labelSize.Height); 2163labelSizeWithImage.Width += imageAbsSize.Width; 2290absPosition.X + (absPosition.Width - imageAbsSize.Width - labelSize.Width) / 2, 2292imageAbsSize.Width, 2310imageRect.X = absPosition.X + (absPosition.Width - imageAbsSize.Width - labelSize.Width) / 2; 2314imageRect.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; 3547imageRect.Width = Math.Min(fillRect.Width, imageAbsSize.Width); 3597(backImageWrapMode == ChartImageWrapMode.Unscaled) ? imageRect.Width * image.Width / imageAbsSize.Width : image.Width, 4228imageRect.Width = imageAbsSize.Width; 4524imageRect.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 ); 3607Point3D[] centerPoint = new Point3D[] { new Point3D(point.X, point.Y, positionZ + markerRelativeSize.Width) }; 3632rectNonRotated.X = point.X - ((float)markerRelativeSize.Width) / 2F; 3634rectNonRotated.Width = markerRelativeSize.Width; 3640positionZ - markerRelativeSize.Width / 2f, 3641markerRelativeSize.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; 2262if (rect.Width < pixelSize.Width) 2264rect.Width = pixelSize.Width;
Common\General\Legend.cs (11)
888 Size maxSize = new Size((int)maxSizeAbs.Width, (int)maxSizeAbs.Height); 1102maxSize.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)
1512cellSize.Width = (int)imageSize.Width; 2099imagePosition.Width = (int)imageSize.Width; 2226 int newWidth = (int)(this.SeriesSymbolSize.Width * singleWCharacterSize.Width / 100f); 2296imageScale.Width = (int)imageSize.Width; 2437imageScale.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 3093rect1.Inflate(size.Width, 2); 3177rect.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; 705textSizeProjection[1] = new Point3D(size.Width, 0f, zPositon); 713size.Width *= size.Width / (textSizeProjection[index].X - textSizeProjection[(index == 0) ? 1 : 0].X); 725rotationCenter.X = rect.X + size.Width / 2 + sizeBorder.Width; 729rotationCenter.X = rect.Right - size.Width / 2 - sizeBorder.Width;
Common\General\Title.cs (9)
1374float tempValue = layoutArea.Width; 1398float tempValue = titleSize.Width; 1409 titlePosition.Width = titleSize.Width; 1488 titleSize.Width, 1862float tempValue = layoutArea.Width; 1888float 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)
47return new Size(Convert.ToInt32(Math.Ceiling(textSize.Width)), Convert.ToInt32(Math.Ceiling(textSize.Height)));
System.Workflow.ComponentModel (13)
AuthoringOM\Design\DesignerHelpers.cs (1)
79return new Size(Convert.ToInt32(Math.Ceiling(textSize.Width)), Convert.ToInt32(Math.Ceiling(textSize.Height)));
AuthoringOM\Design\DesignerWidgets.cs (4)
1342maxTextSize.Width = Math.Max(Convert.ToInt32(Math.Ceiling(size.Width)), maxTextSize.Width); 1978this.drawItems[i].TextSize = new Size(Convert.ToInt32(Math.Ceiling(sizef.Width)), Convert.ToInt32(Math.Ceiling(sizef.Height))); 2167int width = Convert.ToInt32((Math.Ceiling(textSize.Width) / 3)) * 30; 3386this.previewDescTextSize = new Size(Convert.ToInt32(Math.Ceiling(stringSize.Width)), Convert.ToInt32(Math.Ceiling(stringSize.Height)));
AuthoringOM\Design\WorkflowLayouts.cs (6)
151transformationMatrix.Scale(viewPortData.Scaling.Width, viewPortData.Scaling.Height, MatrixOrder.Prepend); 239transformationMatrix.Scale(viewPortData.Scaling.Width, viewPortData.Scaling.Height, MatrixOrder.Prepend); 535coOrdTxMatrix.Scale(viewPortData.Scaling.Width, viewPortData.Scaling.Height, MatrixOrder.Prepend); 546coOrdTxMatrix.Scale(viewPortData.Scaling.Width / (float)this.parentView.Zoom * 100.0f, viewPortData.Scaling.Height / (float)this.parentView.Zoom * 100.0f); 608coOrdTxMatrix.Scale(viewPortData.Scaling.Width, viewPortData.Scaling.Height, MatrixOrder.Prepend); 627viewPortMatrix.Scale(viewPortData.Scaling.Width, viewPortData.Scaling.Height, MatrixOrder.Prepend);
AuthoringOM\Design\WorkflowPrinting.cs (1)
266layoutRectangle.Size = new Size(Convert.ToInt32(Math.Ceiling((stringSize.Width))), Convert.ToInt32(Math.Ceiling((stringSize.Height))));
AuthoringOM\Design\WorkflowView.cs (1)
1573transformationMatrix.Scale(viewPortData.Scaling.Width, viewPortData.Scaling.Height, MatrixOrder.Prepend);