Hi Daniel ,
LinkFactory class is no longer valid in v6.3.0.30. You can add the label to the connector when you draw the link. You have to handle NodeCollectionChanging event of the DocumentEventSink. Please refer to the below code snippet.
this.diagram1.Model.EventSink.NodeCollectionChanging += new CollectionExEventHandler(EventSink_NodeCollectionChanging);
void EventSink_NodeCollectionChanging(CollectionExEventArgs evtArgs)
{
if (evtArgs.ChangeType == CollectionExChangeType.Insert && evtArgs.Element is OrthogonalConnector)
{
OrthogonalConnector m_connector = evtArgs.Element as OrthogonalConnector;
Label m_lbl = new Label();
m_lbl.Text = "Yes";
m_lbl.FontStyle.Family = "Cambria";
m_lbl.FontStyle.Bold = true;
m_lbl.FontStyle.Italic = true;
m_lbl.FontStyle.Size = 12;
m_lbl.Position = Position.Center;
m_connector.Labels.Add(m_lbl);
}
}
//To activate the OrthogonalLinkTool
this.diagram1.Controller.ActivateTool("OrthogonalLinkTool");
Here is the working sample.
http://websamples.syncfusion.com/samples/Diagram.Windows/F20040/main.htmIn this sample you can activate the OrthogonalLinkTool by using Tools->OrthogonalLinkTool menu item.
Please let me know if this helps.
Thanks,
Nagaraj