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