我用程序将Treeview树生成之后,当我将父节点展开时,父节点与子节点连线过长,样子非常难看,请问怎样使这棵树在展开后美观一些,先谢了

解决方案 »

  1.   

    Treeview 右键属性 有改连线长度的
      

  2.   

    TView1.Indentation = 1000
    ================================
    Indentation Property
          Returns or sets the width of the indentation of objects in a control. Syntaxobject.Indentation[ = number]The Indentation property syntax has these parts:Part Description 
    object An object expression that evaluates to an object in the Applies To list. 
    number An numeric expression specifying the width that each object is indented.  
    ResFor the ImageCombo control and ComboItem object, each indent is equal to 10 pixels.If you change the Indentation property at run time, the TreeView is redrawn to reflect the new width. The property value cannot be negative.