写了一个窗口表数据居中函数
Dim e As object = args(0)
Dim tbbame = args(1)
Dim t As Table
t=e.Form.Controls(tbbame).Table
If t. rows.count > 0 Then
For Each c As Col In t.cols
c.TextAlign = TextAlignEnum.Center
Next
End If
Return Nothing
然后afterload调用函数,没有居中效果:
Functions.Execute("窗口表数据居中",e,"Table1")
但是这样可以:
dim t as table = e.Form.Controls("Table1").Table
For Each c As Col In t.cols
c.TextAlign = TextAlignEnum.Center
Next
什么原因?请指教。
[此贴子已经被作者于2016/11/18 17:39:30编辑过]