'设置单个字段的字段标题居中 网格部件1.GetGridColumn("字段名").AppearanceHeader.TextOptions.HAlignment = 2 '遍历网格字段全部居中 for each cl in 网格部件1.GridView.Columns
cl.AppearanceHeader.TextOptions.HAlignment = 2
next
'‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘’‘
'设置单个字段的字段内容居中 网格部件1.GetGridColumn("字段名").AppearanceCell.TextOptions.HAlignment = 2 '遍历网格字段全部内容居中 for each cl in 网格部件1.GridView.Columns
cl.AppearanceCell.TextOptions.HAlignment = 2
next
提示: HAlignment=1 居左 HAlignment=2 居中 HAlignment=3 居右
VAlignment=1 居上 VAlignment=2 居中 VAlignment=3 居下
|