###User Defined Function###
_GUICtrlEdit_LineFromChar

###Description###
Retrieves the index of the line that contains the specified character index

###Syntax###
#include <GuiEdit.au3>
_GUICtrlEdit_LineFromChar ( $hWnd [, $iIndex = -1] )


###Parameters###
@@ParamTable@@
$hWnd
	Control ID/Handle to the control
$iIndex
	[optional] The character index of the character contained in the line whose number is to be retrieved
@@End@@

###ReturnValue###
Returns the 0-based line number of the line containing the character index specified by $iIndex.


###Remarks###
If $iIndex is 1, <a href="_GUICtrlEdit_LineFromChar.htm">_GUICtrlEdit_LineFromChar()</a> retrieves either the line number of the current line (the line containing the caret) or, if there is a selection, the line number of the line containing the beginning of the selection.


###Related###


###Example###
@@IncludeExample@@
