天软金融分析.NET函数大全 > 文档处理函数 > Excel处理函数 > Excel操作相关的类 > TxlsSheet类 > TxlsSheet方法

BorderDiagStyle    

简述
单元格的对角线边框样式
定义
BorderDiagStyle(Col:Integer;Row:Integer): Integer;
参数
名称类型说明
ColInteger整数,列的位置,从0开始
RowInteger整数,行的位置,从0开始
返回 Integer 数值,其对应的边框样式如下:
含义
0 None,无边框
1 Thin
2 Medium
3 Dashed
4 Dotted
5 Thick
6 Double
7 Hair
8 MediumDashed
9 DashDot
10 MediumDashDot
11 DashDotDot
12 MediumDashDotDot
13 SlantedDashDot
  • 范例


    filename:="D:\\test.xlsx";
      
    //ImportFile(ftXLS(),"",filename,t);
     
    obj:=CreateObject("txlsreadwrite");
      
    obj.LoadFromFile("",filename);
      
    mysheet:=obj.sheets(1); //mysheet返回即为Txlssheet类
     
    return mysheet.BorderDiagStyle(1,1);
    //返回对应单元格对角线边框的样式,6
相关