Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic DiagramItem does not expose parent Diagram (Read 1405 times)
Denis_Vuyka
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Mar 23rd, 2010
DiagramItem does not expose parent Diagram
Mar 23rd, 2010 at 2:06pm
Print Post  
Thought every DiagramItem-based entity accepts Diagram for the "parent" constructor argument there is no easy way getting the Diagram by DiagramItem instance only.

It will be more efficient if every diagram item provides a property-based access to the Diagram it belongs to.
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: DiagramItem does not expose parent Diagram
Reply #1 - Mar 23rd, 2010 at 2:14pm
Print Post  
It seems there's a public DiagramItem.Diagram property in the current version (1.4 beta). I'm not sure if it was available in older versions. If it's not, you could use item.Parent.Parent to get the containing Diagram.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint