Hi Bryja,
Thanks for using Syncfusion products.
The Label has “Position” property to align it with
predefined values and it is "Center" by default. We suggest you to use this
property for your requirement.
<Code>
[C#]
Syncfusion.Windows.Forms.Diagram.Label lbl = new
Syncfusion.Windows.Forms.Diagram.Label();
//positioning lbl
lbl.Position = Position.TopCenter;
</Code>
Also, the Label has OffsetX/OffsetY for custom positioning
and you can use this too.
Please let me know if any concerns.
Regards,
Pandi Murugan A
Hi Bryja,
Thanks for the update.
1.
You can use
the below solution for your requirement.
2.
The latest version of
Essential Diagram supports editing the label in place by clicking on a node. Could
you please upgrade to the latest version?
Please let me know if any concerns.
Regards,
Pandi Murugan A
Hi Bryja,
Thanks for the update.
2. You can get a separate patch for the feature “In place label
editing” in your current version from us. Or, you can upgrade to the latest
version.
Please create a DirectTrack incident if you need a patch for the requested
feature in your current version so that we can update the patch for the same. You
can create the DT incident from the following link.
http://www.syncfusion.com/account/dashboard
In the interests of maintaining confidentiality, we have a
policy of not sharing patches or otherwise proprietary customer specific
information in the public forum.
Please let me know if any concerns.
Regards,
Pandi Murugan A
Hi Bryja,
Thanks for your update.
Currently we don’t provide support to “Remove the text formatting
from label editor”. This has been suspected to be a feature request. Please
create a DT incident for your query so that we can update the patch for this
feature.
You can create the DT incident from the following link.
http://www.syncfusion.com/account/dashboard
In the interests of maintaining confidentiality, we have a policy of not
sharing patches or otherwise proprietary customer specific information in the
public Forum.
Please let us know if you have any queries.
Regards,
Amsath Ali. M
Hi klaudiusz,
Thanks for your update.
In general, when a connector is connected to the centralPort
of a node, then it will automatically change the docking position to the
nearest edge of the node. But, when it is connected to a particular
connectionPoint then it is always stick to the location of that connectionPoint
and the docking position also not be changed.
However you can achieve your requirement by changing the
connectionPoints from which that connector connected while exchanging the node’s
position. Please refer the below code snippet to achieve your requirement.
Here is the code:
[C#]
//reconnecting connector with
updated enpoints
private void exchangeNodePostionToolStripMenuItem_Click(object sender, EventArgs
e)
{
diagram1.Model.BeginUpdate();
PointF
temp = diagram1.Model.Nodes[0].PinPoint;
diagram1.Model.Nodes[0].PinPoint =
diagram1.Model.Nodes[1].PinPoint;
diagram1.Model.Nodes[1].PinPoint =
temp;
if
(diagram1.Model.Nodes[2] is ConnectorBase)
{
diagram1.Model.Nodes[0].Ports[0].Connect(((ConnectorBase)diagram1.Model.Nodes[2]).HeadEndPoint);
diagram1.Model.Nodes[1].Ports[1].Connect(((ConnectorBase)diagram1.Model.Nodes[2]).TailEndPoint);
}
diagram1.Model.EndUpdate();
}
Here is the sample:
Please let us know if
you have any queries.
Regards,
Amsath Ali. M