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
4165
Difference between Override.NodeAppearance and LeftImages?
posted

Hi,

Resource/memory wise will I get better bang for my buck if I use the Override.NodeAppearance when I am only adding one image to the node? I have used LeftImages.Add exclusivly but thought I should ask...

 

Thanks.

Parents
No Data
Reply
  • 469350
    Offline posted

    Hi,

    If you only need a single image, then it's probably best to use the NodeAppearance, since you could also apply different appearances to the node for collapsed and expanded states mode easily.

    NodeAppearance is much more efficient since it's only a single object that applies to all nodes. So if you assign an image to the NodeAppearance, you have created a single Appearance object with a single image instance.

    LeftImages are applied to each node individually. So that means an instance of your image is created for each node.

Children
No Data