Hi Jarrod,
Yes it should work. I added the following lines of code at the end of each Symbol classes:
In the MySymbol Class:
this.Name = "DiffName";
In the MyOtherSymbol Class:
this.Name = "AnotherName";
and then built and ran the sample. As you can see the labels are different now as seen in
this screenshot and the label text is different from the name of the Plugin class.
As mentioned,you can set the label text after getting hold of the Symbol instance to be anything you want it to be in the Model''s ChildrenChanging event. In the sample refer to the following code:
private void diagram1_Model_ChildrenChanging(object sender, Syncfusion.Windows.Forms.Diagram.NodeCollection.EventArgs evtArgs)
{
if (evtArgs.ChangeType.ToString() == "Insert")
{
if (evtArgs.Node.GetType() == typeof(MySymbol))
{
MySymbol mys = (MySymbol)evtArgs.Node;
mys.AddLabel(mys.Name,BoxPosition.Center);
}
else if(evtArgs.Node.GetType() == typeof(MyOtherSymbol))
{
MyOtherSymbol myos = (MyOtherSymbol)evtArgs.Node;
myos.AddLabel(myos.Name,BoxPosition.Center);
}
}
}
As you can see in this case the label''s text is set to be the name of the Symbol.
Regards
Arun