AD
Administrator
Syncfusion Team
September 17, 2004 04:31 PM UTC
Hi Jimski
You should use the Symbol''s Remove() or RemoveAt() Method to remove the labels from the symbol.
Here is a code snippet which demonstrates how you can remove labels of a custom symbol: MySymbol(s) in a Diagram:
//Remove Lables in MySymbol
foreach (MySymbol sym in this.diagram1.Model.Nodes)
{
for (int i=sym.Labels.Count-1; i>=0; i--)
{
sym.Labels.RemoveAt(i);
}
}
this.diagram1.Refresh();
}
Regards
Arun