Aspose.Slides.Examples.CSharp.Charts.DoughnutChartHole.Run C# (CSharp) Méthode

Run() public static méthode

public static Run ( ) : void
Résultat void
        public static void Run()
        {
            // The path to the documents directory.
            string dataDir = RunExamples.GetDataDir_Charts();

            // Create an instance of Presentation class
            Presentation presentation = new Presentation();

            IChart chart = presentation.Slides[0].Shapes.AddChart(ChartType.Doughnut, 50, 50, 400, 400);
            chart.ChartData.SeriesGroups[0].DoughnutHoleSize = 90;

            // Write presentation to disk
            presentation.Save(dataDir + "DoughnutHoleSize_out.pptx", SaveFormat.Pptx);

        }
    }
DoughnutChartHole