06-06-2018 08:26 PM
Dear all,
I am trying to rename sub legendentries by the follwing code:
Dictionary<string, PView.LegendEntry> innerLegE = new Dictionary<string, PView.LegendEntry>(); for (int i = 1; i <= myLegendEntry.GroupEntries.Count; i++) { innerLegE[i.ToString()] = myLegendEntry.GroupEntries[i] as PView.LegendEntry; if (innerLegE[i.ToString()].Name == "1") { innerLegE[i.ToString()].Name = "BM"; }
}
Actually it rename it but it doesn't change its name in the legend Pane.
So how can I show this change on the the legend Pane?
Best Regards
Khaled
Solved! Go to Solution.
06-07-2018 04:14 AM
Hi Khaled
The Name property is an internal data to identify the legend entry uniquely.
Use insteat of Name property the Title entry from the PropertySet of the LegendEntry object to change the label in the legend:
MyLegendEntry.PropertySet("Title").Value = "BM"
Best regards,
hesrah
06-07-2018 09:49 AM
Thanks hesrah ,
That worked with me:
innerLegE[i.ToString()].Title = "BM";
Best Regards
Khaled