How can I get the height of a ListView item?

前端 未结 3 700
生来不讨喜
生来不讨喜 2020-12-21 02:39

I have ListView and I need to determine item height.

3条回答
  •  旧时难觅i
    2020-12-21 03:23

    I am not 100% sure but this might help:

    int itemHeight = listView.Items[itemIndex].GetBounds(ItemBoundsPortion.Entire).Height;
    

提交回复
热议问题