gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-23 14:57:05 27 4
gpt4 key购买 nike

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

XSLFTextParagraph.getText介绍

[英]Returns the alignment that is applied to the paragraph. If this attribute is omitted, then a value of left is implied.
[中]返回应用于段落的对齐方式。如果省略此属性,则表示值为left。

代码示例

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

@Override
public String toString(){
  return "[" + getClass() + "]" + getText();
}

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

@Override
public String getText() {
  StringBuilder out = new StringBuilder();
  for (XSLFTextParagraph p : _paragraphs) {
    if (out.length() > 0) {
      out.append('\n');
    }
    out.append(p.getText());
  }
  return out.toString();
}

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

@Override
public String toString(){
  return "[" + getClass() + "]" + getText();
}

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

@Override
public String toString(){
  return "[" + getClass() + "]" + getText();
}

代码示例来源:origin: org.openl.rules/org.openl.lib.poi.dev

/**
 *
 * @return  text contained within this shape or empty string
 */
public String getText() {
  StringBuilder out = new StringBuilder();
  for (XSLFTextParagraph p : _paragraphs) {
    if (out.length() > 0) out.append('\n');
    out.append(p.getText());
  }
  return out.toString();
}

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

@Override
public String getText() {
  StringBuilder out = new StringBuilder();
  for (XSLFTextParagraph p : _paragraphs) {
    if (out.length() > 0) {
      out.append('\n');
    }
    out.append(p.getText());
  }
  return out.toString();
}

代码示例来源:origin: stackoverflow.com

try {

  FileInputStream fis = new FileInputStream("C:\\sample\\sample.pptx");
  XMLSlideShow pptxshow = new XMLSlideShow(fis);

  XSLFSlide[] slide2 = pptxshow.getSlides();
  for (int i = 0; i < slide2.length; i++) {
    System.out.println(i);
    try {
      XSLFNotes mynotes = slide2[i].getNotes();
      for (XSLFShape shape : mynotes) {
        if (shape instanceof XSLFTextShape) {
          XSLFTextShape txShape = (XSLFTextShape) shape;
          for (XSLFTextParagraph xslfParagraph : txShape.getTextParagraphs()) {
            System.out.println(xslfParagraph.getText());
          }
        }
      }
    } catch (Exception e) {

    }

  }
} catch (IOException e) {

}

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