Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Need to center align text in nodes (Read 3096 times)
kaykay15
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 43
Joined: Mar 11th, 2010
Need to center align text in nodes
Jun 29th, 2010 at 6:50pm
Print Post  
Hello Stoyon,

I need to center align text in the shapenode. currently the text is appearing to the top-left of the node.

I didn't found any Text-Alignment property for the shape node.

how could i achieve this?

Thanks,
-kaykay
  

Thanks,&&-KayKay
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need to center align text in nodes
Reply #1 - Jun 30th, 2010 at 8:18am
Print Post  
Hi,

Assign to the node's TextFormat a StringFormat object whose Alignment and LineAlignment properties are set to Center.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
kaykay15
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 43
Joined: Mar 11th, 2010
Re: Need to center align text in nodes
Reply #2 - Jun 30th, 2010 at 9:58am
Print Post  
Thanks once again stoyon that worked.. Smiley

One more question i have for you.. i think this would also be a simple one for you..

We have implemented dropshadow effect for nodes in the silverlight version and now we are working on asp.net version.
So how to get dropshadow effect in asp.net version?
  

Thanks,&&-KayKay
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need to center align text in nodes
Reply #3 - Jun 30th, 2010 at 10:41am
Print Post  
Hi,

There aren't exactly the same shadows as in WPF / Silverlight. Here you can show only solid-color shadows as set via the ShadowColor property, possibly with alpha < 255 to make them semi-transparent. Also set ShadowsStyle to a value different from None.

I hope that helps,
Stoyan
  
Back to top
 
IP Logged
 
kaykay15
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 43
Joined: Mar 11th, 2010
Re: Need to center align text in nodes
Reply #4 - Jun 30th, 2010 at 12:58pm
Print Post  
Stoyon,

I found ShadowStyle Property for diagram control and enabledshadoweffects for diagram, shadow is being rendered for diagram.

But i want shadow for the diagram nodes, there is no shadowstyle property for diagram nodes.

how do i get shadow for diagram nodes.
  

Thanks,&&-KayKay
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need to center align text in nodes
Reply #5 - Jun 30th, 2010 at 1:36pm
Print Post  
ShadowsStyle will enable shadows for all nodes, do you need shadows only for individual nodes?
  
Back to top
 
IP Logged
 
kaykay15
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 43
Joined: Mar 11th, 2010
Re: Need to center align text in nodes
Reply #6 - Jun 30th, 2010 at 1:44pm
Print Post  
yes i need shadows for some individual nodes.

as you said "ShadowsStyle will enable shadows for all nodes" above, i am not able to view shadow for all nodes just diagram has rendered its shadow.
  

Thanks,&&-KayKay
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Need to center align text in nodes
Reply #7 - Jun 30th, 2010 at 1:59pm
Print Post  
You could set the diagram's ShadowColor to Transparent or ShadowOffsetX/Y to 0, and then assign other values to the corresponding node's properties for the nodes that should cast shadows.

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