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

            

原文地址:https://www.cnblogs.com/dongzhiquan/p/1994806.html