System.Drawing.PieChart.PieChart3D.Draw C# (CSharp) Method

Draw() public method

Draws the chart.
public Draw ( Graphics graphics ) : void
graphics System.Drawing.Graphics /// Graphics object used for drawing. ///
return void
        public void Draw(Graphics graphics)
        {
            Debug.Assert(m_values != null && m_values.Length > 0);
            InitializePieSlices();
            if (m_fitToBoundingRectangle) {
                RectangleF newBoundingRectangle = GetFittingRectangle();
                ReadjustSlices(newBoundingRectangle);
            }
            DrawBottoms(graphics);
            if (m_sliceRelativeHeight > 0F) {
                DrawSliceSides(graphics);
            }
            DrawTops(graphics);
        }