مخطط الدونات
Contents
[
Hide
]
تحديد فجوة المركز في مخطط الدونات
لتحديد حجم الفتحة في مخطط الدونات، يرجى اتباع الخطوات أدناه:
- قم بإنشاء مثيل لفئة Presentation.
- أضف مخطط الدونات على الشريحة.
- حدد حجم الفتحة في مخطط الدونات.
- اكتب العرض التقديمي على القرص.
في المثال الوارد أدناه، قمنا بتحديد حجم الفتحة في مخطط الدونات.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
For complete examples and data files, please go to https://github.com/aspose-slides/Aspose.Slides-for-C | |
// The path to the documents directory. | |
const String outPath = u"../out/DoughnutChartHole_out.pptx"; | |
//Instantiate Presentation class that represents PPTX file | |
SharedPtr<Presentation> pres = MakeObject<Presentation>(); | |
//Access first slide | |
SharedPtr<ISlide> slide = pres->get_Slides()->idx_get(0); | |
// Add chart with default data | |
SharedPtr<IChart> chart = slide->get_Shapes()->AddChart(Aspose::Slides::Charts::ChartType::Doughnut, 0, 0, 500, 500); | |
chart->get_ChartData()->get_SeriesGroups()->idx_get(0)->set_DoughnutHoleSize(90); | |
// Write the presentation file to disk | |
pres->Save(outPath, Aspose::Slides::Export::SaveFormat::Pptx); | |