Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Adjust shapenodes' text alignment (Read 1189 times)
khstar
YaBB Newbies
*
Offline


I love YaBB 1G - SP1!

Posts: 19
Joined: Apr 23rd, 2009
Adjust shapenodes' text alignment
Jul 14th, 2009 at 9:06am
Print Post  
For Each p As Mindfusion.Diagramming.DiagramNode In MainDiagram.Nodes
        CType(p, Mindfusion.Diagramming.ShapeNode).TextFormat.Alignment = StringAlignment.Far
       Next


I just tried code above.
But it doesn't affect right away.
When I click or move the shapenode, Then I can see changed alignment.

How can I make an effect right after code?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Adjust shapenodes' text alignment
Reply #1 - Jul 14th, 2009 at 10:01am
Print Post  
The control cannot detect changes made to the StringFormat object. You could assign a new StringFormat instance to ShapeNode.TextFormat, and then the TextFormat setter will update the text layout as expected.

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