503 writes to Height
System.Drawing (5)
commonui\System\Drawing\Advanced\RectangleF.cs (3)
117this.Height = value.Height; 363this.Height += 2*y; 398this.Height = result.Height;
commonui\System\Drawing\Printing\PageSettings.cs (2)
250printableArea.Height = (float)UnsafeNativeMethods.GetDeviceCaps(hdc, SafeNativeMethods.VERTRES) * 100 / dpiY; 257printableArea.Height = (float)UnsafeNativeMethods.GetDeviceCaps(hdc, SafeNativeMethods.HORZRES) * 100 / dpiX;
System.Web.DataVisualization (248)
Common\Annotation\CalloutAnnotation.cs (1)
666 rectanglePosition.Height = -rectanglePosition.Height;
Common\Annotation\GroupAnnotation.cs (1)
935 selectionRect.Height = -selectionRect.Height;
Common\Annotation\ImageAnnotation.cs (1)
540 rectanglePosition.Height = -rectanglePosition.Height;
Common\Annotation\LineAnnotation.cs (1)
889 selectionRect.Height = 0f;
Common\Annotation\PolygonAnnotation.cs (1)
581 rectanglePosition.Height = -rectanglePosition.Height;
Common\Annotation\RectangleAnnotation.cs (2)
404 rectanglePosition.Height = -rectanglePosition.Height; 642 rectanglePosition.Height = -rectanglePosition.Height;
Common\Annotation\TextAnnotation.cs (4)
434 textPosition.Height = -textPosition.Height; 538 textPositionWithSpacing.Height -= (textSpacing.Height + textSpacing.Y) * spacingScaleY; 559 textPositionWithSpacing.Height = textPosition.Height; 560 textPositionWithSpacing.Height -= textSpacing.Height/2f + textSpacing.Y / 2f;
Common\Borders3D\EmbedBorder.cs (11)
686 rect.Height -= sizeRightBottom.Height + sizeLeftTop.Height; 865 areasRect.Height -= (float)Math.Min(areasRect.Height, relSizeLeftTop.Height + relSizeRightBottom.Height); 877 areasRect.Height -= 100f - areasRect.Bottom; 957 shadowRect.Height -= radius * .3f; 966 shadowRect.Height -= radius * .3f; 972 shadowRect.Height -= radius * .3f; 1002 screwRect.Height = screwRect.Width; 1026 shadowRect.Height -= radius * .3f; 1041 shadowRect.Height += 0.5f*radius; 1056 shadowRect.Height -= radius * .3f; 1068 shadowWithOffset.Height += radius;
Common\Borders3D\EmbossBorder.cs (4)
126 areasRect.Height -= (float)Math.Min(areasRect.Height, borderSize.Height * 2.5f); 208 shadowRect.Height -= radius * .3f; 216 shadowRect.Height -= radius / 3.5f; 224 shadowRect.Height -= radius * .75f;
Common\ChartTypes\BarChart.cs (9)
560 rectSize.Height = (float)(width); 919rectLabel.Height = rectSize.Height + (float)width; 1065rectLabel.Height = textSize.Height; 1469 rectSize.Height = (float)(pointEx.width); 1521 rectSize.Height -= area.PlotAreaPosition.Y - rectSize.Y; 1526 rectSize.Height -= rectSize.Bottom - area.PlotAreaPosition.Bottom; 1530 rectSize.Height = 0; 1668 rectSize.Height = (float)(pointEx.width); 1938rectLabel.Height = rectSize.Height + (float)width;
Common\ChartTypes\BoxPlotChart.cs (4)
439 rectSize.Height = (float)Math.Abs(rectSize.Y - vAxis.GetPosition( point.YValues[2] )); 579 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y; 1227 rectSize.Height = (float)Math.Abs(rectSize.Y - points[2].Y); 1366 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y;
Common\ChartTypes\ColumnChart.cs (4)
476 rectSize.Height = (float)height - rectSize.Y; 481 rectSize.Height = (float)columnStartPosition - rectSize.Y; 807 rectSize.Height = (float)height - rectSize.Y; 812 rectSize.Height = (float)columnStartPosition - rectSize.Y;
Common\ChartTypes\ErrorBarChart.cs (2)
597 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y; 1361 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y;
Common\ChartTypes\FunnelChart.cs (7)
1166 boundsRect.Height = 1f; 1746 requiredSpacing.Height = position.Bottom - plotAreaPositionAbs.Bottom; 1816 labelInfo.Position.Height = labelInfo.Size.Height; 2186 plotAreaSpacing.Height = plotAreaPosition.Height / 2f; 2193 plotAreaPosition.Height -= plotAreaSpacing.Y + plotAreaSpacing.Height; 2218 plotAreaPositionAbs.Height -= bottomSpacing; 2224 plotAreaPositionAbs.Height -= topSpacing + bottomSpacing;
Common\ChartTypes\PieChart.cs (14)
810 rectangle.Height = rectangle.Height * _sizeCorrection; 819 rect.Height = rect.Height / area.Position.Height * 100f; 1490 labelRect.Height = area.Position.Height; 1497 labelRect.Height = area.Position.Height; 1503 labelRect.Height = size.Height * 1.8f; 1821doughnutRect.Height = rectangle.Height * (100 - doughnutRadius) / 100; 1997 rect.Height = (float)(endPoints[ splitIndex ] - rect.Top); 2050 rect.Height = (float)(endPoints[ splitIndex ] - rect.Top); 2587 rectangle.Height = rectangle.Height * sizeCorrection; 2609 rect.Height = rect.Height / area.Position.Height * 100f; 5333 pieRectangle.Height = pieRectangle.Height - pieRectangle.Height * 0.3F; 5344 pieRectangle.Height = oldHeight * (float)this.MinimumRelativePieSize( area ); 5468labelPosition.Height = labelVertSize; 5488labelPosition.Height = labelVertSize;
Common\ChartTypes\PointAndFigureChart.cs (2)
821 position.Height = (float)boxSizeRel; 827 position.Height -= 2 * spacing;
Common\ChartTypes\PointChart.cs (1)
975 labelPosition.Height = size.Height;
Common\ChartTypes\StackedBarChart.cs (8)
487 areaPosition.Height = bottom - areaPosition.Y; 816 rectSize.Height = (float)(width); 1565 rectSize.Height = (float)(pointEx.width); 1617 rectSize.Height -= area.PlotAreaPosition.Y - rectSize.Y; 1622 rectSize.Height -= rectSize.Bottom - area.PlotAreaPosition.Bottom; 1626 rectSize.Height = 0; 1730 rectSize.Height = (float)(pointEx.width); 1894rectLabel.Height = rectSize.Height + (float)width;
Common\ChartTypes\StackedColumnChart.cs (7)
493 areaPosition.Height = bottom - areaPosition.Y; 843 rectSize.Height = (float)height - rectSize.Y; 848 rectSize.Height = (float)zero - rectSize.Y; 1614 rectSize.Height = (float)height - rectSize.Y; 1619 rectSize.Height = (float)zero - rectSize.Y; 1773 rectSize.Height = (float)height - rectSize.Y; 1778 rectSize.Height = (float)zero - rectSize.Y;
Common\ChartTypes\StockChart.cs (5)
468 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y; 800 rect.Height = (float)Math.Max(open, close) - rect.Y; 1282 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y; 1625 rect.Height = (float)Math.Max(open, close) - rect.Y; 1639 rect.Height = (float)Math.Abs(points[1].Y - points[0].Y);
Common\General\Axis.cs (19)
1826_titlePosition.Height = axisTitleSize.Height; 1848 _titlePosition.Height = axisTitleSize.Height; 1869_titlePosition.Height = axisTitleSize.Height; 1891 _titlePosition.Height = axisTitleSize.Height; 1906_titlePosition.Height = titleSizeWithoutSpacing; 1922_titlePosition.Height = titleSizeWithoutSpacing; 1977transformedTitlePosition.Height = Math.Abs(transformedTitlePosition.Height); 2053rect.Height = rect.Width; 2154rect.Height = rect.Width; 5301rect.Height = (maxLabelSize / 100F) * maxAxisLabelRow2Size / groupLabelLevelCount; 5309rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 5412rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 5434rect.Height *= 2F; 5443rect.Height = rect.Width; 5557labelPosition.Height = height; 5665rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 5671rect.Height *= 2F; 5679rect.Height = rect.Width; 5700rect.Height = (float)Math.Ceiling(rect.Height);
Common\General\AxisScale.cs (1)
1828 paintAreaPosition.Height /= 2.0f;
Common\General\AxisScaleSegments.cs (6)
392 shadowPartRect.Height -= this.axis.ChartArea.ShadowOffset; 401 shadowPartRect.Height = this.axis.ChartArea.ShadowOffset + 2; 435 clipRegion.Height += this.axis.ChartArea.ShadowOffset; 698 breakPosition.Height = (float)Math.Max(from, to); 712 breakPosition.Height = (float)Math.Abs(breakPosition.Y - breakPosition.Height); 720 breakPosition.Height += 2 * this.axis.ChartArea.BorderWidth;
Common\General\Chart.cs (8)
2157 chartAreasRectangle.Height -= elementSpacing; 2199 areaPosition.Height = chartAreasRectangle.Height / areaRows - elementSpacing; 3117 areaPlotPosition.Height -= area.PlotAreaPosition.Y - areaPlotPosition.Y; 3129 areaPlotPosition.Height -= areaPlotPosition.Bottom - area.PlotAreaPosition.Bottom; 3132 areaPlotPosition.Height = 5; 3154 rect.Height = areaPlotPosition.Height; 3164 rect.Height = rect.Height / area.Position.Height * 100f; 3219 areaPosition.Height = masterArea.Position.Height;
Common\General\ChartArea.cs (16)
1473 plottingRect.Height = (Position.Height / 100F) * InnerPlotPosition.Height; 1564 plottingRect.Height -= areaWallSize.Height; 1569 plottingRect.Height -= areaWallSize.Height; 1680 plottingRect.Height -= axisSize; 1685 plottingRect.Height -= axisSize; 1750rectLabelSideSpacing.Height = (float)Math.Max(axis.labelFarOffset - Position.Bottom, rectLabelSideSpacing.Height); 1754rectLabelSideSpacing.Height = (float)Math.Max(plottingRect.Height * 0.3f, rectLabelSideSpacing.Height); 1772plottingRect.Height += delta; 1782plottingRect.Height += (Position.Bottom - plottingRect.Bottom) - rectLabelSideSpacing.Height; 1807 plottingRect.Height -= 2f * yTitleSize; 1820 rect.Height = rect.Width; 1840 plottingRect.Height = 0f; 2093plottingRect.Height = (Position.Height / 100F) * InnerPlotPosition.Height; 2155currentAxis.paintAreaPosition.Height /= 2.0f; 2624 plotAreaRectAbs.Height -= 2f * labelsSize; 2633 plotAreaRectAbs.Height = 1.0f;
Common\General\ChartArea3D.cs (3)
709 position.Height += areaSceneWallWidth.Height; 770 wallRect2D.Height = areaSceneWallWidth.Height; 1283 plottingRect.Height = (area.Position.Height / 100F) * area.InnerPlotPosition.Height;
Common\General\ChartGraphics.cs (35)
491 tempRect.Height = tempRect.Height / 2F; 719imageScaleRect.Height = size.Height; 725rect.Height = imageScaleRect.Height; 781rect.Height = markerSize; 1041diamondRect.Height = diamondSize; 1798absPosition.Height = 1f; 1879newRect.Height = absPosition.Width; 1935newRect.Height = absPosition.Width; 1987labelRect.Height = labelSize.Height; 2056boundaryRect.Height += boundaryRect.Y; 2061boundaryRect.Height = this._common.Height - boundaryRect.Y; 2080absPosition.Height = labelRect.Height; 2088absPosition.Height = labelRect.Height; 2095absPosition.Height = labelRect.Height; 2106absPosition.Height = labelRect.Height; 2213absPosition.Height += delta; 2406 newRect.Height = absPosition.Width; 2851 gradientRect.Height *= 0.3f; 2879 gradientRect.Height = rect.Bottom - gradientRect.Y; 2972 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3001 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3433 rect.Height = 1.0F; 3485 fillRect.Height = 2f * this._height; 3537 imageRect.Height = fillRect.Height; 3548imageRect.Height = Math.Min(fillRect.Height, imageAbsSize.Height); 3665 rect.Height += 1; 3762offset.Height = absolute.Height; 3784 offset.Height = absolute.Height + 2; 4197 fillRect.Height += 1; 4218 imageRect.Height = fillRect.Height; 4229imageRect.Height = imageAbsSize.Height; 4514 imageRect.Height = fillRect.Height; 4525imageRect.Height = imageSize.Height; 4657 relative.Height = rectangle.Height * 100F / ((float)(_height - 1)); 4748 absolute.Height = rectangle.Height * (_height - 1) / 100F;
Common\General\ChartGraphics3D.cs (12)
714pieTopRectangle.Height = topSecondRectPoint.Y - topFirstRectPoint.Y; 720pieBottomRectangle.Height = bottomSecondRectPoint.Y - bottomFirstRectPoint.Y; 845pieRectangle.Height = secondRectPoint.Y - firstRectPoint.Y; 971pieRectangle.Height = secondRectPoint.Y - firstRectPoint.Y; 977pieDoughnutRectangle.Height = pieRectangle.Height * doughnutRadius; 3249 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3281 bounds.Height += 1f; 3306 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3337 bounds.Height += 1f; 3512 rect.Height = markerSize; 3534rect.Height = markerSize; 3635rectNonRotated.Height = markerRelativeSize.Height;
Common\General\Label.cs (37)
1325 labelPosition.Height = size.Height; 1417rectLabels.Height = labelSize; 1430rectLabels.Height = labelSize; 1458boundaryRect.Height -= _axis.totlaGroupingLabelsSize; 1462boundaryRect.Height -= _axis.totlaGroupingLabelsSize; 1656rect.Height = _axis.unRotatedLabelSize; 1661rect.Height /= 2F; 1670rect.Height = _axis.unRotatedLabelSize; 1675rect.Height /= 2F; 1715rect.Height = _axis.groupingLabelSizes[label.RowIndex - 1]; 1724rect.Height = _axis.groupingLabelSizes[label.RowIndex - 1]; 1760rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 1767rect.Height *= 2F; 1879 rectLabels.Height = labelsAxis.labelSize; 1883 rectLabels.Height = (float)Math.Max(rectLabels.Height, rectLabels.Y - labelsAxis.PlotAreaPosition.Y); 1903 rectLabels.Height = labelsAxis.labelSize; 1907 rectLabels.Height = (float)Math.Max(rectLabels.Height, labelsAxis.PlotAreaPosition.Bottom - rectLabels.Y); 2051boundaryRect.Height -= _axis.totlaGroupingLabelsSize; 2055boundaryRect.Height -= _axis.totlaGroupingLabelsSize; 2164rect.Height = _axis.unRotatedLabelSize; 2170rect.Height /= 2F; 2181rect.Height = _axis.unRotatedLabelSize; 2187rect.Height /= 2F; 2234rect.Height = _axis.groupingLabelSizes[label.RowIndex - 1]; 2243rect.Height = _axis.groupingLabelSizes[label.RowIndex - 1]; 2278rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 2281rect.Height = pixelSize.Height; 2289rect.Height *= 2F; 2307rect.Height = rectPoints[2].Y - rect.Y; 2317rect.Height = rectPoints[2].Y - rect.Y; 2333rect.Height = rectPoints[1].Y - rect.Y; 2339rect.Height = rectPoints[2].Y - rect.Y; 2347rect.Height = rectPoints[0].Y - rect.Y; 2364rect.Height = rect.Bottom - rectPoints[1].Y; 2371rect.Height = rectPoints[0].Y - rect.Y; 2385rect.Height = rectPoints[2].Y - rect.Y; 2474rect.Height = firstLabelsRowHeight;
Common\General\Legend.cs (3)
1112 legendPosition.Height = legendSize.Height; 1137 chartAreasRectangle.Height -= legendPosition.Height + elementSpacing; 1157 chartAreasRectangle.Height -= legendPosition.Height + elementSpacing;
Common\General\Selection.cs (1)
2795rect.Height = 0;
Common\General\SmartLabels.cs (1)
1415 labelPosition.Height = size.Height;
Common\General\StripLine.cs (6)
370 rect.Height = (float)Math.Max(pos1, pos2) - rect.Y; 378 rect.Height = plotAreaPosition.Height; 488 lineRect.Height = relBorderWidth.Height; 495 lineRect.Height = point2.Y - point1.Y; 582 rect.Height = 0f; 625 rect.Height = point2.Y - rect.Y;
Common\General\Title.cs (11)
1425 titlePosition.Height = titleSize.Height; 1566 absPosition.Height -= this.titleBorderSpacing; 1895 titlePosition.Height = titleSize.Height; 1914 chartAreasRectangle.Height -= titlePosition.Height + elementSpacing; 1928 chartAreasRectangle.Height -= titlePosition.Height + elementSpacing; 1934 titlePosition.Height = chartAreasRectangle.Bottom - titlePosition.Y - elementSpacing; 1937 titlePosition.Height = 0; 1948 titlePosition.Height = chartAreasRectangle.Bottom - titlePosition.Y - elementSpacing; 1951 titlePosition.Height = 0; 2104prevChartAreasRectangle.Height += titlePosition.Height + areaSpacing; 2113prevChartAreasRectangle.Height += titlePosition.Height +areaSpacing;
System.Windows.Forms (1)
winforms\Managed\System\WinForms\LinkLabel.cs (1)
1187finalrect.Height = requiredSize.Height;
System.Windows.Forms.DataVisualization (249)
Common\Annotation\CalloutAnnotation.cs (1)
666 rectanglePosition.Height = -rectanglePosition.Height;
Common\Annotation\GroupAnnotation.cs (1)
935 selectionRect.Height = -selectionRect.Height;
Common\Annotation\ImageAnnotation.cs (1)
540 rectanglePosition.Height = -rectanglePosition.Height;
Common\Annotation\LineAnnotation.cs (1)
889 selectionRect.Height = 0f;
Common\Annotation\PolygonAnnotation.cs (1)
581 rectanglePosition.Height = -rectanglePosition.Height;
Common\Annotation\RectangleAnnotation.cs (2)
404 rectanglePosition.Height = -rectanglePosition.Height; 642 rectanglePosition.Height = -rectanglePosition.Height;
Common\Annotation\TextAnnotation.cs (4)
434 textPosition.Height = -textPosition.Height; 538 textPositionWithSpacing.Height -= (textSpacing.Height + textSpacing.Y) * spacingScaleY; 559 textPositionWithSpacing.Height = textPosition.Height; 560 textPositionWithSpacing.Height -= textSpacing.Height/2f + textSpacing.Y / 2f;
Common\Borders3D\EmbedBorder.cs (11)
686 rect.Height -= sizeRightBottom.Height + sizeLeftTop.Height; 865 areasRect.Height -= (float)Math.Min(areasRect.Height, relSizeLeftTop.Height + relSizeRightBottom.Height); 877 areasRect.Height -= 100f - areasRect.Bottom; 957 shadowRect.Height -= radius * .3f; 966 shadowRect.Height -= radius * .3f; 972 shadowRect.Height -= radius * .3f; 1002 screwRect.Height = screwRect.Width; 1026 shadowRect.Height -= radius * .3f; 1041 shadowRect.Height += 0.5f*radius; 1056 shadowRect.Height -= radius * .3f; 1068 shadowWithOffset.Height += radius;
Common\Borders3D\EmbossBorder.cs (4)
126 areasRect.Height -= (float)Math.Min(areasRect.Height, borderSize.Height * 2.5f); 208 shadowRect.Height -= radius * .3f; 216 shadowRect.Height -= radius / 3.5f; 224 shadowRect.Height -= radius * .75f;
Common\ChartTypes\BarChart.cs (9)
560 rectSize.Height = (float)(width); 919rectLabel.Height = rectSize.Height + (float)width; 1065rectLabel.Height = textSize.Height; 1469 rectSize.Height = (float)(pointEx.width); 1521 rectSize.Height -= area.PlotAreaPosition.Y - rectSize.Y; 1526 rectSize.Height -= rectSize.Bottom - area.PlotAreaPosition.Bottom; 1530 rectSize.Height = 0; 1668 rectSize.Height = (float)(pointEx.width); 1938rectLabel.Height = rectSize.Height + (float)width;
Common\ChartTypes\BoxPlotChart.cs (4)
439 rectSize.Height = (float)Math.Abs(rectSize.Y - vAxis.GetPosition( point.YValues[2] )); 579 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y; 1227 rectSize.Height = (float)Math.Abs(rectSize.Y - points[2].Y); 1366 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y;
Common\ChartTypes\ColumnChart.cs (4)
476 rectSize.Height = (float)height - rectSize.Y; 481 rectSize.Height = (float)columnStartPosition - rectSize.Y; 807 rectSize.Height = (float)height - rectSize.Y; 812 rectSize.Height = (float)columnStartPosition - rectSize.Y;
Common\ChartTypes\ErrorBarChart.cs (2)
597 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y; 1361 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y;
Common\ChartTypes\FunnelChart.cs (7)
1166 boundsRect.Height = 1f; 1746 requiredSpacing.Height = position.Bottom - plotAreaPositionAbs.Bottom; 1816 labelInfo.Position.Height = labelInfo.Size.Height; 2186 plotAreaSpacing.Height = plotAreaPosition.Height / 2f; 2193 plotAreaPosition.Height -= plotAreaSpacing.Y + plotAreaSpacing.Height; 2218 plotAreaPositionAbs.Height -= bottomSpacing; 2224 plotAreaPositionAbs.Height -= topSpacing + bottomSpacing;
Common\ChartTypes\PieChart.cs (14)
810 rectangle.Height = rectangle.Height * _sizeCorrection; 819 rect.Height = rect.Height / area.Position.Height * 100f; 1490 labelRect.Height = area.Position.Height; 1497 labelRect.Height = area.Position.Height; 1503 labelRect.Height = size.Height * 1.8f; 1821doughnutRect.Height = rectangle.Height * (100 - doughnutRadius) / 100; 1997 rect.Height = (float)(endPoints[ splitIndex ] - rect.Top); 2050 rect.Height = (float)(endPoints[ splitIndex ] - rect.Top); 2587 rectangle.Height = rectangle.Height * sizeCorrection; 2609 rect.Height = rect.Height / area.Position.Height * 100f; 5333 pieRectangle.Height = pieRectangle.Height - pieRectangle.Height * 0.3F; 5344 pieRectangle.Height = oldHeight * (float)this.MinimumRelativePieSize( area ); 5468labelPosition.Height = labelVertSize; 5488labelPosition.Height = labelVertSize;
Common\ChartTypes\PointAndFigureChart.cs (2)
821 position.Height = (float)boxSizeRel; 827 position.Height -= 2 * spacing;
Common\ChartTypes\PointChart.cs (1)
975 labelPosition.Height = size.Height;
Common\ChartTypes\StackedBarChart.cs (8)
487 areaPosition.Height = bottom - areaPosition.Y; 816 rectSize.Height = (float)(width); 1565 rectSize.Height = (float)(pointEx.width); 1617 rectSize.Height -= area.PlotAreaPosition.Y - rectSize.Y; 1622 rectSize.Height -= rectSize.Bottom - area.PlotAreaPosition.Bottom; 1626 rectSize.Height = 0; 1730 rectSize.Height = (float)(pointEx.width); 1894rectLabel.Height = rectSize.Height + (float)width;
Common\ChartTypes\StackedColumnChart.cs (7)
493 areaPosition.Height = bottom - areaPosition.Y; 843 rectSize.Height = (float)height - rectSize.Y; 848 rectSize.Height = (float)zero - rectSize.Y; 1614 rectSize.Height = (float)height - rectSize.Y; 1619 rectSize.Height = (float)zero - rectSize.Y; 1773 rectSize.Height = (float)height - rectSize.Y; 1778 rectSize.Height = (float)zero - rectSize.Y;
Common\ChartTypes\StockChart.cs (5)
468 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y; 800 rect.Height = (float)Math.Max(open, close) - rect.Y; 1282 areaRect.Height = (float)Math.Max(high, low) - areaRect.Y; 1625 rect.Height = (float)Math.Max(open, close) - rect.Y; 1639 rect.Height = (float)Math.Abs(points[1].Y - points[0].Y);
Common\General\Axis.cs (19)
1826_titlePosition.Height = axisTitleSize.Height; 1848 _titlePosition.Height = axisTitleSize.Height; 1869_titlePosition.Height = axisTitleSize.Height; 1891 _titlePosition.Height = axisTitleSize.Height; 1906_titlePosition.Height = titleSizeWithoutSpacing; 1922_titlePosition.Height = titleSizeWithoutSpacing; 1977transformedTitlePosition.Height = Math.Abs(transformedTitlePosition.Height); 2053rect.Height = rect.Width; 2154rect.Height = rect.Width; 5301rect.Height = (maxLabelSize / 100F) * maxAxisLabelRow2Size / groupLabelLevelCount; 5309rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 5412rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 5434rect.Height *= 2F; 5443rect.Height = rect.Width; 5557labelPosition.Height = height; 5665rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 5671rect.Height *= 2F; 5679rect.Height = rect.Width; 5700rect.Height = (float)Math.Ceiling(rect.Height);
Common\General\AxisScale.cs (1)
1828 paintAreaPosition.Height /= 2.0f;
Common\General\AxisScaleSegments.cs (6)
392 shadowPartRect.Height -= this.axis.ChartArea.ShadowOffset; 401 shadowPartRect.Height = this.axis.ChartArea.ShadowOffset + 2; 435 clipRegion.Height += this.axis.ChartArea.ShadowOffset; 698 breakPosition.Height = (float)Math.Max(from, to); 712 breakPosition.Height = (float)Math.Abs(breakPosition.Y - breakPosition.Height); 720 breakPosition.Height += 2 * this.axis.ChartArea.BorderWidth;
Common\General\Chart.cs (8)
2157 chartAreasRectangle.Height -= elementSpacing; 2199 areaPosition.Height = chartAreasRectangle.Height / areaRows - elementSpacing; 3117 areaPlotPosition.Height -= area.PlotAreaPosition.Y - areaPlotPosition.Y; 3129 areaPlotPosition.Height -= areaPlotPosition.Bottom - area.PlotAreaPosition.Bottom; 3132 areaPlotPosition.Height = 5; 3154 rect.Height = areaPlotPosition.Height; 3164 rect.Height = rect.Height / area.Position.Height * 100f; 3219 areaPosition.Height = masterArea.Position.Height;
Common\General\ChartArea.cs (16)
1473 plottingRect.Height = (Position.Height / 100F) * InnerPlotPosition.Height; 1564 plottingRect.Height -= areaWallSize.Height; 1569 plottingRect.Height -= areaWallSize.Height; 1680 plottingRect.Height -= axisSize; 1685 plottingRect.Height -= axisSize; 1750rectLabelSideSpacing.Height = (float)Math.Max(axis.labelFarOffset - Position.Bottom, rectLabelSideSpacing.Height); 1754rectLabelSideSpacing.Height = (float)Math.Max(plottingRect.Height * 0.3f, rectLabelSideSpacing.Height); 1772plottingRect.Height += delta; 1782plottingRect.Height += (Position.Bottom - plottingRect.Bottom) - rectLabelSideSpacing.Height; 1807 plottingRect.Height -= 2f * yTitleSize; 1820 rect.Height = rect.Width; 1840 plottingRect.Height = 0f; 2093plottingRect.Height = (Position.Height / 100F) * InnerPlotPosition.Height; 2155currentAxis.paintAreaPosition.Height /= 2.0f; 2624 plotAreaRectAbs.Height -= 2f * labelsSize; 2633 plotAreaRectAbs.Height = 1.0f;
Common\General\ChartArea3D.cs (3)
709 position.Height += areaSceneWallWidth.Height; 770 wallRect2D.Height = areaSceneWallWidth.Height; 1283 plottingRect.Height = (area.Position.Height / 100F) * area.InnerPlotPosition.Height;
Common\General\ChartGraphics.cs (35)
491 tempRect.Height = tempRect.Height / 2F; 719imageScaleRect.Height = size.Height; 725rect.Height = imageScaleRect.Height; 781rect.Height = markerSize; 1041diamondRect.Height = diamondSize; 1798absPosition.Height = 1f; 1879newRect.Height = absPosition.Width; 1935newRect.Height = absPosition.Width; 1987labelRect.Height = labelSize.Height; 2056boundaryRect.Height += boundaryRect.Y; 2061boundaryRect.Height = this._common.Height - boundaryRect.Y; 2080absPosition.Height = labelRect.Height; 2088absPosition.Height = labelRect.Height; 2095absPosition.Height = labelRect.Height; 2106absPosition.Height = labelRect.Height; 2213absPosition.Height += delta; 2406 newRect.Height = absPosition.Width; 2851 gradientRect.Height *= 0.3f; 2879 gradientRect.Height = rect.Bottom - gradientRect.Y; 2972 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3001 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3433 rect.Height = 1.0F; 3485 fillRect.Height = 2f * this._height; 3537 imageRect.Height = fillRect.Height; 3548imageRect.Height = Math.Min(fillRect.Height, imageAbsSize.Height); 3665 rect.Height += 1; 3762offset.Height = absolute.Height; 3784 offset.Height = absolute.Height + 2; 4197 fillRect.Height += 1; 4218 imageRect.Height = fillRect.Height; 4229imageRect.Height = imageAbsSize.Height; 4514 imageRect.Height = fillRect.Height; 4525imageRect.Height = imageSize.Height; 4657 relative.Height = rectangle.Height * 100F / ((float)(_height - 1)); 4748 absolute.Height = rectangle.Height * (_height - 1) / 100F;
Common\General\ChartGraphics3D.cs (12)
714pieTopRectangle.Height = topSecondRectPoint.Y - topFirstRectPoint.Y; 720pieBottomRectangle.Height = bottomSecondRectPoint.Y - bottomFirstRectPoint.Y; 845pieRectangle.Height = secondRectPoint.Y - firstRectPoint.Y; 971pieRectangle.Height = secondRectPoint.Y - firstRectPoint.Y; 977pieDoughnutRectangle.Height = pieRectangle.Height * doughnutRadius; 3249 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3281 bounds.Height += 1f; 3306 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3337 bounds.Height += 1f; 3512 rect.Height = markerSize; 3534rect.Height = markerSize; 3635rectNonRotated.Height = markerRelativeSize.Height;
Common\General\Label.cs (37)
1325 labelPosition.Height = size.Height; 1417rectLabels.Height = labelSize; 1430rectLabels.Height = labelSize; 1458boundaryRect.Height -= _axis.totlaGroupingLabelsSize; 1462boundaryRect.Height -= _axis.totlaGroupingLabelsSize; 1656rect.Height = _axis.unRotatedLabelSize; 1661rect.Height /= 2F; 1670rect.Height = _axis.unRotatedLabelSize; 1675rect.Height /= 2F; 1715rect.Height = _axis.groupingLabelSizes[label.RowIndex - 1]; 1724rect.Height = _axis.groupingLabelSizes[label.RowIndex - 1]; 1760rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 1767rect.Height *= 2F; 1879 rectLabels.Height = labelsAxis.labelSize; 1883 rectLabels.Height = (float)Math.Max(rectLabels.Height, rectLabels.Y - labelsAxis.PlotAreaPosition.Y); 1903 rectLabels.Height = labelsAxis.labelSize; 1907 rectLabels.Height = (float)Math.Max(rectLabels.Height, labelsAxis.PlotAreaPosition.Bottom - rectLabels.Y); 2051boundaryRect.Height -= _axis.totlaGroupingLabelsSize; 2055boundaryRect.Height -= _axis.totlaGroupingLabelsSize; 2164rect.Height = _axis.unRotatedLabelSize; 2170rect.Height /= 2F; 2181rect.Height = _axis.unRotatedLabelSize; 2187rect.Height /= 2F; 2234rect.Height = _axis.groupingLabelSizes[label.RowIndex - 1]; 2243rect.Height = _axis.groupingLabelSizes[label.RowIndex - 1]; 2278rect.Height = (float)Math.Max(fromPosition, toPosition) - rect.Y; 2281rect.Height = pixelSize.Height; 2289rect.Height *= 2F; 2307rect.Height = rectPoints[2].Y - rect.Y; 2317rect.Height = rectPoints[2].Y - rect.Y; 2333rect.Height = rectPoints[1].Y - rect.Y; 2339rect.Height = rectPoints[2].Y - rect.Y; 2347rect.Height = rectPoints[0].Y - rect.Y; 2364rect.Height = rect.Bottom - rectPoints[1].Y; 2371rect.Height = rectPoints[0].Y - rect.Y; 2385rect.Height = rectPoints[2].Y - rect.Y; 2474rect.Height = firstLabelsRowHeight;
Common\General\Legend.cs (3)
1112 legendPosition.Height = legendSize.Height; 1137 chartAreasRectangle.Height -= legendPosition.Height + elementSpacing; 1157 chartAreasRectangle.Height -= legendPosition.Height + elementSpacing;
Common\General\Selection.cs (1)
2795rect.Height = 0;
Common\General\SmartLabels.cs (1)
1415 labelPosition.Height = size.Height;
Common\General\StripLine.cs (6)
370 rect.Height = (float)Math.Max(pos1, pos2) - rect.Y; 378 rect.Height = plotAreaPosition.Height; 488 lineRect.Height = relBorderWidth.Height; 495 lineRect.Height = point2.Y - point1.Y; 582 rect.Height = 0f; 625 rect.Height = point2.Y - rect.Y;
Common\General\Title.cs (11)
1425 titlePosition.Height = titleSize.Height; 1566 absPosition.Height -= this.titleBorderSpacing; 1895 titlePosition.Height = titleSize.Height; 1914 chartAreasRectangle.Height -= titlePosition.Height + elementSpacing; 1928 chartAreasRectangle.Height -= titlePosition.Height + elementSpacing; 1934 titlePosition.Height = chartAreasRectangle.Bottom - titlePosition.Y - elementSpacing; 1937 titlePosition.Height = 0; 1948 titlePosition.Height = chartAreasRectangle.Bottom - titlePosition.Y - elementSpacing; 1951 titlePosition.Height = 0; 2104prevChartAreasRectangle.Height += titlePosition.Height + areaSpacing; 2113prevChartAreasRectangle.Height += titlePosition.Height +areaSpacing;
WinForm\Utilities\AccessibleObject.cs (1)
307absolute.Height = bounds.Height * (this._chart.Height - 1) / 100F;
1082 references to Height
System.Drawing (51)
commonui\System\Drawing\Advanced\GPRECTF.cs (1)
33Height = rect.Height;
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); 1657srcRect.Height,
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); 236return Y + Height; 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); 269(comp.Height == this.Height); 283&& left.Height == right.Height); 309y < this.Y + this.Height; 337((rect.Y + rect.Height) <= (this.Y + this.Height)); 349(((UInt32)Height << 7) | ((UInt32)Height >> 25)))); 398this.Height = result.Height; 411float y2 = Math.Min(a.Y + a.Height, b.Y + b.Height); 429(rect.Y < this.Y + this.Height) && 430(this.Y < rect.Y + rect.Height); 443float y2 = Math.Max(a.Y + a.Height, b.Y + b.Height); 470return new GPRECTF(X, Y, Width, Height); 490",Height=" + Height.ToString(CultureInfo.CurrentCulture) + "}";
commonui\System\Drawing\Advanced\TextureBrush.cs (2)
126dstRect.Height, 224dstRect.Height,
commonui\System\Drawing\Bitmap.cs (2)
524if (rect.Width == 0 || rect.Height == 0) { 534rect.Height,
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); 3003srcRect.Height, 3057destRect.Height, 3061srcRect.Height, 3133srcRect.Height, 3191srcRect.Height, 3978rect.Width, rect.Height, combineMode); 4038rect.Width, rect.Height, CombineMode.Intersect); 4379rect.Width, rect.Height, out isVisible);
commonui\System\Drawing\Rectangle.cs (3)
303(int)Math.Ceiling(value.Height)); 315(int)value.Height); 327(int)Math.Round(value.Height));
commonui\System\Drawing\Region.cs (1)
870rect.Width, rect.Height,
System.Web.DataVisualization (514)
Common\Annotation\AnnotationBase.cs (8)
2120 handlePosition = new PointF(rect.Right, rect.Y + rect.Height / 2f); 2132 handlePosition = new PointF(rect.X, rect.Y + rect.Height / 2f); 2322 if(!double.IsNaN(position.Height)) 2324 this.Height = position.Height; 2491 relativeHeight = contentPosition.Height; 2911 double newHeight = position.Height; 3029 !float.IsNaN(position.Height) && 3032 newBottom = vertAxis.PositionToValue(anchorPoint.Y + position.Height, false);
Common\Annotation\CalloutAnnotation.cs (16)
663 if(rectanglePosition.Height < 0) 666 rectanglePosition.Height = -rectanglePosition.Height; 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); 982 points[2] = new PointF(rectanglePositionAbs.Right, rectanglePositionAbs.Y + rectanglePositionAbs.Height / 2f - size); 984 points[4] = new PointF(rectanglePositionAbs.Right, rectanglePositionAbs.Y + rectanglePositionAbs.Height / 2f + size); 1030 points[4] = new PointF(rectanglePositionAbs.X, rectanglePositionAbs.Y + rectanglePositionAbs.Height/2f + size ); 1032 points[6] = new PointF(rectanglePositionAbs.X, rectanglePositionAbs.Y + rectanglePositionAbs.Height/2f - size ); 1118 rectanglePosition.Y + rectanglePosition.Height / 2f) ); 1122 new SizeF(rectanglePosition.Width, rectanglePosition.Height)); 1515 lineSecondPoint.Y = rectanglePosition.Y + rectanglePosition.Height / 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)
932 if(selectionRect.Height < 0) 935 selectionRect.Height = -selectionRect.Height;
Common\Annotation\ImageAnnotation.cs (2)
537 if(rectanglePosition.Height < 0) 540 rectanglePosition.Height = -rectanglePosition.Height;
Common\Annotation\PolygonAnnotation.cs (4)
578 if(rectanglePosition.Height < 0) 581 rectanglePosition.Height = -rectanglePosition.Height; 598 float groupScaleY = rectanglePositionAbs.Height / 100.0f; 882 movingDistance.Height /= startMovePositionRel.Height / 100.0f;
Common\Annotation\RectangleAnnotation.cs (5)
401 if(rectanglePosition.Height < 0) 404 rectanglePosition.Height = -rectanglePosition.Height; 639 if(rectanglePosition.Height < 0) 642 rectanglePosition.Height = -rectanglePosition.Height; 659 absRectanglePosition.Height > 30f)
Common\Annotation\TextAnnotation.cs (10)
431 if(textPosition.Height < 0) 434 textPosition.Height = -textPosition.Height; 528 if(textPosition.Height > 25f) 530 spacingScaleY = textPosition.Height / 50f; 538 textPositionWithSpacing.Height -= (textSpacing.Height + textSpacing.Y) * spacingScaleY; 559 textPositionWithSpacing.Height = textPosition.Height; 560 textPositionWithSpacing.Height -= textSpacing.Height/2f + textSpacing.Y / 2f; 658textActualPosition.Y += textPositionWithSpacing.Height - textSize.Height; 664textActualPosition.Y += (textPositionWithSpacing.Height - textSize.Height) / 2f; 981 contentSize.Height += (textSpacing.Y + textSpacing.Height) * spacingScaleY;
Common\Borders3D\EmbedBorder.cs (12)
687 if(rect.Width > 0 && rect.Height > 0 ) 865 areasRect.Height -= (float)Math.Min(areasRect.Height, relSizeLeftTop.Height + relSizeRightBottom.Height); 876 if(areasRect.Height > 100f - areasRect.Bottom) 941 radius = (float)Math.Min(radius, rect.Height/2f); 1011 screwRect.Y = shadowRect.Bottom - offset - screwRect.Height; 1016 screwRect.Y = shadowRect.Bottom - offset - screwRect.Height; 1033 shadowRect.Height + 0.5f*radius), 1063 shadowRect.Height - .2f*radius), 1093 graph.DrawEllipse(screwPen, rect.X, rect.Y, rect.Width, rect.Height); 1094graph.DrawLine(screwPen, rect.X + 2 * resolution / 96.0f, rect.Y + rect.Height - 2 * resolution / 96.0f, rect.Right - 2 * resolution / 96.0f, rect.Y + 2 * resolution / 96.0f); 1096graph.DrawEllipse(screwPen, rect.X + 1 * resolution / 96.0f, rect.Y + 1 * resolution / 96.0f, rect.Width, rect.Height); 1097graph.DrawLine(screwPen, rect.X + 3 * resolution / 96.0f, rect.Y + rect.Height - 1 * resolution / 96.0f, rect.Right - 1 * resolution / 96.0f, rect.Y + 3 * resolution / 96.0f);
Common\Borders3D\EmbossBorder.cs (5)
126 areasRect.Height -= (float)Math.Min(areasRect.Height, borderSize.Height * 2.5f); 133 if(areasRect.Y + areasRect.Height > 100f) 135 areasRect.Y -= 100f - areasRect.Height; 196 radius = (float)Math.Min(radius, rect.Height/2f); 252 shadowRect.Height + radius - radius*0.25f),
Common\ChartTypes\BarChart.cs (13)
650if ((rectSize.Y + rectSize.Height / 2f) >= area.PlotAreaPosition.Y && 651(rectSize.Y + rectSize.Height / 2f) <= area.PlotAreaPosition.Bottom) 785 markerPosition.Y = rectSize.Y + rectSize.Height/2F; 919rectLabel.Height = rectSize.Height + (float)width; 1028if (rectLabel.Width > 0 && rectLabel.Height > 0) 1037rectLabel.Y + (rectLabel.Height - valueTextSize.Height) / 2, 1062if (textSize.Height > rectLabel.Height) 1064rectLabel.Y -= (textSize.Height - rectLabel.Height) / 2f; 1528 if(rectSize.Height < 0) 1532 if(rectSize.Height == 0f || rectSize.Width == 0f) 1768 markerPosition.Y = rectSize.Y + rectSize.Height/2F; 1938rectLabel.Height = rectSize.Height + (float)width; 2042SizeF size = graph.MeasureStringRel(text, point.Font, new SizeF(rectLabel.Width, rectLabel.Height), format);
Common\ChartTypes\ColumnChart.cs (4)
864 rectSize.Height > 0f && 1105 if(intersection.Height <= 0f || intersection.Width <= 0f) 1240labelPosition.Y = intersection.Y + intersection.Height / 2f; 1354labelPosition.Y = columnPosition.Y + columnPosition.Height / 2f;
Common\ChartTypes\FastLineChart.cs (1)
650if (pathBounds.Width <= 2.0 || pathBounds.Height <= 2.0)
Common\ChartTypes\FastPointChart.cs (3)
523 (int)Math.Round(markerBounds.Height, 0) ); 584 points[0].Y = markerBounds.Y + markerBounds.Height/2F; 588 points[2].Y = markerBounds.Y + markerBounds.Height/2F;
Common\ChartTypes\FunnelChart.cs (15)
539 float plotAreaHeightAbs = plotAreaPositionAbs.Height - 1164 if(boundsRect.Height == 0f) 1512 !float.IsNaN(labelInfo.Position.Height) ) 1744 if( (position.Bottom - plotAreaPositionAbs.Bottom) > requiredSpacing.Height ) 1757 requiredSpacing.Height > 1f ) 2180 if(plotAreaSpacing.Y > plotAreaPosition.Height / 2f) 2182 plotAreaSpacing.Y = plotAreaPosition.Height / 2f; 2184 if(plotAreaSpacing.Height > plotAreaPosition.Height / 2f) 2186 plotAreaSpacing.Height = plotAreaPosition.Height / 2f; 2193 plotAreaPosition.Height -= plotAreaSpacing.Y + plotAreaSpacing.Height; 2421 if(neckSize.Height > this.PlotAreaPosition.Height/2f) 2423 neckSize.Height = this.PlotAreaPosition.Height/2f; 2461float maxGapSize = this.PlotAreaPosition.Height / (this.pointNumber - ((ShouldDrawFirstPoint()) ? 1 : 2)); 2916 float plotAreaHeightAbs = plotAreaPositionAbs.Height -
Common\ChartTypes\PieChart.cs (78)
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 ); 808 rectangle.Y += rectangle.Height * ( 1 - _sizeCorrection ) / 2; 810 rectangle.Height = rectangle.Height * _sizeCorrection; 819 rect.Height = rect.Height / area.Position.Height * 100f; 820 area.InnerPlotPosition.SetPositionNoAuto(rect.X, rect.Y, rect.Width, rect.Height); 872 double yComponent = Math.Sin( midAngle * Math.PI / 180 ) * rectangle.Height / 10; 898 RectangleF shadowRect = new RectangleF( rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height ); 1035 point.positionRel.Y = (float)Math.Sin( (midAngle) * Math.PI / 180 ) * rectangle.Height * expShift / 2 + middlePoint.Y; 1407rect.Y + rect.Height / 2f - valueTextSize.Height / 2f, 1819doughnutRect.Y = rectangle.Y + rectangle.Height * (1 - (100 - doughnutRadius) / 100) / 2; 1821doughnutRect.Height = rectangle.Height * (100 - doughnutRadius) / 100; 1827path.AddPie(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, startAngle, sweepAngle); 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 ); 2585 rectangle.Y += rectangle.Height * ( 1 - sizeCorrection ) / 2; 2587 rectangle.Height = rectangle.Height * sizeCorrection; 2597 double yComponent = Math.Sin( midAngle * Math.PI / 180 ) * rectangle.Height / 10; 2609 rect.Height = rect.Height / area.Position.Height * 100f; 2610 area.InnerPlotPosition.SetPositionNoAuto(rect.X, rect.Y, rect.Width, rect.Height); 3081 rectangle.Y + (float)Math.Sin( 180 * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3087 rectangle.Y + (float)Math.Sin( 180 * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3093 rectangle.Y + (float)Math.Sin( 0 * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3099 rectangle.Y + (float)Math.Sin( 0 * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3105 rectangle.Y + (float)Math.Sin( startAngle * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3111 rectangle.Y + (float)Math.Sin( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3117 rectangle.Y + (float)Math.Sin( startAngle * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3123 rectangle.Y + (float)Math.Sin( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3129 rectangle.Y + rectangle.Height / 2F, 3135 rectangle.Y + rectangle.Height / 2F, 3141 rectangle.Y + (float)Math.Sin( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3158 rectangle.Y + (float)Math.Sin( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Height * sizeOut / 2F + rectangle.Height / 2F, 3166 rectangle.Y + (float)Math.Sin( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Height * ( 1 + doughnutRadius ) / 4F + rectangle.Height / 2F, 3173 rectangle.Y + (float)Math.Sin( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Height * 0.5F / 2F + rectangle.Height / 2F, 3195 rectangle.Y + (float)Math.Sin( 180 * Math.PI / 180 ) * rectangle.Height * doughnutRadius / 2F + rectangle.Height / 2F, 3201 rectangle.Y + (float)Math.Sin( 180 * Math.PI / 180 ) * rectangle.Height * doughnutRadius / 2F + rectangle.Height / 2F, 3207 rectangle.Y + (float)Math.Sin( 0 * Math.PI / 180 ) * rectangle.Height * doughnutRadius / 2F + rectangle.Height / 2F, 3213 rectangle.Y + (float)Math.Sin( 0 * Math.PI / 180 ) * rectangle.Height * doughnutRadius / 2F + rectangle.Height / 2F, 3219 rectangle.Y + (float)Math.Sin( startAngle * Math.PI / 180 ) * rectangle.Height * doughnutRadius / 2F + rectangle.Height / 2F, 3225 rectangle.Y + (float)Math.Sin( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Height * doughnutRadius / 2F + rectangle.Height / 2F, 3231 rectangle.Y + (float)Math.Sin( startAngle * Math.PI / 180 ) * rectangle.Height * doughnutRadius / 2F + rectangle.Height / 2F, 3237 rectangle.Y + (float)Math.Sin( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Height * doughnutRadius / 2F + rectangle.Height / 2F, 3240 rectangle.Inflate( -rectangle.Width * (1 - doughnutRadius) / 2F, -rectangle.Height * (1 - doughnutRadius) / 2F); 4959 angle = (float)Math.Atan( ( position.Y - _innerPlotPosition.Top - _innerPlotPosition.Height / 2) / ( position.X - _innerPlotPosition.Left - _innerPlotPosition.Width / 2 )); 5243 columnHeight = _chartAreaPosition.Height / numOfItems; 5328 float oldHeight = pieRectangle.Height; 5333 pieRectangle.Height = pieRectangle.Height - pieRectangle.Height * 0.3F; 5342 if( pieRectangle.Height < oldHeight * (float)this.MinimumRelativePieSize( area ) ) 5356 pieRectangle.Y = pieRectangle.Y + ( oldHeight - pieRectangle.Height ) / 2F; 5363 int maxNumOfRows = (int)( pieRectangle.Height / maxSizeVertical/*fontSize.Height*/ ); 5505labelPosition.Y + labelPosition.Height / 2f - valueTextSize.Height / 2f,
Common\ChartTypes\StackedBarChart.cs (5)
1079labelPosition.Y = rectangle.Y + rectangle.Height / 2f; 1624 if(rectSize.Height < 0) 1628 if(rectSize.Height == 0f || rectSize.Width == 0f) 1894rectLabel.Height = rectSize.Height + (float)width; 1955SizeF size = graph.MeasureStringRel(text, point.Font, new SizeF(rectLabel.Width, rectLabel.Height), format);
Common\ChartTypes\StackedColumnChart.cs (3)
1159labelPosition.Y = rectangle.Y + rectangle.Height / 2f; 1668 if(rectSize.Height == 0f || rectSize.Width == 0f) 1875labelPosition.Y = rectangle.Y + rectangle.Height / 2f;
Common\ChartTypes\StockChart.cs (3)
808 SizeF sizeOfHeight = new SizeF( rect.Height, rect.Height ); 1642 if(rect.Height > 1)
Common\General\Axis.cs (32)
1850_titlePosition.Y += ChartArea.PlotAreaPosition.Height / 2f - _titlePosition.Height / 2f; 1893_titlePosition.Y += ChartArea.PlotAreaPosition.Height / 2f - _titlePosition.Height / 2f; 1975if (transformedTitlePosition.Height < 0) 1977transformedTitlePosition.Height = Math.Abs(transformedTitlePosition.Height); 1978transformedTitlePosition.Y -= transformedTitlePosition.Height; 2009center.Y = titlePosition.Y + titlePosition.Height / 2F; 2043if (rect.Width != rect.Height) 2045if (rect.Width > rect.Height) 2047rect.X += (rect.Width - rect.Height) / 2f; 2048rect.Width = rect.Height; 2052rect.Y += (rect.Height - rect.Width) / 2f; 2144if (rect.Width != rect.Height) 2146if (rect.Width > rect.Height) 2148rect.X += (rect.Width - rect.Height) / 2f; 2149rect.Width = rect.Height; 2153rect.Y += (rect.Height - rect.Width) / 2f; 2182if (rect.Width >= 1f && rect.Height > 1) 3401maxTitlesize = (plotArea.Height / 100F) * (Axis.maxAxisTitleSize / axesNumber); 3542this.markSize = Math.Min(this.markSize, (plotArea.Height / 100F) * (Axis.maxAxisMarkSize / axesNumber)); 3638maxLabelSize = plotArea.Height * (_maximumAutoSize / 100f); 4966curLabelPosition.Inflate(0f, -curLabelPosition.Height * 0.15f); 5355if (Math.Round(axisLabelSize.Height) >= Math.Round(rect.Height) && 5433rect.Y -= rect.Height / 2F; 5442float val = rect.Height; 5556labelPosition.Y = labelPosition.Y + labelPosition.Height / 2f - height / 2f; 5570if (height >= rect.Height && checkHeight) 5581if (height >= rect.Height && checkHeight) 5594if (height >= rect.Height * 2F && checkHeight) 5605if (height >= rect.Height * 2F && checkHeight) 5670rect.Y -= rect.Height / 2F; 5678float val = rect.Height; 5700rect.Height = (float)Math.Ceiling(rect.Height);
Common\General\AxisScale.cs (2)
1831 paintAreaPositionBottom = paintAreaPosition.Y + paintAreaPosition.Height; 1838 paintChartAreaSize = paintAreaPosition.Height;
Common\General\AxisScaleSegments.cs (4)
365 if(breakPosition.Width > 0f && breakPosition.Height > 0f) 414 size = Math.Min(size, breakPosition.Height); 485 if(breakPosition.Width > 0f && breakPosition.Height > 0f) 712 breakPosition.Height = (float)Math.Abs(breakPosition.Y - breakPosition.Height);
Common\General\Chart.cs (9)
2199 areaPosition.Height = chartAreasRectangle.Height / areaRows - elementSpacing; 2201 areaPosition.Y = chartAreasRectangle.Y + row * (chartAreasRectangle.Height / areaRows) + elementSpacing; 2210 area.Position.SetPositionNoAuto(areaPosition.X, areaPosition.Y, areaPosition.Width, areaPosition.Height); 3130 if(areaPlotPosition.Height < 5) 3154 rect.Height = areaPlotPosition.Height; 3158 area.PlotAreaPosition.SetPositionNoAuto(rect.X, rect.Y, rect.Width, rect.Height); 3164 rect.Height = rect.Height / area.Position.Height * 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 (21)
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); 1736if (Math.Abs(offset) > plottingRect.Height * 0.3f) 1738offset = plottingRect.Height * 0.3f; 1748if ((axis.labelFarOffset - Position.Bottom) < plottingRect.Height * 0.3f) 1750rectLabelSideSpacing.Height = (float)Math.Max(axis.labelFarOffset - Position.Bottom, rectLabelSideSpacing.Height); 1754rectLabelSideSpacing.Height = (float)Math.Max(plottingRect.Height * 0.3f, rectLabelSideSpacing.Height); 1780if (rectLabelSideSpacing.Height > 0 && rectLabelSideSpacing.Height > Position.Bottom - plottingRect.Bottom) 1782plottingRect.Height += (Position.Bottom - plottingRect.Bottom) - rectLabelSideSpacing.Height; 1812 if(rect.Width > rect.Height) 1814 rect.X += (rect.Width - rect.Height) / 2f; 1815 rect.Width = rect.Height; 1819 rect.Y += (rect.Height - rect.Width) / 2f; 1825 this.circularCenter = new PointF(plottingRect.X + plottingRect.Width/2f, plottingRect.Y + plottingRect.Height/2f); 1838 if(plottingRect.Height < 0f) 1847 (float)Math.Round(plottingRect.Height / (Position.Height / 100F), 5)); 2157currentAxis.paintAreaPositionBottom = currentAxis.paintAreaPosition.Y + currentAxis.paintAreaPosition.Height; 2162currentAxis.paintChartAreaSize = currentAxis.paintAreaPosition.Height; 2631 if(plotAreaRectAbs.Height < 1.0f)
Common\General\ChartArea3D.cs (2)
1397 axis.interval3DCorrection = size / plottingRect.Height; 1406 axis.interval3DCorrection = size / plottingRect.Height * plottingChartAreaCorrection;
Common\General\ChartGraphics.cs (145)
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); 491 tempRect.Height = tempRect.Height / 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)); 723rect.Y = point.Y - imageScaleRect.Height / 2F; 725rect.Height = imageScaleRect.Height; 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); 1007points[0].Y = rect.Y + rect.Height / 2F; 1011points[2].Y = rect.Y + rect.Height / 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); 1544 backPositionAbs.Height); 1783if (position.Width == 0 || position.Height == 0) 1796if (absPosition.Height < 1f) 1847rotationPoint.Y = absPosition.Y + absPosition.Height / 2F; 1852rotationPoint.Y = absPosition.Y + absPosition.Height / 2F; 1880newRect.Width = absPosition.Height; 1902newRect.Y += absPosition.Height; 1929rotationPoint.Y = absPosition.Y + absPosition.Height / 2F; 1933newRect.X = rotationPoint.X - absPosition.Height / 2F; 1936newRect.Width = absPosition.Height; 2011labelRect.Y = absPosition.Y + absPosition.Height / 2F - labelSize.Height / 2F; 2018offsetY = (float)Math.Sin((90 - angle) / 180F * Math.PI) * labelRect.Height / 2F; 2019offsetX = (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * labelRect.Height / 2F; 2076sizeChange -= labelRect.Height * (float)Math.Tan(Math.Abs(angle) / 180F * Math.PI); 2080absPosition.Height = labelRect.Height; 2084sizeChange -= labelRect.Height * (float)Math.Tan(Math.Abs(angle) / 180F * Math.PI); 2088absPosition.Height = labelRect.Height; 2095absPosition.Height = labelRect.Height; 2106absPosition.Height = labelRect.Height; 2189if (size.Height < absPosition.Height) 2209if (size.Height > absPosition.Height) 2211float delta = size.Height - absPosition.Height; 2291absPosition.Y + (absPosition.Height - imageAbsSize.Height) / 2, 2297imageRect.Y = absPosition.Y + (absPosition.Height - imageAbsSize.Height) / 2; 2398 PointF centerNotRound = new PointF(absPosition.X + absPosition.Width/2F, absPosition.Y + absPosition.Height/2F); 2404 newRect.X = centerNotRound.X - absPosition.Height / 2F; 2407 newRect.Width = absPosition.Height; 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) 2878 gradientRect.Y += gradientRect.Height + 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) 2972 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 2979 if(gradientRect.Width > 0 && gradientRect.Height > 0) 3000 gradientRect.Y = gradientRect.Bottom - (float)Math.Floor(gradientRect.Height / 3f); 3001 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3029 float size = (isVertical) ? rect.Width / 2f : rect.Height / 2f; 3030 if(isVertical && 2f * size > rect.Height) 3032 size = rect.Height/2f; 3051 path.AddLine(gradientRect.X + size, gradientRect.Y + gradientRect.Height/2f, gradientRect.Right - size, gradientRect.Y + gradientRect.Height/2f); 3052 path.AddLine(gradientRect.Right - size, gradientRect.Y + gradientRect.Height/2f, gradientRect.Right, gradientRect.Bottom); 3074 path.AddLine(gradientRect.Right, gradientRect.Y, gradientRect.Right - size, gradientRect.Y + gradientRect.Height / 2f); 3075 path.AddLine(gradientRect.Right - size, gradientRect.Y + gradientRect.Height / 2f, gradientRect.Right, gradientRect.Bottom); 3102 rect.Y + rect.Height/2f, 3104 rect.Bottom - rect.Height/2f); 3126 rect.Y + rect.Height/2f, 3128 rect.Bottom - rect.Height/2f); 3144 path.AddLine(gradientRect.X, gradientRect.Y, gradientRect.X + size, gradientRect.Y + gradientRect.Height / 2f); 3145 path.AddLine(gradientRect.X + size, gradientRect.Y + gradientRect.Height / 2f, gradientRect.X, gradientRect.Bottom); 3431 if( rect.Height < 1.0F && rect.Height > 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); 3465 rect.Height - borderWidth * 2f + 1); 3483 if(fillRect.Height > 2f * this._height) 3537 imageRect.Height = fillRect.Height; 3548imageRect.Height = Math.Min(fillRect.Height, imageAbsSize.Height); 3566 if(imageRect.Height < fillRect.Height) 3572 imageRect.Y = fillRect.Bottom - imageRect.Height; 3578 imageRect.Y = fillRect.Y + (fillRect.Height - imageRect.Height)/2; 3595 new Rectangle((int)Math.Round(imageRect.X),(int)Math.Round(imageRect.Y), (int)Math.Round(imageRect.Width), (int)Math.Round(imageRect.Height)), 3598(backImageWrapMode == ChartImageWrapMode.Unscaled) ? imageRect.Height * image.Height / imageAbsSize.Height : image.Height, 3669 this.DrawRectangle( _pen, rect.X, rect.Y, rect.Width, rect.Height ); 3723 if(rect.Height == 0 || rect.Width == 0 || shadowOffset == 0) 3762offset.Height = absolute.Height; 3784 offset.Height = absolute.Height + 2; 3790 radius = (float)Math.Min(radius, offset.Height/4f); 3799 if(circular && offset.Width != offset.Height) 3802 float radiusY = offset.Height/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); 3862 PointF centerPoint = new PointF(position.X + position.Width/2f, position.Y + position.Height/2f); 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 ); 4218 imageRect.Height = fillRect.Height; 4247 if(imageRect.Height < fillRect.Height) 4253 imageRect.Y = fillRect.Bottom - imageRect.Height; 4259 imageRect.Y = fillRect.Y + (fillRect.Height - imageRect.Height)/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 ); 4514 imageRect.Height = fillRect.Height; 4543 if(imageRect.Height < fillRect.Height) 4549 imageRect.Y = fillRect.Bottom - imageRect.Height; 4555 imageRect.Y = fillRect.Y + (fillRect.Height - imageRect.Height)/2; 4568 new Rectangle((int)Math.Round(imageRect.X),(int)Math.Round(imageRect.Y), (int)Math.Round(imageRect.Width), (int)Math.Round(imageRect.Height)), 4657 relative.Height = rectangle.Height * 100F / ((float)(_height - 1)); 4748 absolute.Height = rectangle.Height * (_height - 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); 5156 gradientPath.Y + position.Height * doughnutRadius /200 - 1 - shadowSize, 5158 gradientPath.Height - position.Height * 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 ); 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 (36)
725double angleCorrection = pieTopRectangle.Height / pieTopRectangle.Width; 736if (pieBottomRectangle.Height <= 0) 744path.AddArc(pieBottomRectangle.X, pieBottomRectangle.Y, pieBottomRectangle.Width, pieBottomRectangle.Height, startAngle, sweepAngle); 750if (pieTopRectangle.Height <= 0) 757path.AddArc(pieTopRectangle.X, pieTopRectangle.Y, pieTopRectangle.Width, pieTopRectangle.Height, startAngle + sweepAngle, -sweepAngle); 850double angleCorrection = pieRectangle.Height / pieRectangle.Width; 862if (pieRectangle.Height > 0) 865path.AddArc(pieRectangle.X, pieRectangle.Y, pieRectangle.Width, pieRectangle.Height, startAngle, sweepAngle); 976pieDoughnutRectangle.Y = pieRectangle.Y + pieRectangle.Height * (1F - doughnutRadius) / 2F; 977pieDoughnutRectangle.Height = pieRectangle.Height * doughnutRadius; 982double angleCorrection = pieRectangle.Height / pieRectangle.Width; 994if (pieRectangle.Height > 0) 997path.AddArc(pieRectangle.X, pieRectangle.Y, pieRectangle.Width, pieRectangle.Height, startAngle, sweepAngle); 1004if (pieDoughnutRectangle.Height > 0) 1006path.AddArc(pieDoughnutRectangle.X, pieDoughnutRectangle.Y, pieDoughnutRectangle.Width, pieDoughnutRectangle.Height, startAngle + sweepAngle, -sweepAngle); 2943 if(position.Height == 0.0 && currentSurface != SurfaceNames.Top && currentSurface != SurfaceNames.Bottom) 3090 float size = (isVertical) ? positionAbs.Width / 2f : positionAbs.Height / 2f; 3091 if(isVertical && 2f * size > positionAbs.Height) 3093 size = positionAbs.Height/2f; 3114 gradientPoints[4] = new Point3D( position.X + sizeRel.Width, position.Top + position.Height / 2f, positionZ + depth ); 3115 gradientPoints[5] = new Point3D( position.Right - sizeRel.Width, position.Top + position.Height / 2f, positionZ + depth ); 3234 if(positionAbs.Width < 6f || positionAbs.Height < 6f) 3238 else if(positionAbs.Width < 15f || positionAbs.Height < 15f) 3249 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3284 if(bounds.Width > 0f && bounds.Height > 0f) 3305 gradientRect.Y = gradientRect.Bottom - (float)Math.Floor(gradientRect.Height / 3f); 3306 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 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); 3997 float middleYValue = position.Y + position.Height / 2f; 4163 if(boundsRect.Height > 0 && boundsRect.Width > 0) 4176 boundsRectMiddlePoint.Y = boundsRect.Y + boundsRect.Height/2f;
Common\General\Label.cs (13)
1664rect.Y += rect.Height; 1678rect.Y += rect.Height; 1766rect.Y -= rect.Height / 2F; 1883 rectLabels.Height = (float)Math.Max(rectLabels.Height, rectLabels.Y - labelsAxis.PlotAreaPosition.Y); 1890 rectLabels.Y -= rectLabels.Height; 1907 rectLabels.Height = (float)Math.Max(rectLabels.Height, labelsAxis.PlotAreaPosition.Bottom - rectLabels.Y); 2173rect.Y += rect.Height; 2190rect.Y += rect.Height; 2279if (rect.Height < pixelSize.Height) 2288rect.Y -= rect.Height / 2F; 2303rectPoints[1] = new Point3D(rect.Right, rect.Y + rect.Height / 2f, labelsZPosition); 2313rectPoints[1] = new Point3D(rect.X, rect.Y + rect.Height / 2f, labelsZPosition); 2470firstLabelsRowHeight = (height > 0f) ? height : rect.Height;
Common\General\Legend.cs (12)
1090 SizeF maxSize = new SizeF(chartAreasRectangle.Width - 2*elementSpacing, chartAreasRectangle.Height - 2*elementSpacing); 1137 chartAreasRectangle.Height -= legendPosition.Height + elementSpacing; 1157 chartAreasRectangle.Height -= legendPosition.Height + elementSpacing; 1172 legendPosition.Y = chartAreasRectangle.Y + (chartAreasRectangle.Height - legendSize.Height) / 2F; 1192 legendPosition.Y = chartAreasRectangle.Y + (chartAreasRectangle.Height - legendSize.Height) / 2F; 1199 this.Position.SetPositionNoAuto(legendPosition.X, legendPosition.Y, legendPosition.Width, legendPosition.Height); 4599 new RectangleF(rect.Right - 1f, rect.Top, 0f, rect.Height), 4638 new RectangleF(rect.Right - 2f, rect.Top, 1f, rect.Height), 4926 float areaSpacing = Math.Min((chartAreasRectangle.Height/100F) * elementSpacing, (chartAreasRectangle.Width/100F) * elementSpacing); 4955 legendPosition.Y -= legendPosition.Height; 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)
246 _translateY = innerPlotRectangle.Y+innerPlotRectangle.Height/2; 249 float height = innerPlotRectangle.Height;
Common\General\Selection.cs (14)
2773list.Add(new PointF(rect.Right, rect.Top + rect.Height / 2)); 2775list.Add(new PointF(rect.Left, rect.Bottom - rect.Height / 2)); 2794rect.Offset(0, rect.Height / 2); 3199if (rect.Width > 0 && rect.Height > 0) 3211else if (rect.Height > 0) 3230if (rect.Height > 30) 3232list.Add(new PointF(rect.Right, rect.Top + rect.Height / 2)); 3242if (rect.Height > 30) 3244list.Add(new PointF(rect.Left, rect.Top + rect.Height / 2)); 3259else if (rect.Height > 0) 3262if (rect.Height > 30) 3264list.Add(new PointF(rect.Left, rect.Top + rect.Height / 2)); 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); 1078 labelPosition.Y + labelPosition.Height/2f); 1116 labelPosition.Y + labelPosition.Height/2f); 1175 labelPosition.Y + labelPosition.Height / 2f);
Common\General\StripLine.cs (2)
378 rect.Height = plotAreaPosition.Height; 386 if(rect.Width > 0 && rect.Height > 0)
Common\General\Title.cs (24)
1366 if(titlePosition.Width == 0 || titlePosition.Height == 0) 1371(titlePosition.Height == 0) ? Common.ChartPicture.Height : titlePosition.Height); 1423 if(titlePosition.Height == 0) 1430 titlePosition.Y = titlePosition.Y - titlePosition.Height; 1436 titlePosition.Y = titlePosition.Y - titlePosition.Height/2f; 1494 exactTitleRect.Y = titlePosition.Bottom - exactTitleRect.Height; 1501 titlePosition.Height / 2f - 1502 exactTitleRect.Height / 2f; 1650center.Y = absPosition.Y + absPosition.Height / 2F; 1850 frameTitlePosition.Height); 1857 SizeF layoutArea = new SizeF(chartAreasRectangle.Width, chartAreasRectangle.Height); 1914 chartAreasRectangle.Height -= titlePosition.Height + elementSpacing; 1928 chartAreasRectangle.Height -= titlePosition.Height + elementSpacing; 1935 if(titlePosition.Height < 0) 1949 if(titlePosition.Height < 0) 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); 2102 titlePosition.Y -= titlePosition.Height; 2103prevChartAreasRectangle.Y -= titlePosition.Height + areaSpacing; 2104prevChartAreasRectangle.Height += titlePosition.Height + areaSpacing; 2113prevChartAreasRectangle.Height += titlePosition.Height +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)
219 this._height = rect.Height;
System.Windows.Forms (1)
winforms\Managed\System\WinForms\LinkLabel.cs (1)
1186if (requiredSize.Height < finalrect.Height) {
System.Windows.Forms.DataVisualization (515)
Common\Annotation\AnnotationBase.cs (8)
2120 handlePosition = new PointF(rect.Right, rect.Y + rect.Height / 2f); 2132 handlePosition = new PointF(rect.X, rect.Y + rect.Height / 2f); 2322 if(!double.IsNaN(position.Height)) 2324 this.Height = position.Height; 2491 relativeHeight = contentPosition.Height; 2911 double newHeight = position.Height; 3029 !float.IsNaN(position.Height) && 3032 newBottom = vertAxis.PositionToValue(anchorPoint.Y + position.Height, false);
Common\Annotation\CalloutAnnotation.cs (16)
663 if(rectanglePosition.Height < 0) 666 rectanglePosition.Height = -rectanglePosition.Height; 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); 982 points[2] = new PointF(rectanglePositionAbs.Right, rectanglePositionAbs.Y + rectanglePositionAbs.Height / 2f - size); 984 points[4] = new PointF(rectanglePositionAbs.Right, rectanglePositionAbs.Y + rectanglePositionAbs.Height / 2f + size); 1030 points[4] = new PointF(rectanglePositionAbs.X, rectanglePositionAbs.Y + rectanglePositionAbs.Height/2f + size ); 1032 points[6] = new PointF(rectanglePositionAbs.X, rectanglePositionAbs.Y + rectanglePositionAbs.Height/2f - size ); 1118 rectanglePosition.Y + rectanglePosition.Height / 2f) ); 1122 new SizeF(rectanglePosition.Width, rectanglePosition.Height)); 1515 lineSecondPoint.Y = rectanglePosition.Y + rectanglePosition.Height / 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)
932 if(selectionRect.Height < 0) 935 selectionRect.Height = -selectionRect.Height;
Common\Annotation\ImageAnnotation.cs (2)
537 if(rectanglePosition.Height < 0) 540 rectanglePosition.Height = -rectanglePosition.Height;
Common\Annotation\PolygonAnnotation.cs (4)
578 if(rectanglePosition.Height < 0) 581 rectanglePosition.Height = -rectanglePosition.Height; 598 float groupScaleY = rectanglePositionAbs.Height / 100.0f; 882 movingDistance.Height /= startMovePositionRel.Height / 100.0f;
Common\Annotation\RectangleAnnotation.cs (5)
401 if(rectanglePosition.Height < 0) 404 rectanglePosition.Height = -rectanglePosition.Height; 639 if(rectanglePosition.Height < 0) 642 rectanglePosition.Height = -rectanglePosition.Height; 659 absRectanglePosition.Height > 30f)
Common\Annotation\TextAnnotation.cs (10)
431 if(textPosition.Height < 0) 434 textPosition.Height = -textPosition.Height; 528 if(textPosition.Height > 25f) 530 spacingScaleY = textPosition.Height / 50f; 538 textPositionWithSpacing.Height -= (textSpacing.Height + textSpacing.Y) * spacingScaleY; 559 textPositionWithSpacing.Height = textPosition.Height; 560 textPositionWithSpacing.Height -= textSpacing.Height/2f + textSpacing.Y / 2f; 658textActualPosition.Y += textPositionWithSpacing.Height - textSize.Height; 664textActualPosition.Y += (textPositionWithSpacing.Height - textSize.Height) / 2f; 981 contentSize.Height += (textSpacing.Y + textSpacing.Height) * spacingScaleY;
Common\Borders3D\EmbedBorder.cs (12)
687 if(rect.Width > 0 && rect.Height > 0 ) 865 areasRect.Height -= (float)Math.Min(areasRect.Height, relSizeLeftTop.Height + relSizeRightBottom.Height); 876 if(areasRect.Height > 100f - areasRect.Bottom) 941 radius = (float)Math.Min(radius, rect.Height/2f); 1011 screwRect.Y = shadowRect.Bottom - offset - screwRect.Height; 1016 screwRect.Y = shadowRect.Bottom - offset - screwRect.Height; 1033 shadowRect.Height + 0.5f*radius), 1063 shadowRect.Height - .2f*radius), 1093 graph.DrawEllipse(screwPen, rect.X, rect.Y, rect.Width, rect.Height); 1094graph.DrawLine(screwPen, rect.X + 2 * resolution / 96.0f, rect.Y + rect.Height - 2 * resolution / 96.0f, rect.Right - 2 * resolution / 96.0f, rect.Y + 2 * resolution / 96.0f); 1096graph.DrawEllipse(screwPen, rect.X + 1 * resolution / 96.0f, rect.Y + 1 * resolution / 96.0f, rect.Width, rect.Height); 1097graph.DrawLine(screwPen, rect.X + 3 * resolution / 96.0f, rect.Y + rect.Height - 1 * resolution / 96.0f, rect.Right - 1 * resolution / 96.0f, rect.Y + 3 * resolution / 96.0f);
Common\Borders3D\EmbossBorder.cs (5)
126 areasRect.Height -= (float)Math.Min(areasRect.Height, borderSize.Height * 2.5f); 133 if(areasRect.Y + areasRect.Height > 100f) 135 areasRect.Y -= 100f - areasRect.Height; 196 radius = (float)Math.Min(radius, rect.Height/2f); 252 shadowRect.Height + radius - radius*0.25f),
Common\ChartTypes\BarChart.cs (13)
650if ((rectSize.Y + rectSize.Height / 2f) >= area.PlotAreaPosition.Y && 651(rectSize.Y + rectSize.Height / 2f) <= area.PlotAreaPosition.Bottom) 785 markerPosition.Y = rectSize.Y + rectSize.Height/2F; 919rectLabel.Height = rectSize.Height + (float)width; 1028if (rectLabel.Width > 0 && rectLabel.Height > 0) 1037rectLabel.Y + (rectLabel.Height - valueTextSize.Height) / 2, 1062if (textSize.Height > rectLabel.Height) 1064rectLabel.Y -= (textSize.Height - rectLabel.Height) / 2f; 1528 if(rectSize.Height < 0) 1532 if(rectSize.Height == 0f || rectSize.Width == 0f) 1768 markerPosition.Y = rectSize.Y + rectSize.Height/2F; 1938rectLabel.Height = rectSize.Height + (float)width; 2042SizeF size = graph.MeasureStringRel(text, point.Font, new SizeF(rectLabel.Width, rectLabel.Height), format);
Common\ChartTypes\ColumnChart.cs (4)
864 rectSize.Height > 0f && 1105 if(intersection.Height <= 0f || intersection.Width <= 0f) 1240labelPosition.Y = intersection.Y + intersection.Height / 2f; 1354labelPosition.Y = columnPosition.Y + columnPosition.Height / 2f;
Common\ChartTypes\FastLineChart.cs (1)
650if (pathBounds.Width <= 2.0 || pathBounds.Height <= 2.0)
Common\ChartTypes\FastPointChart.cs (3)
523 (int)Math.Round(markerBounds.Height, 0) ); 584 points[0].Y = markerBounds.Y + markerBounds.Height/2F; 588 points[2].Y = markerBounds.Y + markerBounds.Height/2F;
Common\ChartTypes\FunnelChart.cs (15)
539 float plotAreaHeightAbs = plotAreaPositionAbs.Height - 1164 if(boundsRect.Height == 0f) 1512 !float.IsNaN(labelInfo.Position.Height) ) 1744 if( (position.Bottom - plotAreaPositionAbs.Bottom) > requiredSpacing.Height ) 1757 requiredSpacing.Height > 1f ) 2180 if(plotAreaSpacing.Y > plotAreaPosition.Height / 2f) 2182 plotAreaSpacing.Y = plotAreaPosition.Height / 2f; 2184 if(plotAreaSpacing.Height > plotAreaPosition.Height / 2f) 2186 plotAreaSpacing.Height = plotAreaPosition.Height / 2f; 2193 plotAreaPosition.Height -= plotAreaSpacing.Y + plotAreaSpacing.Height; 2421 if(neckSize.Height > this.PlotAreaPosition.Height/2f) 2423 neckSize.Height = this.PlotAreaPosition.Height/2f; 2461float maxGapSize = this.PlotAreaPosition.Height / (this.pointNumber - ((ShouldDrawFirstPoint()) ? 1 : 2)); 2916 float plotAreaHeightAbs = plotAreaPositionAbs.Height -
Common\ChartTypes\PieChart.cs (78)
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 ); 808 rectangle.Y += rectangle.Height * ( 1 - _sizeCorrection ) / 2; 810 rectangle.Height = rectangle.Height * _sizeCorrection; 819 rect.Height = rect.Height / area.Position.Height * 100f; 820 area.InnerPlotPosition.SetPositionNoAuto(rect.X, rect.Y, rect.Width, rect.Height); 872 double yComponent = Math.Sin( midAngle * Math.PI / 180 ) * rectangle.Height / 10; 898 RectangleF shadowRect = new RectangleF( rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height ); 1035 point.positionRel.Y = (float)Math.Sin( (midAngle) * Math.PI / 180 ) * rectangle.Height * expShift / 2 + middlePoint.Y; 1407rect.Y + rect.Height / 2f - valueTextSize.Height / 2f, 1819doughnutRect.Y = rectangle.Y + rectangle.Height * (1 - (100 - doughnutRadius) / 100) / 2; 1821doughnutRect.Height = rectangle.Height * (100 - doughnutRadius) / 100; 1827path.AddPie(rectangle.X, rectangle.Y, rectangle.Width, rectangle.Height, startAngle, sweepAngle); 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 ); 2585 rectangle.Y += rectangle.Height * ( 1 - sizeCorrection ) / 2; 2587 rectangle.Height = rectangle.Height * sizeCorrection; 2597 double yComponent = Math.Sin( midAngle * Math.PI / 180 ) * rectangle.Height / 10; 2609 rect.Height = rect.Height / area.Position.Height * 100f; 2610 area.InnerPlotPosition.SetPositionNoAuto(rect.X, rect.Y, rect.Width, rect.Height); 3081 rectangle.Y + (float)Math.Sin( 180 * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3087 rectangle.Y + (float)Math.Sin( 180 * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3093 rectangle.Y + (float)Math.Sin( 0 * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3099 rectangle.Y + (float)Math.Sin( 0 * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3105 rectangle.Y + (float)Math.Sin( startAngle * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3111 rectangle.Y + (float)Math.Sin( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3117 rectangle.Y + (float)Math.Sin( startAngle * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3123 rectangle.Y + (float)Math.Sin( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3129 rectangle.Y + rectangle.Height / 2F, 3135 rectangle.Y + rectangle.Height / 2F, 3141 rectangle.Y + (float)Math.Sin( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Height / 2F + rectangle.Height / 2F, 3158 rectangle.Y + (float)Math.Sin( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Height * sizeOut / 2F + rectangle.Height / 2F, 3166 rectangle.Y + (float)Math.Sin( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Height * ( 1 + doughnutRadius ) / 4F + rectangle.Height / 2F, 3173 rectangle.Y + (float)Math.Sin( ( startAngle + sweepAngle / 2 ) * Math.PI / 180 ) * rectangle.Height * 0.5F / 2F + rectangle.Height / 2F, 3195 rectangle.Y + (float)Math.Sin( 180 * Math.PI / 180 ) * rectangle.Height * doughnutRadius / 2F + rectangle.Height / 2F, 3201 rectangle.Y + (float)Math.Sin( 180 * Math.PI / 180 ) * rectangle.Height * doughnutRadius / 2F + rectangle.Height / 2F, 3207 rectangle.Y + (float)Math.Sin( 0 * Math.PI / 180 ) * rectangle.Height * doughnutRadius / 2F + rectangle.Height / 2F, 3213 rectangle.Y + (float)Math.Sin( 0 * Math.PI / 180 ) * rectangle.Height * doughnutRadius / 2F + rectangle.Height / 2F, 3219 rectangle.Y + (float)Math.Sin( startAngle * Math.PI / 180 ) * rectangle.Height * doughnutRadius / 2F + rectangle.Height / 2F, 3225 rectangle.Y + (float)Math.Sin( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Height * doughnutRadius / 2F + rectangle.Height / 2F, 3231 rectangle.Y + (float)Math.Sin( startAngle * Math.PI / 180 ) * rectangle.Height * doughnutRadius / 2F + rectangle.Height / 2F, 3237 rectangle.Y + (float)Math.Sin( ( startAngle + sweepAngle ) * Math.PI / 180 ) * rectangle.Height * doughnutRadius / 2F + rectangle.Height / 2F, 3240 rectangle.Inflate( -rectangle.Width * (1 - doughnutRadius) / 2F, -rectangle.Height * (1 - doughnutRadius) / 2F); 4959 angle = (float)Math.Atan( ( position.Y - _innerPlotPosition.Top - _innerPlotPosition.Height / 2) / ( position.X - _innerPlotPosition.Left - _innerPlotPosition.Width / 2 )); 5243 columnHeight = _chartAreaPosition.Height / numOfItems; 5328 float oldHeight = pieRectangle.Height; 5333 pieRectangle.Height = pieRectangle.Height - pieRectangle.Height * 0.3F; 5342 if( pieRectangle.Height < oldHeight * (float)this.MinimumRelativePieSize( area ) ) 5356 pieRectangle.Y = pieRectangle.Y + ( oldHeight - pieRectangle.Height ) / 2F; 5363 int maxNumOfRows = (int)( pieRectangle.Height / maxSizeVertical/*fontSize.Height*/ ); 5505labelPosition.Y + labelPosition.Height / 2f - valueTextSize.Height / 2f,
Common\ChartTypes\StackedBarChart.cs (5)
1079labelPosition.Y = rectangle.Y + rectangle.Height / 2f; 1624 if(rectSize.Height < 0) 1628 if(rectSize.Height == 0f || rectSize.Width == 0f) 1894rectLabel.Height = rectSize.Height + (float)width; 1955SizeF size = graph.MeasureStringRel(text, point.Font, new SizeF(rectLabel.Width, rectLabel.Height), format);
Common\ChartTypes\StackedColumnChart.cs (3)
1159labelPosition.Y = rectangle.Y + rectangle.Height / 2f; 1668 if(rectSize.Height == 0f || rectSize.Width == 0f) 1875labelPosition.Y = rectangle.Y + rectangle.Height / 2f;
Common\ChartTypes\StockChart.cs (3)
808 SizeF sizeOfHeight = new SizeF( rect.Height, rect.Height ); 1642 if(rect.Height > 1)
Common\General\Axis.cs (32)
1850_titlePosition.Y += ChartArea.PlotAreaPosition.Height / 2f - _titlePosition.Height / 2f; 1893_titlePosition.Y += ChartArea.PlotAreaPosition.Height / 2f - _titlePosition.Height / 2f; 1975if (transformedTitlePosition.Height < 0) 1977transformedTitlePosition.Height = Math.Abs(transformedTitlePosition.Height); 1978transformedTitlePosition.Y -= transformedTitlePosition.Height; 2009center.Y = titlePosition.Y + titlePosition.Height / 2F; 2043if (rect.Width != rect.Height) 2045if (rect.Width > rect.Height) 2047rect.X += (rect.Width - rect.Height) / 2f; 2048rect.Width = rect.Height; 2052rect.Y += (rect.Height - rect.Width) / 2f; 2144if (rect.Width != rect.Height) 2146if (rect.Width > rect.Height) 2148rect.X += (rect.Width - rect.Height) / 2f; 2149rect.Width = rect.Height; 2153rect.Y += (rect.Height - rect.Width) / 2f; 2182if (rect.Width >= 1f && rect.Height > 1) 3401maxTitlesize = (plotArea.Height / 100F) * (Axis.maxAxisTitleSize / axesNumber); 3542this.markSize = Math.Min(this.markSize, (plotArea.Height / 100F) * (Axis.maxAxisMarkSize / axesNumber)); 3638maxLabelSize = plotArea.Height * (_maximumAutoSize / 100f); 4966curLabelPosition.Inflate(0f, -curLabelPosition.Height * 0.15f); 5355if (Math.Round(axisLabelSize.Height) >= Math.Round(rect.Height) && 5433rect.Y -= rect.Height / 2F; 5442float val = rect.Height; 5556labelPosition.Y = labelPosition.Y + labelPosition.Height / 2f - height / 2f; 5570if (height >= rect.Height && checkHeight) 5581if (height >= rect.Height && checkHeight) 5594if (height >= rect.Height * 2F && checkHeight) 5605if (height >= rect.Height * 2F && checkHeight) 5670rect.Y -= rect.Height / 2F; 5678float val = rect.Height; 5700rect.Height = (float)Math.Ceiling(rect.Height);
Common\General\AxisScale.cs (2)
1831 paintAreaPositionBottom = paintAreaPosition.Y + paintAreaPosition.Height; 1838 paintChartAreaSize = paintAreaPosition.Height;
Common\General\AxisScaleSegments.cs (4)
365 if(breakPosition.Width > 0f && breakPosition.Height > 0f) 414 size = Math.Min(size, breakPosition.Height); 485 if(breakPosition.Width > 0f && breakPosition.Height > 0f) 712 breakPosition.Height = (float)Math.Abs(breakPosition.Y - breakPosition.Height);
Common\General\Chart.cs (9)
2199 areaPosition.Height = chartAreasRectangle.Height / areaRows - elementSpacing; 2201 areaPosition.Y = chartAreasRectangle.Y + row * (chartAreasRectangle.Height / areaRows) + elementSpacing; 2210 area.Position.SetPositionNoAuto(areaPosition.X, areaPosition.Y, areaPosition.Width, areaPosition.Height); 3130 if(areaPlotPosition.Height < 5) 3154 rect.Height = areaPlotPosition.Height; 3158 area.PlotAreaPosition.SetPositionNoAuto(rect.X, rect.Y, rect.Width, rect.Height); 3164 rect.Height = rect.Height / area.Position.Height * 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 (21)
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); 1736if (Math.Abs(offset) > plottingRect.Height * 0.3f) 1738offset = plottingRect.Height * 0.3f; 1748if ((axis.labelFarOffset - Position.Bottom) < plottingRect.Height * 0.3f) 1750rectLabelSideSpacing.Height = (float)Math.Max(axis.labelFarOffset - Position.Bottom, rectLabelSideSpacing.Height); 1754rectLabelSideSpacing.Height = (float)Math.Max(plottingRect.Height * 0.3f, rectLabelSideSpacing.Height); 1780if (rectLabelSideSpacing.Height > 0 && rectLabelSideSpacing.Height > Position.Bottom - plottingRect.Bottom) 1782plottingRect.Height += (Position.Bottom - plottingRect.Bottom) - rectLabelSideSpacing.Height; 1812 if(rect.Width > rect.Height) 1814 rect.X += (rect.Width - rect.Height) / 2f; 1815 rect.Width = rect.Height; 1819 rect.Y += (rect.Height - rect.Width) / 2f; 1825 this.circularCenter = new PointF(plottingRect.X + plottingRect.Width/2f, plottingRect.Y + plottingRect.Height/2f); 1838 if(plottingRect.Height < 0f) 1847 (float)Math.Round(plottingRect.Height / (Position.Height / 100F), 5)); 2157currentAxis.paintAreaPositionBottom = currentAxis.paintAreaPosition.Y + currentAxis.paintAreaPosition.Height; 2162currentAxis.paintChartAreaSize = currentAxis.paintAreaPosition.Height; 2631 if(plotAreaRectAbs.Height < 1.0f)
Common\General\ChartArea3D.cs (2)
1397 axis.interval3DCorrection = size / plottingRect.Height; 1406 axis.interval3DCorrection = size / plottingRect.Height * plottingChartAreaCorrection;
Common\General\ChartGraphics.cs (145)
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); 491 tempRect.Height = tempRect.Height / 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)); 723rect.Y = point.Y - imageScaleRect.Height / 2F; 725rect.Height = imageScaleRect.Height; 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); 1007points[0].Y = rect.Y + rect.Height / 2F; 1011points[2].Y = rect.Y + rect.Height / 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); 1544 backPositionAbs.Height); 1783if (position.Width == 0 || position.Height == 0) 1796if (absPosition.Height < 1f) 1847rotationPoint.Y = absPosition.Y + absPosition.Height / 2F; 1852rotationPoint.Y = absPosition.Y + absPosition.Height / 2F; 1880newRect.Width = absPosition.Height; 1902newRect.Y += absPosition.Height; 1929rotationPoint.Y = absPosition.Y + absPosition.Height / 2F; 1933newRect.X = rotationPoint.X - absPosition.Height / 2F; 1936newRect.Width = absPosition.Height; 2011labelRect.Y = absPosition.Y + absPosition.Height / 2F - labelSize.Height / 2F; 2018offsetY = (float)Math.Sin((90 - angle) / 180F * Math.PI) * labelRect.Height / 2F; 2019offsetX = (float)Math.Sin((Math.Abs(angle)) / 180F * Math.PI) * labelRect.Height / 2F; 2076sizeChange -= labelRect.Height * (float)Math.Tan(Math.Abs(angle) / 180F * Math.PI); 2080absPosition.Height = labelRect.Height; 2084sizeChange -= labelRect.Height * (float)Math.Tan(Math.Abs(angle) / 180F * Math.PI); 2088absPosition.Height = labelRect.Height; 2095absPosition.Height = labelRect.Height; 2106absPosition.Height = labelRect.Height; 2189if (size.Height < absPosition.Height) 2209if (size.Height > absPosition.Height) 2211float delta = size.Height - absPosition.Height; 2291absPosition.Y + (absPosition.Height - imageAbsSize.Height) / 2, 2297imageRect.Y = absPosition.Y + (absPosition.Height - imageAbsSize.Height) / 2; 2398 PointF centerNotRound = new PointF(absPosition.X + absPosition.Width/2F, absPosition.Y + absPosition.Height/2F); 2404 newRect.X = centerNotRound.X - absPosition.Height / 2F; 2407 newRect.Width = absPosition.Height; 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) 2878 gradientRect.Y += gradientRect.Height + 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) 2972 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 2979 if(gradientRect.Width > 0 && gradientRect.Height > 0) 3000 gradientRect.Y = gradientRect.Bottom - (float)Math.Floor(gradientRect.Height / 3f); 3001 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3029 float size = (isVertical) ? rect.Width / 2f : rect.Height / 2f; 3030 if(isVertical && 2f * size > rect.Height) 3032 size = rect.Height/2f; 3051 path.AddLine(gradientRect.X + size, gradientRect.Y + gradientRect.Height/2f, gradientRect.Right - size, gradientRect.Y + gradientRect.Height/2f); 3052 path.AddLine(gradientRect.Right - size, gradientRect.Y + gradientRect.Height/2f, gradientRect.Right, gradientRect.Bottom); 3074 path.AddLine(gradientRect.Right, gradientRect.Y, gradientRect.Right - size, gradientRect.Y + gradientRect.Height / 2f); 3075 path.AddLine(gradientRect.Right - size, gradientRect.Y + gradientRect.Height / 2f, gradientRect.Right, gradientRect.Bottom); 3102 rect.Y + rect.Height/2f, 3104 rect.Bottom - rect.Height/2f); 3126 rect.Y + rect.Height/2f, 3128 rect.Bottom - rect.Height/2f); 3144 path.AddLine(gradientRect.X, gradientRect.Y, gradientRect.X + size, gradientRect.Y + gradientRect.Height / 2f); 3145 path.AddLine(gradientRect.X + size, gradientRect.Y + gradientRect.Height / 2f, gradientRect.X, gradientRect.Bottom); 3431 if( rect.Height < 1.0F && rect.Height > 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); 3465 rect.Height - borderWidth * 2f + 1); 3483 if(fillRect.Height > 2f * this._height) 3537 imageRect.Height = fillRect.Height; 3548imageRect.Height = Math.Min(fillRect.Height, imageAbsSize.Height); 3566 if(imageRect.Height < fillRect.Height) 3572 imageRect.Y = fillRect.Bottom - imageRect.Height; 3578 imageRect.Y = fillRect.Y + (fillRect.Height - imageRect.Height)/2; 3595 new Rectangle((int)Math.Round(imageRect.X),(int)Math.Round(imageRect.Y), (int)Math.Round(imageRect.Width), (int)Math.Round(imageRect.Height)), 3598(backImageWrapMode == ChartImageWrapMode.Unscaled) ? imageRect.Height * image.Height / imageAbsSize.Height : image.Height, 3669 this.DrawRectangle( _pen, rect.X, rect.Y, rect.Width, rect.Height ); 3723 if(rect.Height == 0 || rect.Width == 0 || shadowOffset == 0) 3762offset.Height = absolute.Height; 3784 offset.Height = absolute.Height + 2; 3790 radius = (float)Math.Min(radius, offset.Height/4f); 3799 if(circular && offset.Width != offset.Height) 3802 float radiusY = offset.Height/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); 3862 PointF centerPoint = new PointF(position.X + position.Width/2f, position.Y + position.Height/2f); 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 ); 4218 imageRect.Height = fillRect.Height; 4247 if(imageRect.Height < fillRect.Height) 4253 imageRect.Y = fillRect.Bottom - imageRect.Height; 4259 imageRect.Y = fillRect.Y + (fillRect.Height - imageRect.Height)/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 ); 4514 imageRect.Height = fillRect.Height; 4543 if(imageRect.Height < fillRect.Height) 4549 imageRect.Y = fillRect.Bottom - imageRect.Height; 4555 imageRect.Y = fillRect.Y + (fillRect.Height - imageRect.Height)/2; 4568 new Rectangle((int)Math.Round(imageRect.X),(int)Math.Round(imageRect.Y), (int)Math.Round(imageRect.Width), (int)Math.Round(imageRect.Height)), 4657 relative.Height = rectangle.Height * 100F / ((float)(_height - 1)); 4748 absolute.Height = rectangle.Height * (_height - 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); 5156 gradientPath.Y + position.Height * doughnutRadius /200 - 1 - shadowSize, 5158 gradientPath.Height - position.Height * 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 ); 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 (36)
725double angleCorrection = pieTopRectangle.Height / pieTopRectangle.Width; 736if (pieBottomRectangle.Height <= 0) 744path.AddArc(pieBottomRectangle.X, pieBottomRectangle.Y, pieBottomRectangle.Width, pieBottomRectangle.Height, startAngle, sweepAngle); 750if (pieTopRectangle.Height <= 0) 757path.AddArc(pieTopRectangle.X, pieTopRectangle.Y, pieTopRectangle.Width, pieTopRectangle.Height, startAngle + sweepAngle, -sweepAngle); 850double angleCorrection = pieRectangle.Height / pieRectangle.Width; 862if (pieRectangle.Height > 0) 865path.AddArc(pieRectangle.X, pieRectangle.Y, pieRectangle.Width, pieRectangle.Height, startAngle, sweepAngle); 976pieDoughnutRectangle.Y = pieRectangle.Y + pieRectangle.Height * (1F - doughnutRadius) / 2F; 977pieDoughnutRectangle.Height = pieRectangle.Height * doughnutRadius; 982double angleCorrection = pieRectangle.Height / pieRectangle.Width; 994if (pieRectangle.Height > 0) 997path.AddArc(pieRectangle.X, pieRectangle.Y, pieRectangle.Width, pieRectangle.Height, startAngle, sweepAngle); 1004if (pieDoughnutRectangle.Height > 0) 1006path.AddArc(pieDoughnutRectangle.X, pieDoughnutRectangle.Y, pieDoughnutRectangle.Width, pieDoughnutRectangle.Height, startAngle + sweepAngle, -sweepAngle); 2943 if(position.Height == 0.0 && currentSurface != SurfaceNames.Top && currentSurface != SurfaceNames.Bottom) 3090 float size = (isVertical) ? positionAbs.Width / 2f : positionAbs.Height / 2f; 3091 if(isVertical && 2f * size > positionAbs.Height) 3093 size = positionAbs.Height/2f; 3114 gradientPoints[4] = new Point3D( position.X + sizeRel.Width, position.Top + position.Height / 2f, positionZ + depth ); 3115 gradientPoints[5] = new Point3D( position.Right - sizeRel.Width, position.Top + position.Height / 2f, positionZ + depth ); 3234 if(positionAbs.Width < 6f || positionAbs.Height < 6f) 3238 else if(positionAbs.Width < 15f || positionAbs.Height < 15f) 3249 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 3f); 3284 if(bounds.Width > 0f && bounds.Height > 0f) 3305 gradientRect.Y = gradientRect.Bottom - (float)Math.Floor(gradientRect.Height / 3f); 3306 gradientRect.Height = (float)Math.Floor(gradientRect.Height / 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); 3997 float middleYValue = position.Y + position.Height / 2f; 4163 if(boundsRect.Height > 0 && boundsRect.Width > 0) 4176 boundsRectMiddlePoint.Y = boundsRect.Y + boundsRect.Height/2f;
Common\General\Label.cs (13)
1664rect.Y += rect.Height; 1678rect.Y += rect.Height; 1766rect.Y -= rect.Height / 2F; 1883 rectLabels.Height = (float)Math.Max(rectLabels.Height, rectLabels.Y - labelsAxis.PlotAreaPosition.Y); 1890 rectLabels.Y -= rectLabels.Height; 1907 rectLabels.Height = (float)Math.Max(rectLabels.Height, labelsAxis.PlotAreaPosition.Bottom - rectLabels.Y); 2173rect.Y += rect.Height; 2190rect.Y += rect.Height; 2279if (rect.Height < pixelSize.Height) 2288rect.Y -= rect.Height / 2F; 2303rectPoints[1] = new Point3D(rect.Right, rect.Y + rect.Height / 2f, labelsZPosition); 2313rectPoints[1] = new Point3D(rect.X, rect.Y + rect.Height / 2f, labelsZPosition); 2470firstLabelsRowHeight = (height > 0f) ? height : rect.Height;
Common\General\Legend.cs (12)
1090 SizeF maxSize = new SizeF(chartAreasRectangle.Width - 2*elementSpacing, chartAreasRectangle.Height - 2*elementSpacing); 1137 chartAreasRectangle.Height -= legendPosition.Height + elementSpacing; 1157 chartAreasRectangle.Height -= legendPosition.Height + elementSpacing; 1172 legendPosition.Y = chartAreasRectangle.Y + (chartAreasRectangle.Height - legendSize.Height) / 2F; 1192 legendPosition.Y = chartAreasRectangle.Y + (chartAreasRectangle.Height - legendSize.Height) / 2F; 1199 this.Position.SetPositionNoAuto(legendPosition.X, legendPosition.Y, legendPosition.Width, legendPosition.Height); 4599 new RectangleF(rect.Right - 1f, rect.Top, 0f, rect.Height), 4638 new RectangleF(rect.Right - 2f, rect.Top, 1f, rect.Height), 4926 float areaSpacing = Math.Min((chartAreasRectangle.Height/100F) * elementSpacing, (chartAreasRectangle.Width/100F) * elementSpacing); 4955 legendPosition.Y -= legendPosition.Height; 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)
246 _translateY = innerPlotRectangle.Y+innerPlotRectangle.Height/2; 249 float height = innerPlotRectangle.Height;
Common\General\Selection.cs (14)
2773list.Add(new PointF(rect.Right, rect.Top + rect.Height / 2)); 2775list.Add(new PointF(rect.Left, rect.Bottom - rect.Height / 2)); 2794rect.Offset(0, rect.Height / 2); 3199if (rect.Width > 0 && rect.Height > 0) 3211else if (rect.Height > 0) 3230if (rect.Height > 30) 3232list.Add(new PointF(rect.Right, rect.Top + rect.Height / 2)); 3242if (rect.Height > 30) 3244list.Add(new PointF(rect.Left, rect.Top + rect.Height / 2)); 3259else if (rect.Height > 0) 3262if (rect.Height > 30) 3264list.Add(new PointF(rect.Left, rect.Top + rect.Height / 2)); 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); 1078 labelPosition.Y + labelPosition.Height/2f); 1116 labelPosition.Y + labelPosition.Height/2f); 1175 labelPosition.Y + labelPosition.Height / 2f);
Common\General\StripLine.cs (2)
378 rect.Height = plotAreaPosition.Height; 386 if(rect.Width > 0 && rect.Height > 0)
Common\General\Title.cs (24)
1366 if(titlePosition.Width == 0 || titlePosition.Height == 0) 1371(titlePosition.Height == 0) ? Common.ChartPicture.Height : titlePosition.Height); 1423 if(titlePosition.Height == 0) 1430 titlePosition.Y = titlePosition.Y - titlePosition.Height; 1436 titlePosition.Y = titlePosition.Y - titlePosition.Height/2f; 1494 exactTitleRect.Y = titlePosition.Bottom - exactTitleRect.Height; 1501 titlePosition.Height / 2f - 1502 exactTitleRect.Height / 2f; 1650center.Y = absPosition.Y + absPosition.Height / 2F; 1850 frameTitlePosition.Height); 1857 SizeF layoutArea = new SizeF(chartAreasRectangle.Width, chartAreasRectangle.Height); 1914 chartAreasRectangle.Height -= titlePosition.Height + elementSpacing; 1928 chartAreasRectangle.Height -= titlePosition.Height + elementSpacing; 1935 if(titlePosition.Height < 0) 1949 if(titlePosition.Height < 0) 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); 2102 titlePosition.Y -= titlePosition.Height; 2103prevChartAreasRectangle.Y -= titlePosition.Height + areaSpacing; 2104prevChartAreasRectangle.Height += titlePosition.Height + areaSpacing; 2113prevChartAreasRectangle.Height += titlePosition.Height +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)
219 this._height = rect.Height;
WinForm\Utilities\AccessibleObject.cs (1)
307absolute.Height = bounds.Height * (this._chart.Height - 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)));