<?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: How to update all style items at once？ in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-update-all-style-items-at-once/m-p/1240728#M9173</link>
    <description>&lt;P&gt;There is no "global" change/update on a style&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2022 18:58:16 GMT</pubDate>
    <dc:creator>CharlesMacleod</dc:creator>
    <dc:date>2022-12-13T18:58:16Z</dc:date>
    <item>
      <title>How to update all style items at once？</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-update-all-style-items-at-once/m-p/1240459#M9167</link>
      <description>&lt;P&gt;我尝试使用SDK修改特定样式的符号属性，但是我只能一次更新一个样式符号。有没有办法在全部修改完成后一次性更新样式里的所有符号？&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried using the SDK to modify the symbol properties of a particular style, but I can only update style symbols one at a time. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="_0-1670901723593.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/58345i21618588E621FDCC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="_0-1670901723593.png" alt="_0-1670901723593.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;                    PolygonSymbol = style.SearchSymbols(StyleItemType.PolygonSymbol, "");
                    

                    foreach (SymbolStyleItem pSymbol in PolygonSymbol)
                    {
                        var attValue1 = pSymbol.GetType().GetProperty(att1).GetValue(pSymbol, null);
                        var attValue2 = pSymbol.GetType().GetProperty(att2).GetValue(pSymbol, null);
                        
                        pSymbol.GetType().GetProperty(att1).SetValue(pSymbol, attValue2);
                        pSymbol.GetType().GetProperty(att2).SetValue(pSymbol, attValue1);

                        style.UpdateItem(pSymbol);
                    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there a way to update all the symbols in a style once ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 03:25:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-update-all-style-items-at-once/m-p/1240459#M9167</guid>
      <dc:creator>圈圈</dc:creator>
      <dc:date>2022-12-13T03:25:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to update all style items at once？</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-update-all-style-items-at-once/m-p/1240728#M9173</link>
      <description>&lt;P&gt;There is no "global" change/update on a style&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 18:58:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-update-all-style-items-at-once/m-p/1240728#M9173</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2022-12-13T18:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to update all style items at once？</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-update-all-style-items-at-once/m-p/1240931#M9176</link>
      <description>&lt;P&gt;&lt;SPAN&gt;This can be frustrating. It will take a lot of time if there are a lot of symbols to update.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Dec 2022 02:23:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-update-all-style-items-at-once/m-p/1240931#M9176</guid>
      <dc:creator>圈圈</dc:creator>
      <dc:date>2022-12-14T02:23:25Z</dc:date>
    </item>
  </channel>
</rss>

