<?xml version="1.0" encoding="UTF-8"?><?mso-infoPathSolution PIVersion="1.0.0.0" href="http://devinfo/sites/sdk/netengdt/NetEngDtSample/Forms/template.xsn" language="en-us" name="urn:schemas-microsoft-com:office:infopath:NETEngDtSample:" solutionVersion="9.4.0.673" productVersion="12.0.0" ?><?mso-application progid="InfoPath.Document"?><esri_sdk_sample xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-02-10T23:25:53" xmlns:xd="http://schemas.microsoft.com/office/infopath/2003">
  <title>Draw text on a MapControl</title>
  <purpose><div xmlns="http://www.w3.org/1999/xhtml" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-02-10T23:25:53">This draw text sample application demonstrates the splined text rendering capabilities of ArcObjects. When you click the map to track a line, the MapControl method DrawText is used to place the text within the text box along the tracked line. At least two clicks are required for the line and text to appear on the MapControl. </div></purpose>
  <development_license>
    <license>
      <name>Engine Developer Kit</name>
      <extension>
      </extension>
    </license>
  </development_license>
  <deployment_license>
    <license>
      <name>Engine</name>
      <extension>
      </extension>
    </license>
    <license>
      <name>ArcGIS Desktop Basic</name>
      <extension>
      </extension>
    </license>
    <license>
      <name>ArcGIS Desktop Standard</name>
      <extension>
      </extension>
    </license>
    <license>
      <name>ArcGIS Desktop Advanced</name>
      <extension>
      </extension>
    </license>
  </deployment_license>
  <min_version>10.0</min_version>
  <min_sp/>
  <max_version>
  </max_version>
  <max_sp/>
  <data_paths>
    <data_path/>
  </data_paths>
  <requirements>
    <requires>
    </requires>
  </requirements>
  <file_section>
    <files lang="CSharp">
      <file>
        <filename>AssemblyInfo.cs</filename>
        <description>Assembly information. </description>
        <viewable_code>false</viewable_code>
      </file>
      <file>
        <filename>DrawText.cs</filename>
        <description>Form file. </description>
        <viewable_code>true</viewable_code>
      </file>
    </files>
    <files lang="VBNet">
      <file>
        <filename>AssemblyInfo.vb</filename>
        <description>Assembly information. </description>
        <viewable_code>false</viewable_code>
      </file>
      <file>
        <filename>DrawText.vb</filename>
        <description>Form file. </description>
        <viewable_code>true</viewable_code>
      </file>
    </files>
  </file_section>
  <how_to_use_section>
    <how_to_use>
      <how_to_use_steps>
        <step>Type the text to annotate the map. </step>
        <step>Use the left mouse button to trace a line on the map, and use the right mouse button to zoom in.</step>
      </how_to_use_steps>
    </how_to_use>
  </how_to_use_section>
  <additional_information><div xmlns="http://www.w3.org/1999/xhtml" xmlns:my="http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-02-10T23:25:53">The application uses the AddLayerFromFile method to load the world continents sample data, which is then symbolized. The OnClick event either uses the TrackRectangle method to zoom in (if the right or middle mouse button has been used) or adds the new point to the line and updates the display through the Refresh method. The Refresh method is used to draw the esriViewForeground, thereby removing any previously drawn annotation and triggering the MapControl's OnAfterDraw event. The OnAfterDraw event uses the DrawShape and DrawText methods to draw the line and text onto the MapControl in response to the refresh of the esriViewForeground phase. </div></additional_information><related_topics>
    <topic>
      <topic_display>MapControl class</topic_display>
      <topic_link>esriControls/MapControl.htm</topic_link>
    </topic>
    <topic>
      <topic_display>IMapControl2 interface</topic_display>
      <topic_link>esriControls/IMapControl2.htm</topic_link>
    </topic>
  </related_topics>
  <content_area_tags>
    <tag>Controls</tag>
    <tag>Cartography, Mapping, &amp; 2D Display</tag>
  </content_area_tags>
  <guid>F54BEB08-DA6E-475a-8163-92439A754D06</guid>
  <content_management>
    <owner>Mary Harvey</owner>
    <tech_reviewer>Gayle Young</tech_reviewer>
    <status>SDK inclusion completed</status>
    <requested_tocs>
      <desktop>false</desktop>
      <engine>true</engine>
      <server>false</server>
      <net_ide_integration>false</net_ide_integration>
      <xo>false</xo>
    </requested_tocs>
    <applied_tocs>
      <desktop>false</desktop>
      <engine>true</engine>
      <server>false</server>
      <net_ide_integration>false</net_ide_integration>
      <xo>false</xo>
    </applied_tocs>
    <last_updated_date>2010-03-23</last_updated_date>
    <last_updated_time>15:49:00</last_updated_time>
    <copyediting>
									<last_copyedit_date>2010-03-23</last_copyedit_date>
									<last_copyedit_time>15:48:52</last_copyedit_time>
									<copyeditor>linn</copyeditor>
								</copyediting><edits>
      <editing_section>
        <editor_name>kyli4140</editor_name>
        <edit_date>2008-11-17</edit_date>
        <edit_time>15:38:41</edit_time>
        <edit_notes>Form brought into StarTeam. For previous notes and history see the SharePoint site at <a href="" xmlns="http://www.w3.org/1999/xhtml">http://devinfo/sites/ArcGISNetSDK/default.aspx</a> as well as the files in the ArcObjects VSS in Samples NET.</edit_notes>
      </editing_section>
    <editing_section>
									<editor_name>linn</editor_name>
									<edit_date>2010-03-23</edit_date>
									<edit_time>15:48:30</edit_time>
									<edit_notes><ul xmlns="http://www.w3.org/1999/xhtml" style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px" type="disc">
<li>Edited.</li>
<li>Already in the SDK.</li></ul></edit_notes>
								</editing_section></edits>
  </content_management>
  <current_user>linn</current_user>
  <sdk>NETEngDt</sdk>
  <doc_type>Sample</doc_type>
</esri_sdk_sample>