<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Programatically apply label to feature whose values are arcade scripts in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-apply-label-to-feature-whose/m-p/1079517#M6865</link>
    <description>&lt;P&gt;try this code change instead:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var finalValue = string.Empty;
foreach (string item in gradeRangeInfo)
{
  // change to your existing code is here:
  finalValue += System.Environment.NewLine + item;
}&lt;/LI-CODE&gt;</description>
    <pubDate>Thu, 15 Jul 2021 23:19:04 GMT</pubDate>
    <dc:creator>Wolf</dc:creator>
    <dc:date>2021-07-15T23:19:04Z</dc:date>
    <item>
      <title>Programatically apply label to feature whose values are arcade scripts</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-apply-label-to-feature-whose/m-p/1078081#M6863</link>
      <description>&lt;P&gt;I want to label my polygons by the field, here named field LABEL2. The values under LABEL2 are supposed to be arcade scripts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ultimately my goal is to add line breaks to my labels.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Inkedlabeling-issue-pro_LI.jpg" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18278i63B5B0BF17B33ECA/image-size/large?v=v2&amp;amp;px=999" role="button" title="Inkedlabeling-issue-pro_LI.jpg" alt="Inkedlabeling-issue-pro_LI.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However, the way it shoes up in the Label Class dock pane isn't displaying the labels as I am expecting. (See photo above)&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm simply storing the "scripts" as string values for each row. (See photo below).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="labeling-issue-code.PNG" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/18279i559E225E447004ED/image-size/medium?v=v2&amp;amp;px=400" role="button" title="labeling-issue-code.PNG" alt="labeling-issue-code.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;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?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Jul 2021 23:38:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-apply-label-to-feature-whose/m-p/1078081#M6863</guid>
      <dc:creator>KhamilleJaynes</dc:creator>
      <dc:date>2021-07-12T23:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically apply label to feature whose values are arcade scripts</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-apply-label-to-feature-whose/m-p/1079517#M6865</link>
      <description>&lt;P&gt;try this code change instead:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;var finalValue = string.Empty;
foreach (string item in gradeRangeInfo)
{
  // change to your existing code is here:
  finalValue += System.Environment.NewLine + item;
}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 15 Jul 2021 23:19:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-apply-label-to-feature-whose/m-p/1079517#M6865</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-07-15T23:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Programatically apply label to feature whose values are arcade scripts</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-apply-label-to-feature-whose/m-p/1083300#M6947</link>
      <description>&lt;P&gt;This helped perfectly, thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jul 2021 21:16:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/programatically-apply-label-to-feature-whose/m-p/1083300#M6947</guid>
      <dc:creator>KhamilleJaynes</dc:creator>
      <dc:date>2021-07-27T21:16:48Z</dc:date>
    </item>
  </channel>
</rss>

