Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic TableNode .Item property problem (Read 1337 times)
xan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Jul 16th, 2008
TableNode .Item property problem
Jul 16th, 2008 at 12:08pm
Print Post  
Using flowChart.Net 5.0.3 and Visual Studio 2005.

I am programatiaclly creating TableNodes so I can set them up in a preset format.

Using .redimTable() and .Resize() to set the arrangement of rows / columns that I want, and then .Columns.GetAt().Width to set the widths I require.

The next step is to acess the spanning properties of some of the cells so that the middle column is a single span to hold an image.

Code
Select All
//Diagram d is already setup and passed in as an argument;
TableNode n1 = d.Factory.CreateTableNode(rect);
n1.RedimTable(3, 3);
n1.Resize(35, 25);
n1.Columns.GetAt(0).Width = 5;
n1.Columns.GetAt(1).Width = 25;
n1.Columns.GetAt(2).Width = 5;
 



What I want to use is TableNode.Item(col, row) (doc is here: http://www.mindfusion.eu/onlinehelp/flowchartnet/P_MindFusion_Diagramming_TableN...), so something like:

Code
Select All
n1.Item(1,0).ColumnSpan = 3; 



so that the middle column is a single span. However, that function is not available. It does not appear in the auto suggestion list, and if I write it anyway, it won't compile, stating that no method with that name can be found.

Any help or usggestions would be hugely appreciated!

xan.
  
Back to top
 
IP Logged
 
brianh
YaBB Newbies
*
Offline



Posts: 30
Joined: Jul 1st, 2008
Re: TableNode .Item property problem
Reply #1 - Jul 16th, 2008 at 12:16pm
Print Post  
try:

   n1[1,0].ColumnSpan = 3;

Brian
  
Back to top
 
IP Logged
 
xan
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 9
Joined: Jul 16th, 2008
Re: TableNode .Item property problem
Reply #2 - Jul 16th, 2008 at 12:59pm
Print Post  
Thankyou - you just cured a major headache! I havn't used C# much recently and totally missed how that function was defined!

Ace.  Grin
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint