| Visual Basic (Declaration) | |
|---|---|
Public Property ItemHeight As Integer | |
| C# | |
|---|---|
public int ItemHeight {get; set;} | |
To reset the ItemHeight to the default value, call the ResetItemHeight method.
To ensure a clean display, the actual height of the node may vary from the specified value by up to one pixel.
The following sample code illustrates how to specify the height of nodes.
| Visual Basic | Copy Code |
|---|---|
Private Sub button6_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles button6.Click | |
| C# | Copy Code |
|---|---|
private void button6_Click(object sender, System.EventArgs e) | |
