C# - 更改组颜色ObjectListView [英] c# - Change color of groups in ObjectListView

查看:272
本文介绍了C# - 更改组颜色ObjectListView的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当在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的,没有任何机制来改变对组头如何呈现
什么。你不能改变字体,
颜色,背景颜色,任何东西。

Even using the undocumented ListView API's, there is no mechanism to change anything about how a group header is rendered. You can't change the font, color, background color, anything.

那么,在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的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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