C# VB .NET 中 ListView SubItem 颜色设置无效怎么解决?
Posted by Admin L in .NET Programming on 29-06-2012. Tags: .NET Programming Experience, C# FAQ, C# Programming Experience, C# Skills, C# Q & A, .NET FAQ, .NET Skills, .NET Q & A, VB .NET Programming Experience, VB .NET Q & A, VB .NET FAQ, VB .NET Skills
作者:牧山道人
原文地址:https://www.seeksunslowly.com/c-sharp-vb-net-中-listview-subitem-颜色设置无效怎么解决
转载请注明出处,谢谢。
_____________________________________
今天需要在 Details View 模式的 ListView 中设置 SubItem 文字前景色,幸运的是 ListViewSubItem 类有 ForeColor 属性,于是直接写下:
lvi.SubItems(2).ForeColor = Color.Red ‘ 其中 lvi 为 一个 ListVi[……]