ToolStripComboBox.GetItemHeight(Int32) 方法

定義

傳回 ToolStripComboBox 中的項目高度 (以像素為單位)。Returns the height, in pixels, of an item in the ToolStripComboBox.

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 index of the item to return the height of.

傳回

指定索引處的項目高度 (單位為像素)。The height, in pixels, of the item at the specified index.

適用於