gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-23 15:53:05 26 4
gpt4 key购买 nike

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

XSLFTextParagraph.getTextRuns介绍

暂无

代码示例

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

CTTextParagraph ctp = para.getXmlObject();
otherPPr = ctp.getPPr();
List<XSLFTextRun> runs = para.getTextRuns();
if (!runs.isEmpty()) {
  XSLFTextRun r0 = runs.get(runs.size() - 1);

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

thisC.dispose();
for (XSLFTextRun tr : other.getTextRuns()) {
  XmlObject xo = tr.getXmlObject();
  XSLFTextRun run = (xo instanceof CTTextLineBreak)

代码示例来源:origin: apache/tika

continue;
for (XSLFTextRun run : p.getTextRuns()) {

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

XSLFTextShape[] phs = slide[i].getPlaceholders();
for (XSLFTextShape ts : phs) {
 java.util.List<XSLFTextParagraph> tpl = ts.getTextParagraphs();
 for(XSLFTextParagraph tp: tpl) {
  java.util.List<XSLFTextRun> trs = tp.getTextRuns();
  for(XSLFTextRun tr: trs) {
   logger.info(tr.getFontFamily());
   tr.setFontFamily("SimSun");
  }
 }
}

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

CTTextParagraph ctp = para.getXmlObject();
otherPPr = ctp.getPPr();
List<XSLFTextRun> runs = para.getTextRuns();
if (!runs.isEmpty()) {
  XSLFTextRun r0 = runs.get(runs.size() - 1);

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

String buCharacter = getBulletCharacter();
String buFont = getBulletFont();
if(buFont == null) buFont = getTextRuns().get(0).getFontFamily();
if(buCharacter != null && buFont != null && _lines.size() > 0) {
  AttributedString str = new AttributedString(buCharacter);

代码示例来源:origin: com.github.lafa.tikaNoExternal/tika-parsers

xhtml.startElement("p");
for (XSLFTextRun run : p.getTextRuns()) {

代码示例来源:origin: org.apache.tika/tika-parsers

continue;
for (XSLFTextRun run : p.getTextRuns()) {

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

List<XSLFTextRun> srcR = p.getTextRuns();
List<XSLFTextRun> tgtR = getTextRuns();
for(int i = 0; i < srcR.size(); i++){
  XSLFTextRun r1 = srcR.get(i);

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

Color fontColor = null;
String fontFamily = null;
double fontSize = 0.0;
boolean italic = false;
boolean bold = false;
boolean underline = false;
for (XSLFTextParagraph paragraph : autoShape.getTextParagraphs()) {
  for (XSLFTextRun text : paragraph.getTextRuns()) {
    fontColor = text.getFontColor();
    fontFamily = text.getFontFamily();
    fontSize = text.getFontSize();
    italic = text.isItalic();
    bold = text.isBold();
    underline = text.isUnderline();
  }
}
autoShape.clearText();
XSLFTextParagraph addNewTextParagraph = autoShape.addNewTextParagraph();

XSLFTextRun addNewTextRun = addNewTextParagraph.addNewTextRun();
addNewTextRun.setText(values.get(0)[1]);
addNewTextRun.setFontColor(fontColor);
addNewTextRun.setFontFamily(fontFamily);
addNewTextRun.setFontSize(fontSize);
addNewTextRun.setItalic(italic);
addNewTextRun.setBold(bold);
addNewTextRun.setUnderline(underline);

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

thisC.dispose();
for (XSLFTextRun tr : other.getTextRuns()) {
  XmlObject xo = tr.getXmlObject();
  XSLFTextRun run = (xo instanceof CTTextLineBreak)

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