I want to label my polygons by the field, here named field LABEL2. The values under LABEL2 are supposed to be arcade scripts.
Ultimately my goal is to add line breaks to my labels.
However, the way it shoes up in the Label Class dock pane isn't displaying the labels as I am expecting. (See photo above)
I'm simply storing the "scripts" as string values for each row. (See photo below).
Bottom line: How can I programatically add line breaks to a label? I'm currently thinking that using Arcade scripts would be the answer, but is there a better way to do this?
Thank you in advance.
Solved! Go to Solution.
try this code change instead:
var finalValue = string.Empty;
foreach (string item in gradeRangeInfo)
{
// change to your existing code is here:
finalValue += System.Environment.NewLine + item;
}
try this code change instead:
var finalValue = string.Empty;
foreach (string item in gradeRangeInfo)
{
// change to your existing code is here:
finalValue += System.Environment.NewLine + item;
}
This helped perfectly, thank you!