<?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 Drawing a Text Symbol on LayoutView in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/drawing-a-text-symbol-on-layoutview/m-p/775271#M832</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have following code in my ArcObjects application to draw TextSymbols in Page layout. Now I am looking to implement the same in Layouts in Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;IActiveView activeView &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; myPageLayout &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; IActiveView&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
SimpleMarkerSymbol txtSymbol &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Symbology&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;CreateTextSymbol&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Colors&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Black&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; strFontName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; decFontSize&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; esriTextHorizontalAlignment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;esriTHACenter&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; esriTextVerticalAlignment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;esriTVATop&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
ESRI&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Display&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IScreenDisplay sDisplay &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; activeView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ScreenDisplay&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
ScreenDisplay&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;StartDrawing&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sDisplay&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;hDC&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Int16&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;ESRI&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Display&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;esriScreenCache&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;esriNoScreenCache&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
txtSymbol&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetTextSize&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sDisplay&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;hDC&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; aoTransformation&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; strText&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; w&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; h&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
ScreenDisplay&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FinishDrawing&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can this be done&amp;nbsp;using C# ArcGIS Pro SDK ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 08:41:38 GMT</pubDate>
    <dc:creator>Vamsi_KrishnaYarramaasu</dc:creator>
    <dc:date>2021-12-12T08:41:38Z</dc:date>
    <item>
      <title>Drawing a Text Symbol on LayoutView</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/drawing-a-text-symbol-on-layoutview/m-p/775271#M832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have following code in my ArcObjects application to draw TextSymbols in Page layout. Now I am looking to implement the same in Layouts in Pro.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;IActiveView activeView &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; myPageLayout &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; IActiveView&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
SimpleMarkerSymbol txtSymbol &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; Symbology&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;CreateTextSymbol&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;Colors&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Black&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; strFontName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; decFontSize&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; esriTextHorizontalAlignment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;esriTHACenter&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; esriTextVerticalAlignment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;esriTVATop&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
ESRI&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Display&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;IScreenDisplay sDisplay &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; activeView&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ScreenDisplay&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
ScreenDisplay&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;StartDrawing&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sDisplay&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;hDC&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;System&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Int16&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;ESRI&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGIS&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Display&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;esriScreenCache&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;esriNoScreenCache&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
txtSymbol&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;GetTextSize&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sDisplay&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;hDC&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; aoTransformation&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; strText&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; w&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; h&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;
ScreenDisplay&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="token function"&gt;FinishDrawing&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;;&lt;/SPAN&gt;‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can this be done&amp;nbsp;using C# ArcGIS Pro SDK ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 08:41:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/drawing-a-text-symbol-on-layoutview/m-p/775271#M832</guid>
      <dc:creator>Vamsi_KrishnaYarramaasu</dc:creator>
      <dc:date>2021-12-12T08:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Drawing a Text Symbol on LayoutView</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/drawing-a-text-symbol-on-layoutview/m-p/775272#M833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Here is the wiki page in the &lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki"&gt;Pro SDK Documentation Repo &lt;/A&gt;that has a bunch of Layout SDK snippets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/Esri/arcgis-pro-sdk/wiki/ProSnippets-Layouts"&gt;ProSnippets: Layout&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Uma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 May 2020 18:30:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/drawing-a-text-symbol-on-layoutview/m-p/775272#M833</guid>
      <dc:creator>UmaHarano</dc:creator>
      <dc:date>2020-05-21T18:30:47Z</dc:date>
    </item>
  </channel>
</rss>

