[]
        
(Showing Draft Content)

Right-to-Left Support

TreeView provides support for languages that follow Right-to-Left scripts. The control enables you to present all TreeView contents in the right-to-left direction by using the RightToLeft property of System.Windows.Forms.Control. You can set the property to any of the values in the RightToLeft enumeration of Systems.Windows.Forms as follows:

  • No: Sets the direction from left to right, which is the default direction.

  • Yes: Sets the direction from right to left.

  • Inherit: Inherits the direction from the parent control.

RTL support in TreeView


The following code snippets illustrate how to set these properties in code.


' set the RightToLeft property
C1TreeView1.RightToLeft = System.Windows.Forms.RightToLeft.Yes
// set the RightToLeft property
c1TreeView1.RightToLeft = System.Windows.Forms.RightToLeft.Yes;