问题
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