在列表视图中着色 [英] coloring in listview

查看:78
本文介绍了在列表视图中着色的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们如何为列表视图中的字符串中的任何部分(子字符串)着色.BackgroundColor为整个子项目或item着色.我想为子项目的某些部分着色.

how can we colour any part(substring) in a string which is in the listview.BackgroundColor colors the whole subitem or item.i want to color some part of subitem.

推荐答案

看看对codeproject的绝对强大的控制更易于使用的ListView
Take a look at the absolutely great control on codeproject A Much Easier to Use ListView


您将必须拥有要绘制此内容的所有者的所有权(这会引起其他问题).
You will have to owner draw the item you want to do this on (which raises other issues).


这篇关于在列表视图中着色的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆