Layout & Master Slides — Aspose.Slides FOSS Java API Reference
ColladaSaveOptions LayoutSlide و MasterSlide کلاسها نمایانگر اسلایدهای طرحبندی و اصلی در یک ارائه هستند. هر دو extend BaseSlide.
ColladaSaveOptions: org.aspose.slides.foss
import org.aspose.slides.foss.*;LayoutSlide
public class LayoutSlide extends BaseSlide implements ILayoutSlideColladaSaveOptions
| Type | Description |
|---|---|
LayoutSlide | See LayoutSlide reference for full documentation. |
MasterSlide | See MasterSlide reference for full documentation. |
LayoutSlideCollection | See LayoutSlideCollection reference for full documentation. |
MasterSlideCollection | See MasterSlideCollection reference for full documentation. |
GlobalLayoutSlideCollection | See GlobalLayoutSlideCollection reference for full documentation. |
SlideLayoutType | See SlideLayoutType reference for full documentation. |
MasterSlide
public class MasterSlide extends BaseSlide implements IMasterSlideColladaSaveOptions
LayoutSlideCollection
public class LayoutSlideCollection implements ILayoutSlideCollectionColladaSaveOptions
MasterSlideCollection
public class MasterSlideCollection implements IMasterSlideCollection, Iterable<IMasterSlide>ColladaSaveOptions
مثالهای استفاده
بازرسی مسترها و طرحبندیها
import org.aspose.slides.foss.*;
Presentation prs = new Presentation("deck.pptx");
for (int i = 0; i < prs.getMasters().size(); i++) {
IMasterSlide master = prs.getMasters().get(i);
System.out.println("Master " + i + ": " + master.getName()
+ " (" + master.getLayoutSlides().size() + " layouts)");
}دریافت یک طرحبندی بر اساس نوع
IMasterSlide master = prs.getMasters().get(0);
ILayoutSlide titleLayout = master.getLayoutSlides().getByType(SlideLayoutType.TITLE);اعمال یک طرحبندی بر روی اسلاید
ISlide slide = prs.getSlides().get(0);
slide.setLayoutSlide(titleLayout);
prs.save("relayouted.pptx", SaveFormat.PPTX);