IPXC_PageText::HitTest Method
From PDF XChange PDF SDK
m (Automatic page editing by robot) |
|||
(One intermediate revision by one other user not shown) | |||
Line 5: | Line 5: | ||
{{ToReview}} | {{ToReview}} | ||
− | Gets line index by the given point on page. Will return -1 when no lines are in point's | + | Gets line index by the given point on page. Will return -1 when no lines are in the point's area. |
== Syntax == | == Syntax == | ||
<pre class="brush:cpp;gutter:false">HRESULT HitTest([in] PXC_PointF* stPosOnPage, | <pre class="brush:cpp;gutter:false">HRESULT HitTest([in] PXC_PointF* stPosOnPage, | ||
[in] float nHitLineDelta, | [in] float nHitLineDelta, | ||
− | + | [in] VARIANT_BOOL bGetNearestIfFail, | |
[out] LONG* nLineIndex);</pre> | [out] LONG* nLineIndex);</pre> | ||
Line 19: | Line 19: | ||
:[in] Value of float containing the delta value. When specified, it will check the area near the point that exeeds to the given delta value. | :[in] Value of float containing the delta value. When specified, it will check the area near the point that exeeds to the given delta value. | ||
;bGetNearestIfFail | ;bGetNearestIfFail | ||
− | : Value of VARIANT_BOOL representing whether the nearest line should be searched for if none are in the point area. | + | :[in] Value of VARIANT_BOOL representing whether the nearest line should be searched for if none are in the point area. |
;nLineIndex | ;nLineIndex | ||
:[out] Pointer to LONG containing the resulting line index. | :[out] Pointer to LONG containing the resulting line index. |
Latest revision as of 23:48, 22 July 2018
Gets line index by the given point on page. Will return -1 when no lines are in the point's area.
Syntax
HRESULT HitTest([in] PXC_PointF* stPosOnPage, [in] float nHitLineDelta, [in] VARIANT_BOOL bGetNearestIfFail, [out] LONG* nLineIndex);
Parameters
- stPosOnPage
- [in] Pointer to PXC_PointF containing the point on page that needs to be checked.
- nHitLineDelta
- [in] Value of float containing the delta value. When specified, it will check the area near the point that exeeds to the given delta value.
- bGetNearestIfFail
- [in] Value of VARIANT_BOOL representing whether the nearest line should be searched for if none are in the point area.
- nLineIndex
- [out] Pointer to LONG containing the resulting line index.
Return Value
Returns S_OK if operation was successful or error code in other cases.