Change ListViewItem Bounds

房东的猫 提交于 2019-12-12 04:58:25

问题


Is there any way to set the bounds of a all ListView items in LargeIcon mode to a specific size?

I want to manually draw a rounded rectangle background for each of the items, but in the DrawItem event e.Bounds differs based on the state of the items.

Thanks.


回答1:


Use SystemInformation.IconSpacingSize to discover the size of the grid square used to arrange icons in LargeIcon mode.



来源:https://stackoverflow.com/questions/1896707/change-listviewitem-bounds

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!