ITextDocument2::RangeFromPoint2 method

Retrieves the degenerate range at (or nearest to) a particular point on the screen.

Syntax


HRESULT RangeFromPoint2(
  [in]           long x,
  [in]           long y,
  [in]           long Type,
  [out, retval]  ITextRange2 **ppRange
);

Parameters

x [in]

Type: long

The x-coordinate of a point, in screen coordinates.

y [in]

Type: long

The y-coordinate of a point, in screen coordinates.

Type [in]

Type: long

The alignment type of the specified point. For a list of valid values, see ITextRange::GetPoint.

ppRange [out, retval]

Type: ITextRange2**

Return value

Type: HRESULT

If the method succeeds, it returns NOERROR. Otherwise, it returns an HRESULT error code.

Requirements

Minimum supported client

Windows 8 [desktop apps only]

Minimum supported server

Windows Server 2012 [desktop apps only]

Header

Tom.h

DLL

Msftedit.dll

See also

ITextDocument2

 

 

Community Additions

ADD
Show:
© 2014 Microsoft