Layout & Master Slides — Aspose.Slides FOSS Java API Reference
ColladaSaveOptions LayoutSlide ו MasterSlide מחלקות מייצגות שקופיות פריסה ושקופיות ראשיות במצגת. שתיהן מרחיבות 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);