zoukankan      html  css  js  c++  java
  • AX 2012 Excel sheet copy 和BorderLine

     //**********************************************

    //sheet copy

    abstract class SysExcelWorksheet extends SysExcel
    {
        MSOfficeVersion   version;
    }

    public SysExcelWorksheet copy()
    {
        COM newSheet = worksheet.copy(COMArgument::NoValue, this.comObject()); //add

        return SysExcelWorksheet::construct(version, newSheet);
    }

    //**********************************************

    //BorderLine

    abstract class SysExcelRange extends SysExcel
    {
        MSOfficeVersion   version;
    }

    public void BorderLine()//Add
    {
        Com        borders;
        ComVariant  LineStyle,Weight,ColorIndex;
        int        xlEdgeBottom = 9;
        int        xlContinuous = 1;
        int        xlThin =       1;
        int        xlAutomatic  = -4105;

       borders    = range.Borders() ;
       LineStyle  = borders.LineStyle(xlContinuous);
       Weight     = borders.Weight(xlThin);
       ColorIndex = borders.ColorIndex(xlAutomatic);
    }

  • 相关阅读:
    Comet OJ
    AtCoder Grand Contest 002题解
    AtCoder Grand Contest 001 题解
    线性基求交
    2019牛客暑期多校训练营(第四场)题解
    AtCoder Grand Contest 036题解
    计算几何 val.2
    计算几何 val.1
    模拟退火学习笔记
    动态点分治学习笔记
  • 原文地址:https://www.cnblogs.com/fogfog/p/6472070.html
Copyright © 2011-2022 走看看