我怎样才能得到一个ListView项的高度?高度、ListView

2023-09-05 23:30:08 作者:暴躁的小白兔

我有ListView和我需要确定项目的高度。

I have ListView and I need to determine item height.

推荐答案

您可以使用 GetItemRect() 方式:

int itemHeight = yourListView.GetItemRect(itemIndex).Height;