Returns the offset of the character at the given location relative
to the first character in the document.
<p>
The return value reflects the character offset that the caret will
be placed at if a mouse click occurred at the specified location.
If the x coordinate of the location is beyond the center of a character
the returned offset will be behind the character.
</p>
@param point the origin of character bounding box relative to
the origin of the widget client area.
@return offset of the character at the given location relative
to the first character in the document.
@exception SWTException <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
</ul>
@exception IllegalArgumentException <ul>
<li>ERROR_NULL_ARGUMENT when point is null</li>
<li>ERROR_INVALID_ARGUMENT when there is no character at the specified location</li>
</ul>
Returns the offset of the character at the given location relative to the first character in the document. <p> The return value reflects the character offset that the caret will be placed at if a mouse click occurred at the specified location. If the x coordinate of the location is beyond the center of a character the returned offset will be behind the character. </p>
@param point the origin of character bounding box relative to the origin of the widget client area. @return offset of the character at the given location relative to the first character in the document. @exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul> @exception IllegalArgumentException <ul> <li>ERROR_NULL_ARGUMENT when point is null</li> <li>ERROR_INVALID_ARGUMENT when there is no character at the specified location</li> </ul>