<?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 IGraphicsContainer.BringForward example in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/igraphicscontainer-bringforward-example/m-p/342623#M9002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anyone point me to an example that uses the BringForward method of IGraphicsContainer? I've searched high and low and haven't seen anything. I've tried looping through all elements, selecting the mapframe that I want with IGraphicsContainerSelect and then submitting SelectedElements in the BringForward call but that doesn't seem to do anything.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Mar 2012 16:26:51 GMT</pubDate>
    <dc:creator>SpencerGardner</dc:creator>
    <dc:date>2012-03-06T16:26:51Z</dc:date>
    <item>
      <title>IGraphicsContainer.BringForward example</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/igraphicscontainer-bringforward-example/m-p/342623#M9002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anyone point me to an example that uses the BringForward method of IGraphicsContainer? I've searched high and low and haven't seen anything. I've tried looping through all elements, selecting the mapframe that I want with IGraphicsContainerSelect and then submitting SelectedElements in the BringForward call but that doesn't seem to do anything.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2012 16:26:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/igraphicscontainer-bringforward-example/m-p/342623#M9002</guid>
      <dc:creator>SpencerGardner</dc:creator>
      <dc:date>2012-03-06T16:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: IGraphicsContainer.BringForward example</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/igraphicscontainer-bringforward-example/m-p/342624#M9003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't know of an online sample, but this code worked for me in ArcGIS 9.2 VBA.&amp;nbsp; It just sends forward the first map it finds in the layout.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&amp;nbsp; Dim d As IMxDocument
&amp;nbsp; Set d = ThisDocument
&amp;nbsp; 
&amp;nbsp; Dim gc As IGraphicsContainer
&amp;nbsp; Dim gcs As IGraphicsContainerSelect
&amp;nbsp; Set gc = d.PageLayout
&amp;nbsp; Set gcs = gc
&amp;nbsp; 
&amp;nbsp; gcs.UnselectAllElements
&amp;nbsp; 
&amp;nbsp; gc.Reset
&amp;nbsp; Dim e As IElement
&amp;nbsp; Set e = gc.Next
&amp;nbsp; 
&amp;nbsp; Do Until e Is Nothing
&amp;nbsp;&amp;nbsp;&amp;nbsp; If TypeOf e Is IMapFrame Then
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gcs.SelectElement e
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gc.BringForward g.SelectedElements
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Exit Do
&amp;nbsp;&amp;nbsp;&amp;nbsp; End If
&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; Set e = gc.Next
&amp;nbsp; Loop
&amp;nbsp; 
&amp;nbsp; d.ActiveView.Refresh
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 16:09:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/igraphicscontainer-bringforward-example/m-p/342624#M9003</guid>
      <dc:creator>TimWhiteaker</dc:creator>
      <dc:date>2021-12-11T16:09:45Z</dc:date>
    </item>
  </channel>
</rss>

