Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想在 c# 中更改 Listbox 中文本的每种颜色的行是否有我搜索的列表框中的任何方法,我发现类似这样的东西
e.Graphics.DrawString(myListBox.Items[i].ToString(), myFont, myBrush, e.Bounds, StringFormat.GenericDefault);
有没有另一种不使用的方法e.Graphics
e.Graphics