<?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 access or set Text Symbol from Table Frame using ArcGIS Pro SDK in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-or-set-text-symbol-from-table-frame/m-p/1167428#M8065</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/145101"&gt;@CharlesMacleod&lt;/a&gt;&amp;nbsp;Thank you so much, it worked out great!! and if you have any idea Could you please also tell me how to set the border of the Table Frame from the backend ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 25 Apr 2022 13:04:38 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2022-04-25T13:04:38Z</dc:date>
    <item>
      <title>How to access or set Text Symbol from Table Frame using ArcGIS Pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-or-set-text-symbol-from-table-frame/m-p/1166570#M8052</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm using the Table Frame functionality in the ArcGIS Pro application where I need to set the &lt;STRONG&gt;Text symbol part&lt;/STRONG&gt; that appears when we go to the &lt;STRONG&gt;Table Frame properties&lt;/STRONG&gt; &lt;STRONG&gt;table&lt;/STRONG&gt;, beside that there is one tab &lt;STRONG&gt;"Text Symbol"&lt;/STRONG&gt; that I need to access through the backend using C#.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ShabinaBano_0-1650541044194.png" style="width: 318px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/39524iDBBD689EF6F1478C/image-dimensions/318x695?v=v2" width="318" height="695" role="button" title="ShabinaBano_0-1650541044194.png" alt="ShabinaBano_0-1650541044194.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there anyone who knows how to do this or can provide the code snippet ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 11:38:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-or-set-text-symbol-from-table-frame/m-p/1166570#M8052</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-04-21T11:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to access or set Text Symbol from Table Frame using ArcGIS Pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-or-set-text-symbol-from-table-frame/m-p/1167095#M8059</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;internal class Button1 : Button {
  protected override void OnClick() {
     var layout = LayoutView.Active.Layout;
     if (layout == null)
       return;

     QueuedTask.Run(() =&amp;gt; {
      var tableFrame = layout.GetElements().OfType&amp;lt;TableFrame&amp;gt;().FirstOrDefault();
      if (tableFrame != null) {
        //change the text symbol
        //the property panel conflates the symbols for each field
        var frame_def = tableFrame.GetDefinition() as CIMTableFrame;
        var fields = frame_def.Fields?.ToList() ?? new List&amp;lt;CIMTableFrameField&amp;gt;();

        var green = ColorFactory.Instance.CreateColor(
                       System.Windows.Media.Colors.ForestGreen);
        var size = 11;
        var fontName = "Bernard MT Condensed";
        var textSymbol = SymbolFactory.Instance.ConstructTextSymbol(green, size, fontName);							

        foreach (var frameField in fields) {
          //to mimic the property sheet, change heading and field symbols
	  frameField.HeadingTextSymbol.Symbol = textSymbol;
          frameField.TextSymbol.Symbol = textSymbol;
        }
        //these are defaults for new fields - optional - but, based on
        //some experimentation, they need to match if u want the property
        //sheet to show the changed symbology.
        frame_def.DefaultTableFrameField.HeadingTextSymbol.Symbol = textSymbol;				 
        frame_def.DefaultTableFrameField.TextSymbol.Symbol = textSymbol;

        //commit the changes
        tableFrame.SetDefinition(frame_def);
       }
     });
   }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take a look at&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=MP90p-jkA5Q&amp;amp;t=14s" target="_self"&gt;https://www.youtube.com/watch?v=MP90p-jkA5Q&amp;amp;t=14s&lt;/A&gt;&amp;nbsp; on Youtube for on some guidance on how to figure these kind of things out. The session content is here:&amp;nbsp;&lt;A href="https://esri.github.io/arcgis-pro-sdk/techsessions/2019/PalmSprings/UnderstandingTheCIM.zip" target="_self"&gt;UnderstandingTheCIM.zip&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Apr 2022 16:49:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-or-set-text-symbol-from-table-frame/m-p/1167095#M8059</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2022-04-22T16:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to access or set Text Symbol from Table Frame using ArcGIS Pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-or-set-text-symbol-from-table-frame/m-p/1167428#M8065</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/145101"&gt;@CharlesMacleod&lt;/a&gt;&amp;nbsp;Thank you so much, it worked out great!! and if you have any idea Could you please also tell me how to set the border of the Table Frame from the backend ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 13:04:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-or-set-text-symbol-from-table-frame/m-p/1167428#M8065</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-04-25T13:04:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to access or set Text Symbol from Table Frame using ArcGIS Pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-or-set-text-symbol-from-table-frame/m-p/1167788#M8068</link>
      <description>&lt;P&gt;There are multiple symbols it seems that control the borders - for the rows, the header, columns, etc. However, the "outer" border is this one:&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;var frame_def = tableFrame.GetDefinition() as CIMTableFrame;
var dashed_line = SymbolFactory.Instance.ConstructLineSymbol(
   ColorFactory.Instance.CreateColor(System.Windows.Media.Colors.CadetBlue),
       1, SimpleLineStyle.Dash);
//change the outer border symbol
frame_def.GraphicFrame.BorderSymbol.Symbol = dashed_line;
tableFrame.SetDefinition(frame_def);&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 26 Apr 2022 03:30:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-or-set-text-symbol-from-table-frame/m-p/1167788#M8068</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2022-04-26T03:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to access or set Text Symbol from Table Frame using ArcGIS Pro SDK</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-or-set-text-symbol-from-table-frame/m-p/1167898#M8071</link>
      <description>&lt;P&gt;Many Thanks , It worked &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Apr 2022 13:08:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/how-to-access-or-set-text-symbol-from-table-frame/m-p/1167898#M8071</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2022-04-26T13:08:56Z</dc:date>
    </item>
  </channel>
</rss>

