gpt4 book ai didi

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

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

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

XSLFTableCell.getXmlObject介绍

暂无

代码示例

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

private CTTableCell getCell() {
  return (CTTableCell) getXmlObject();
}

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

@Override
public void setTopInset(double margin){
  CTTableCellProperties pr = getXmlObject().getTcPr();
  if(pr == null) pr = getXmlObject().addNewTcPr();
  pr.setMarT(Units.toEMU(margin));
}

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

@Override
public void setLeftInset(double margin){
  CTTableCellProperties pr = getXmlObject().getTcPr();
  if(pr == null) pr = getXmlObject().addNewTcPr();
  pr.setMarL(Units.toEMU(margin));
}

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

@Override
public void setRightInset(double margin){
  CTTableCellProperties pr = getXmlObject().getTcPr();
  if(pr == null) pr = getXmlObject().addNewTcPr();
  pr.setMarR(Units.toEMU(margin));
}

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

@Override
public void setBottomInset(double margin){
  CTTableCellProperties pr = getXmlObject().getTcPr();
  if(pr == null) pr = getXmlObject().addNewTcPr();
  pr.setMarB(Units.toEMU(margin));
}

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

@Override
protected CTTextBody getTextBody(boolean create){
  CTTableCell cell = getXmlObject();
  CTTextBody txBody = cell.getTxBody();
  if (txBody == null && create) {
    txBody = cell.addNewTxBody();
    txBody.addNewBodyPr();
    txBody.addNewLstStyle();
  }
  return txBody;
}

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

public void setBorderRightColor(Color color){
  CTTableCellProperties pr = getXmlObject().getTcPr();
  CTLineProperties ln = pr.isSetLnR() ? pr.getLnR() : pr.addNewLnR();
  setLineColor(ln, color);
}

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

public void setBorderTopColor(Color color){
  CTTableCellProperties pr = getXmlObject().getTcPr();
  CTLineProperties ln = pr.isSetLnT() ? pr.getLnT() : pr.addNewLnT();
  setLineColor(ln, color);
}

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

public double getBorderLeft(){
  CTTableCellProperties pr = getXmlObject().getTcPr();
  CTLineProperties ln = pr.getLnL();
  return ln == null || !ln.isSetW() ? defaultBorderWidth : Units.toPoints(ln.getW());
}

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

public void setBorderLeftColor(Color color){
  CTTableCellProperties pr = getXmlObject().getTcPr();
  CTLineProperties ln = pr.isSetLnL() ? pr.getLnL() : pr.addNewLnL();
  setLineColor(ln, color);
}

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

public double getBorderTop(){
  CTTableCellProperties pr = getXmlObject().getTcPr();
  CTLineProperties ln = pr.getLnT();
  return ln == null || !ln.isSetW() ? defaultBorderWidth : Units.toPoints(ln.getW());
}

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

public double getBorderBottom(){
  CTTableCellProperties pr = getXmlObject().getTcPr();
  CTLineProperties ln = pr.getLnB();
  return ln == null || !ln.isSetW() ? defaultBorderWidth : Units.toPoints(ln.getW());
}

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

public void setBorderBottomColor(Color color){
  CTTableCellProperties pr = getXmlObject().getTcPr();
  CTLineProperties ln = pr.isSetLnB() ? pr.getLnB() : pr.addNewLnB();
  setLineColor(ln, color);
}

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

@Override
public VerticalAlignment getVerticalAlignment(){
  CTTableCellProperties cellProps = getXmlObject().getTcPr();
  VerticalAlignment align = VerticalAlignment.TOP;
  if(cellProps != null && cellProps.isSetAnchor()) {
    int ival = cellProps.getAnchor().intValue();
    align = VerticalAlignment.values()[ival - 1];
  }
  return align;
 }

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

public double getBorderRight(){
  CTTableCellProperties pr = getXmlObject().getTcPr();
  CTLineProperties ln = pr.getLnR();
  return ln == null || !ln.isSetW() ? defaultBorderWidth : Units.toPoints(ln.getW());
}

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

public void setBorderBottom(double width){
  CTTableCellProperties pr = getXmlObject().getTcPr();
  CTLineProperties ln = pr.isSetLnB() ? pr.getLnB() : pr.addNewLnB();
  ln.setW(Units.toEMU(width));
}

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

public void setBorderRight(double width){
  CTTableCellProperties pr = getXmlObject().getTcPr();
  CTLineProperties ln = pr.isSetLnR() ? pr.getLnR() : pr.addNewLnR();
  ln.setW(Units.toEMU(width));
}

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

public void setBorderLeft(double width){
  CTTableCellProperties pr = getXmlObject().getTcPr();
  CTLineProperties ln = pr.isSetLnL() ? pr.getLnL() : pr.addNewLnL();
  ln.setW(Units.toEMU(width));
}

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

public void setBorderTop(double width){
  CTTableCellProperties pr = getXmlObject().getTcPr();
  CTLineProperties ln = pr.isSetLnT() ? pr.getLnT() : pr.addNewLnT();
  ln.setW(Units.toEMU(width));
}

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

@Override
public void setVerticalAlignment(VerticalAlignment anchor){
  CTTableCellProperties cellProps = getXmlObject().getTcPr();
  if(cellProps != null) {
    if(anchor == null) {
      if(cellProps.isSetAnchor()) {
        cellProps.unsetAnchor();
      }
    } else {
      cellProps.setAnchor(STTextAnchoringType.Enum.forInt(anchor.ordinal() + 1));
    }
  }
}

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