<doc>
  <legacy_id>1878</legacy_id>
  <name>selectedLine</name>
  <type>function</type>
  <syntax>
    <example>the selectedLine</example>
    <example>selectedLine()</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
    <synonym>selectedLines</synonym>
  </synonyms>
  <classification>
    <category>User Interaction</category>
  </classification>
  <references>
    <function tag="selectedLoc">selectedLoc Function</function>
    <function tag="selectedChunk">selectedChunk Function</function>
    <function tag="mouseLine">mouseLine Function</function>
    <property tag="hilitedLine">hilitedLine Property</property>
  </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> a <glossary tag="chunk expression">chunk expression</glossary> describing the <keyword tag="line">line</keyword> or <keyword tag="lines">lines</keyword> in the text <keyword tag="selection">selection</keyword>.</summary>
  <examples>
    <example>the selectedLine</example>
    <example>select the selectedLine</example>
  </examples>
  <description>
    <p>Use the <b>selectedLine</b> <control_st tag="function">function</control_st> to determine which <keyword tag="line">line</keyword> the <keyword tag="selection">selection</keyword> or text <glossary tag="insertion point">insertion point</glossary> is in.</p><p/><p><b>Value:</b></p><p>The <b>selectedLine</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> a <glossary tag="chunk expression">chunk expression</glossary> of the form</p><p><code>  line<i> lineNumbe</i>r of field<i> fieldNumber</i></code></p><p>if the text selection is on one line, o<code><i>r</i></code></p><p><code>  line <i>startLine</i> to <i>endLine</i> of field <i>fieldNumber</i></code></p><p>if the text selection crosses multiple lines.</p><p/><p><b>Comments:</b></p><p>A line is defined as a string that's delimited by return characters. A line in a narrow field may wrap around several times, and look like more than one line on screen, but it is still considered a single line.</p><p/><p>If there is no insertion point or text selection, the <b>selectedLine</b> <control_st tag="function">function</control_st> <glossary tag="return">returns</glossary> empty.</p><p/><p>To get a chunk expression describing the location of the selection, use the <b>selectedChunk</b> <control_st tag="function">function</control_st>. To get the <property tag="selected">selected</property> <keyword tag="lines">lines</keyword> in a <glossary tag="list field">list field</glossary> that allows <glossary tag="contiguous">non-contiguous</glossary> selections, use the <property tag="hilitedLine">hilitedLine</property> <glossary tag="property">property</glossary>.</p>
  </description>
</doc>