<?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: Create Text Point Element - in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-text-point-element/m-p/1191257#M8374</link>
    <description>&lt;P&gt;thanks.&amp;nbsp; using layout as container worked&lt;/P&gt;</description>
    <pubDate>Mon, 11 Jul 2022 15:13:57 GMT</pubDate>
    <dc:creator>PeteVitt</dc:creator>
    <dc:date>2022-07-11T15:13:57Z</dc:date>
    <item>
      <title>Create Text Point Element -</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-text-point-element/m-p/1190506#M8357</link>
      <description>&lt;P&gt;Hi I'm having trouble with the Create Point Text Element 1 code snippet:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Layouts#create-point-text-element-1" target="_blank" rel="noopener"&gt;https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Layouts#create-point-text-element-1&lt;/A&gt;&lt;/P&gt;&lt;P&gt;on this line:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;var&lt;/SPAN&gt; &lt;SPAN class=""&gt;ptTxtElm&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;ElementFactory&lt;/SPAN&gt;.&lt;SPAN class=""&gt;Instance&lt;/SPAN&gt;.&lt;SPAN class=""&gt;CreateTextGraphicElement&lt;/SPAN&gt;(
    &lt;SPAN class=""&gt;container&lt;/SPAN&gt;, &lt;SPAN class=""&gt;TextType&lt;/SPAN&gt;.&lt;SPAN class=""&gt;PointText&lt;/SPAN&gt;, &lt;SPAN class=""&gt;coord2D&lt;/SPAN&gt;.&lt;SPAN class=""&gt;ToMapPoint&lt;/SPAN&gt;(), &lt;SPAN class=""&gt;sym&lt;/SPAN&gt;, &lt;SPAN class=""&gt;textString&lt;/SPAN&gt;,
                       &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;"&lt;/SPAN&gt;New Point Text&lt;SPAN class=""&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;, &lt;SPAN class=""&gt;true&lt;/SPAN&gt;, &lt;SPAN class=""&gt;elemInfo&lt;/SPAN&gt;);&lt;/PRE&gt;&lt;P&gt;for 'container' variable I'm getting an error: The name 'container' does not exist in the current context.&amp;nbsp; As I look at the snippet I don't see that container has been defined above this point&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Pete&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2022 18:36:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-text-point-element/m-p/1190506#M8357</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2022-07-07T18:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create Text Point Element -</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-text-point-element/m-p/1190727#M8359</link>
      <description>&lt;P&gt;when creating graphic elements, container can be one of:&lt;/P&gt;&lt;P&gt;a layout - eg var container = LayoutView.Active.Layout;&lt;/P&gt;&lt;P&gt;a graphicslayer - eg var container = MapView.Active.Map.GetLayersAsFlattenedList().OfType&amp;lt;GraphicsLayer&amp;gt;().First();&lt;/P&gt;&lt;P&gt;a group element. - eg var container = layout.GetElementsAsFlattenedList().OfType&amp;lt;GroupElement&amp;gt;().First();&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2022 04:47:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-text-point-element/m-p/1190727#M8359</guid>
      <dc:creator>CharlesMacleod</dc:creator>
      <dc:date>2022-07-08T04:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Create Text Point Element -</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-text-point-element/m-p/1191257#M8374</link>
      <description>&lt;P&gt;thanks.&amp;nbsp; using layout as container worked&lt;/P&gt;</description>
      <pubDate>Mon, 11 Jul 2022 15:13:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/create-text-point-element/m-p/1191257#M8374</guid>
      <dc:creator>PeteVitt</dc:creator>
      <dc:date>2022-07-11T15:13:57Z</dc:date>
    </item>
  </channel>
</rss>

