比如以下2句代码:rt.cells(2,3).Style.Borders.Top = new prt.Linedef(0.1, Color.blue)
rt.cells(4,4).Style.Borders.Top= new prt.Linedef(0.1, Color.blue)
红色部分的线条代码是一样的,可否预先定义一个线条变量,在后续代码中只要引用这个线条变量就行了
能实现吗?
Dim line as new prt.Linedef(0.1, Color.blue)rt.cells(2,3).Style.Borders.Top = line
rt.cells(4,4).Style.Borders.Top = line
[此贴子已经被作者于2024/4/29 8:57:21编辑过]