gpt4 book ai didi

org.apache.poi.xslf.usermodel.XSLFSlideMaster.getSlideLayouts()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 09:23:05 24 4
gpt4 key购买 nike

本文整理了Java中org.apache.poi.xslf.usermodel.XSLFSlideMaster.getSlideLayouts()方法的一些代码示例,展示了XSLFSlideMaster.getSlideLayouts()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSLFSlideMaster.getSlideLayouts()方法的具体详情如下:
包路径:org.apache.poi.xslf.usermodel.XSLFSlideMaster
类名称:XSLFSlideMaster
方法名:getSlideLayouts

XSLFSlideMaster.getSlideLayouts介绍

暂无

代码示例

代码示例来源:origin: org.apache.poi/poi-ooxml

/**
 * Create a blank slide using the default (first) master.
 */
@Override
public XSLFSlide createSlide() {
  XSLFSlideMaster sm = _masters.get(0);
  XSLFSlideLayout layout = sm.getLayout(SlideLayout.BLANK);
  if (layout == null) {
    LOG.log(POILogger.WARN, "Blank layout was not found - defaulting to first slide layout in master");
    XSLFSlideLayout sl[] = sm.getSlideLayouts();
    if (sl.length == 0) {
      throw new POIXMLException("SlideMaster must contain a SlideLayout.");
    }
    layout = sl[0];
  }
  return createSlide(layout);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.poi

/**
 * Create a blank slide using the default (first) master.
 */
@Override
public XSLFSlide createSlide() {
  XSLFSlideMaster sm = _masters.get(0);
  XSLFSlideLayout layout = sm.getLayout(SlideLayout.BLANK);
  if (layout == null) {
    LOG.log(POILogger.WARN, "Blank layout was not found - defaulting to first slide layout in master");
    XSLFSlideLayout sl[] = sm.getSlideLayouts();
    if (sl.length == 0) {
      throw new POIXMLException("SlideMaster must contain a SlideLayout.");
    }
    layout = sl[0];
  }
  return createSlide(layout);
}

代码示例来源:origin: ekoz/kbase-doc

for (int i=0;i<pptx.getSlideMasters().size();i++) {
  XSLFSlideMaster slideMaster = pptx.getSlideMasters().get(i);
  XSLFSlideLayout[] slideLayouts = slideMaster.getSlideLayouts();
  for (XSLFSlideLayout slidelayout : slideLayouts) {
    XSLFPictureShape pictureShape = slidelayout.createPicture(pictureData);

代码示例来源:origin: org.apache.poi/poi-examples

for (XSLFSlideLayout layout : master.getSlideLayouts()) {
  System.out.println(layout.getType());

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com