Collapse legend items by code

Jun 15, 2012 at 3:51 AM

Is there any way to collapse the legend nodes of symbolized layers through code