العمل مع حجم وتخطيط العرض التقديمي
Contents
[
Hide
]
SlideSize.Type و SlideSize.Size هما خاصيتان من فئة العرض التقديمي اللتين يمكن تعيينهما أو الحصول عليهما كما هو موضح أدناه في المثال.
مثال
string FilePath = @"..\..\..\Sample Files\";
string FileName = FilePath + "Working With Size and Layout.pptx";
//Instantiate a Presentation object that represents a presentation file
Presentation presentation = new Presentation(FileName);
Presentation auxPresentation = new Presentation();
ISlide slide = presentation.Slides[0];
//Set the slide size of generated presentations to that of source
auxPresentation.SlideSize.Type = presentation.SlideSize.Type;
auxPresentation.SlideSize.Size = presentation.SlideSize.Size;
auxPresentation.Slides.InsertClone(0, slide);
auxPresentation.Slides.RemoveAt(0);
//Save Presentation to disk
auxPresentation.Save(FileName, Aspose.Slides.Export.SaveFormat.Pptx);
تحميل مثال الكود
تحميل مثال التشغيل
للمزيد من التفاصيل، زر تغيير حجم شريحة العرض التقديمي في .NET.