Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Is there some method to select all the item on Diagram? (Read 1672 times)
heyx
Junior Member
**
Offline


I Love MindFusion!

Posts: 69
Joined: Oct 9th, 2014
Is there some method to select all the item on Diagram?
Apr 13th, 2015 at 2:17am
Print Post  
hi,
I want to select all the item on Diagram, Is there some method to get it ? or use code ?
  Thanks
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Is there some method to select all the item on Diagram?
Reply #1 - Apr 13th, 2015 at 11:07am
Print Post  
Hi,

Try this:

Code
Select All
private void OnEditSelectAll(object sender, RoutedEventArgs e)
{
    foreach (var item in diagram.Items)
        diagram.Selection.AddItem(item);
} 



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