<doc>
  <legacy_id>1499</legacy_id>
  <name>selectedLoc</name>
  <type>function</type>
  <syntax>
    <example>the selectedLoc</example>
    <example>selectedLoc()</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>User Interaction</category>
  </classification>
  <references>
    <function tag="clickLoc">clickLoc Function</function>
    <function tag="foundLoc">foundLoc Function</function>
    <function tag="mouseLoc">mouseLoc Function</function>
    <function tag="selectedField">selectedField Function</function>
    <function tag="selectedLine">selectedLine Function</function>
    <function tag="selectedText">selectedText Function</function>
    <keyword tag="selection">selection Keyword</keyword>
    <property tag="topLeft">topLeft Property</property>
    <function tag="localLoc">localLoc Function</function>
    <function tag="selectedChunk">selectedChunk Function</function>
    <command tag="select">select Command</command>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <mac/>
    <windows/>
    <linux/>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary><glossary tag="return">Returns</glossary> the location of the top left corner of the text <keyword tag="selection">selection</keyword>.</summary>
  <examples>
    <example>the selectedLoc</example>
    <example>if the selectedLoc is not within the rect of me then unScrollField</example>
  </examples>
  <description>
    <p>Use the <b>selectedLoc</b> <control_st tag="function">function</control_st> to determine the location in the <glossary tag="stack window">stack window</glossary> where the text <keyword tag="selection">selection</keyword> appears.</p><p/><p><b>Value:</b></p><p>The <b>selectedLoc</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> two positive <glossary tag="integer">integers</glossary> separated by a comma.</p><p/><p><b>Comments:</b></p><p>When text is selected, a box around it is filled with the <b>hiliteColor</b> or <property tag="hilitePattern">hilitePattern</property>. The first <keyword tag="item">item</keyword> of the <glossary tag="return value">return value</glossary> is the horizontal distance in <property tag="pixels">pixels</property> from the left edge of the stack to the left edge of this box. The second <keyword tag="item">item</keyword> of the <glossary tag="return value">return value</glossary> is the vertical distance from the top edge of the <object tag="stack">stack</object> to the top of the box.</p><p/><p>If the text selection is in a scrolling field and the selection is not in the visible portion of the field, the <b>selectedLoc</b> <control_st tag="function">function</control_st> is adjusted by the amount of scroll.</p>
  </description>
</doc>