<doc>
  <legacy_id>1991</legacy_id>
  <name>textHeightSum</name>
  <type>function</type>
  <syntax>
    <example>the textHeightSum of <i>object</i></example>
    <example>textHeightSum(<i>object</i>)</example>
  </syntax>
  <library></library>
  <objects>
  </objects>
  <synonyms>
  </synonyms>
  <classification>
    <category>Appearance &amp; Positioning</category>
  </classification>
  <references>
    <property tag="formattedHeight">formattedHeight Property</property>
    <property tag="formattedWidth">formattedWidth Property</property>
    <property tag="pageHeights">pageHeights Property</property>
    <property tag="textHeight">textHeight Property</property>
  </references>
  <history>
    <introduced version="1.0">Added.</introduced>
  </history>
  <platforms>
    <ios/>
    <android/>
  </platforms>
  <classes>
    <desktop/>
    <server/>
    <web/>
    <mobile/>
  </classes>
  <security>
  </security>
  <summary><glossary tag="return">Returns</glossary> the total height of the text in a <keyword tag="field">field</keyword> or <keyword tag="button">button</keyword>.</summary>
  <examples>
    <example>the textHeightSum of field "Comments"</example>
    <example>if the textHeightSum of group 1 &gt; the height of this card then expandCd</example>
  </examples>
  <description>
    <p>Use the <b>textHeightSum</b> <control_st tag="function">function</control_st> to determine how much vertical space a <glossary tag="field">field's</glossary> or <glossary tag="button">button's</glossary> text requires.</p><p/><p><b>Parameters:</b></p><p>The <i>object</i> is a <keyword tag="field">field</keyword>, <keyword tag="button">button</keyword>, <keyword tag="card">card</keyword>, or <command tag="group">group</command>.</p><p/><p><b>Value:</b></p><p>The <b>textHeightSum</b> <glossary tag="return">returns</glossary> a positive <keyword tag="integer">integer</keyword>.</p><p/><p><b>Comments:</b></p><p>This function exists for compatibility with imported SuperCard projects. You can use the <b>formattedHeight</b> <glossary tag="property">property</glossary> to find the height of the text in a <keyword tag="field">field</keyword> or <keyword tag="button">button</keyword>.</p><p/><p>If the <i>object</i> is a <keyword tag="button">button</keyword> or <keyword tag="field">field</keyword>, the <b>textHeightSum</b> <glossary tag="return">returns</glossary> the number of vertical <property tag="pixels">pixels</property> needed to display all the text at the <glossary tag="field">field's</glossary> current width. If the <i>object</i> is a <keyword tag="card">card</keyword> or <command tag="group">group</command>, the <b>textHeightSum</b> <glossary tag="return">returns</glossary> the number of vertical <property tag="pixels">pixels</property> needed to display all the <glossary tag="object">objects</glossary> in the <keyword tag="card">card</keyword> or <command tag="group">group</command>.</p>
  </description>
</doc>