Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
4341
Remove the Root Node Connector Line
posted

Hello team,

How to remove the node connector line only for the  Parent / Root node.

Please find attached an snap shot.

 

  • 469350
    Suggested Answer
    Offline posted

    The ShowRootLines property will remove the lines as well as the expansion indicators when set to false. Which is not exactly what you asked for, but maybe it will work for you.

  • 69832
    Offline posted

    I don't think there is any feasible way to do this. You could theoretically implement the IUIElementCreationFilter interface and remove certain connectors, but the problem lies in knowing which node it belongs to. You might be able to hack it out by comparing its rect to the position of the node's expansion indicator and its text.