OrangeUI

ListView的行列分隔线设置需要如下属性:
SelfOwnMaterial.IsDrawRowLine:是否绘制行分隔线
SelfOwnMaterial.IsDrawRowBeginLine:是否绘制首行开始分隔线
SelfOwnMaterial.IsDrawRowEndLine:是否绘制尾行结束分隔线
SelfOwnMaterial.DrawRowLineParam:行分隔线绘制参数
 
SelfOwnMaterial.IsDrawColLine:是否绘制列分隔线
SelfOwnMaterial.IsDrawColBeginLine:是否绘制首列开始分隔线
SelfOwnMaterial.IsDrawColEndLine:是否绘制尾列结束分隔线
SelfOwnMaterial.DrawColLineParam: 列分隔线绘制参数
 
ListViewViewType设置为lvtIcon时,
表示使用图标模式,如下图所示:

在此模式下可以设置行列分隔线,
我们先设置行分隔线,方法如下:
ListView.SelfOwnMaterial.IsDrawRowLine设置为True,
ListView.SelfOwnMaterial.IsDrawRowBeginLine设置为True,
ListView.SelfOwnMaterial.IsDrawRowEndLine设置为True,
如下图所示:

效果如下:

再设置列分隔线
ListView.SelfOwnMaterial.IsDrawColBeginLine设置为True,
ListView.SelfOwnMaterial.IsDrawColEndLine设置为True,
ListView.SelfOwnMaterial.IsDrawColLine设置为True,
如下图所示:

效果如下:

 
行分隔线的颜色和粗细都在DrawRowLineParam中设置,
列分隔线的颜色和粗细都在DrawColLineParam中设置,
比如DrawRowLineParam.Color设置为红色Red,PenWidth设置为2,
DrawColLineParam.Color设置为蓝色Blue,PenWidth设置2,
设计时效果如下(设计时分隔线使用虚线):

运行时效果如下(运行时分隔线使用实线):