ListBox.GetItemHeight(Int32) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the height of an item in the ListBox.
public:
int GetItemHeight(int index);
public int GetItemHeight(int index);
member this.GetItemHeight : int -> int
Public Function GetItemHeight (index As Integer) As Integer
- index
- Int32
The zero-based index of the item to return the height for.
The height, in pixels, of the specified item.
The specified value of the index
parameter is less than zero or greater than the item count.
If the DrawMode property is not set to DrawMode.OwnerDrawVariable
, the value of the index parameter is ignored because all items in a standard ListBox are the same size. You can use this property when you are using an owner-drawn ListBox to determine the size of any item within the ListBox.
Produkt | Versioner |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
Feedback om .NET
.NET är ett öppen källkod projekt. Välj en länk för att ge feedback: