.. highlightlang:: us .. index:: EdGetLineLen .. _edgetlinelen: EdGetLineLen ============ .. us.tag EdGetLineLen ENGLISH EdGet :ref:`EdGetLineLen` retrieves the length of a line in an editor. .. function:: nLineLen = EdGetLineLen(hEdit) nLineLen = EdGetLineLen(hEdit, nCharIndex) .. us.return **Return Value** *nLineLen* is the length of a line specified by *nCharIndex*. .. us.params **Parameters** .. uparam:: hEdit Identifies the editor. .. uparam:: nCharIndex *nCharIndex* specifies the character index of a character in the line whose length is to be retrieved. If *nCharIndex* is not used, the length of the current line is returned. .. seealso:: :ref:`overview-editors`, :ref:`EdGetLineCount`, :ref:`EdGetText`, :ref:`EdCreate` :sub:`id-341645`