TreeNodeCollection Control Property C#
Unfortunately I'm very new to different control properties and was wondering why the following code doesn't work when I try to set the开发者_运维百科 TreeNodeCollection. Is there another way I would be able to obtain a continuous layered "list"?
public TreeNodeCollection MenuItems { get; set; }
MenuItems is already instantiated, just use this
MenuItems.AddRange(yourList);
精彩评论