Articles in this section
Category / Section

How to set padding between TreeMenuItems in WinForms TreeNavigator?

1 min read

Padding

In TreeNavigator, it is possible to customize the padding between its TreeMenuItems and it can be achieved by using the PadY property. The following code example is to demonstrate the same.

C#

//Sets the PadY property.
this.treeNavigator1.PadY = 4;

VB

'Sets the PadY property.
Me.TreeNavigator1.PadY = 4

Screenshot:

Show the TreeNavigator view with vertical padding

Figure 1: TreeNavigator with PadY

Samples:

C#: TreeNavigator_Padding_C#

VB: TreeNavigator_Padding_VB

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment
Access denied
Access denied