GetItemHeight() public method

public GetItemHeight ( int index ) : int
index int
return int
示例#1
0
 /// <include file='doc\WinBarComboBox.uex' path='docs/doc[@for="ToolStripComboBox.GetItemHeight"]/*' />
 public int GetItemHeight(int index)
 {
     return(ComboBox.GetItemHeight(index));
 }
示例#2
0
		public void GetItemHeightTest ()
		{
			ComboBox cmbbox = new ComboBox ();
			cmbbox.Items.Add ("ABC");
			cmbbox.Items.Add ("BCD");
			cmbbox.Items.Add ("DEF");
			int x = -1;
			x = cmbbox.GetItemHeight (x);
			Assert.IsTrue (cmbbox.ItemHeight > 0, "#21");
		}