borders.GetItem()方法 获取斜线Border (VC在Excel中画斜线格)

Excel 2003

LPDISPATCH Borders::GetItem(long Index)方法即为VB中的Borders()属性

 

参数貌似与VB中Borders参数值也相同(没有做一一验证),只VC中不是常量了,需要自己定义

       long Index:

               Const xlDiagonalDown = 5

               Const xlDiagonalUp = 6

               Const xlEdgeBottom = 9

               Const xlEdgeLeft = 7

               Const xlEdgeRight = 10

               Const xlEdgeTop = 8

               Const xlInsideHorizontal = 12

               Const xlInsideVertical = 11

            

posted @ 2009-07-13 09:13  dzqabc  阅读(558)  评论(0编辑  收藏  举报