|131224||Jun 29,2017 08:40 AM UTC||Jul 12,2017 09:22 AM UTC||WinForms||11|
I don't understand how the alignment works. If I create 3 textnodes in different possitions and I try to align left the three of then nothing happens. I would like that work like word tool, if you want to align to the left all selected nodes are shifted to the left.
Hi Blanca,Thanks for contacting Syncfusion support.In diagram Control, Alignment works based on Diagram.Model’s “AlignmentType” property and it has two types and its explained in below,1. SelectedNode – it used to align the node based on the position of the first node contains SelectionList.For example:If the diagram contains 3 text nodes i.e. TextNode1, TextNode2 and TextNode3. In the Diagram.View’s “SelectionList” contains the First Node is TextNode2. Then the others nodes aligned based on the TextNode2’s position.2. BoundingRectangle. – it is used to align the nodes based on the total bounds area of the selected nodes.Please refer to the below code example and attached video.Code example:[C#]//Set whether the align the nodes based on the Selected node or selected Bounds area.diagram1.Model.AlignmentType = AlignmentType.SelectedNode;Video:Regards,Naganathan K G
Thank you for your answer but for me it doesn't work. I will send you a video.
I couldn't open the sample, the dll's are in different version. My version is 13.4200.0.53
I don't have problems with rectangle, or lines, I have problems with textnode.
I'm thinking is because of the textnode size or alignment of the text or something similar, i don't know why.
And I don't have problem when I append a textnode, example:
Syncfusion.Windows.Forms.Diagram.TextNode rect2 = new Syncfusion.Windows.Forms.Diagram.TextNode("pruebapuuuu"); //.Rectangle(100, 50, 100, 50); diagram1.Model.AppendChild(rect2);
I have problems when I use texttool.
The problem is when you align right and the linestyle color is transparent. Obviously the alignment is correct but, if you don't see the line it's weird. In my case the line in a textbox is always transparent.
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.