问题描述
当在ObjectListView建筑群体,我怎么更改组的颜色?在默认组显示,在深蓝色的前景色深蓝色线。我怎样才能改变呢?
When building groups in ObjectListView, how do I change the color of the group? In default groups are shown with a dark blue line in dark blue forecolor. How can I change it?
推荐答案
它显然是不可能的。有字体/样式几年前。我不知道如果这仍然代表实际情况,但我没能拿出当我几个星期前寻找它的解决方案。
Its apparently not possible. There was a discussion about the ability to change the group header font/style several years ago. I don't know if that still represents the actual situation, but I wasn't able to come up with a solution when I was looking for it several weeks ago.
即使使用无证的ListView API的,没有任何机制来改变对组头如何呈现
什么。你不能改变字体,
颜色,背景颜色,任何东西。
那么,在XP下而已,你可以改变组头的颜色(经由
SetGroupMetrics消息)。但在Vista和更高版本,除去这种能力。
Well, under XP only, you can change the color of the group header (via the SetGroupMetrics message). But under Vista and later, that ability was removed.
这篇关于C# - 更改组颜色ObjectListView的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!