itemRect = list.GetItemRect(item)
| Variable | Description |
|---|---|
| itemRect | The rectangle returned includes the item's X and Y position relative to the list, its width, and its height. RECT. |
| item | The name or index of the item. LISTITEM. |
RECT rect = ColorsList.GetItemRect("green") rect = ColorsList.GetItemRect(2)