LayoutSlide / MasterSlide

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 ILayoutSlide

ColladaSaveOptions

TypeDescription
LayoutSlideSee LayoutSlide reference for full documentation.
MasterSlideSee MasterSlide reference for full documentation.
LayoutSlideCollectionSee LayoutSlideCollection reference for full documentation.
MasterSlideCollectionSee MasterSlideCollection reference for full documentation.
GlobalLayoutSlideCollectionSee GlobalLayoutSlideCollection reference for full documentation.
SlideLayoutTypeSee SlideLayoutType reference for full documentation.

MasterSlide

public class MasterSlide extends BaseSlide implements IMasterSlide

ColladaSaveOptions


LayoutSlideCollection

public class LayoutSlideCollection implements ILayoutSlideCollection

ColladaSaveOptions


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);

ראה גם

 עברית