Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic LINQ and collections in DiagramLite (Read 1427 times)
rajesh_patil74
Full Member
***
Offline


I love YaBB 1G - SP1!

Posts: 220
Joined: Sep 3rd, 2009
LINQ and collections in DiagramLite
Dec 24th, 2009 at 7:22am
Print Post  
Hi Stoyo

How to use LINQ with different collections in DiagramLite control.

Following statement is not getting compiled

IList<object> test = treeView.Selection.Items.Where(x => x.Tag != null).ToList();


My requirement is that I have a selected node items and for each nodes tag object contain my actual object. I need all my objects assinged to tag property from selected nodes list.

-Rajesh


  
Back to top
WWW  
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: LINQ and collections in DiagramLite
Reply #1 - Dec 24th, 2009 at 10:21am
Print Post  
Hi Rajesh,

Try this:

var test = from x in diagram.Selection.Items where x.Tag != null select x;

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint