ITextRange2::Find method (tom.h)

Searches for math inline functions in text as specified by a source range.

Syntax

HRESULT Find(
  [in]  ITextRange2 *pRange,
  [in]  long        Count,
  [in]  long        Flags,
  [out] long        *pDelta
);

Parameters

[in] pRange

Type: ITextRange2*

The formatted text to find in the range's text.

[in] Count

Type: long

The number of characters to search through.

[in] Flags

Type: long

Flags that control the search as defined for ITextRange::FindText.

[out] pDelta

Type: long*

A count of the number of characters bypassed.

Return value

Type: HRESULT

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

Remarks

If the string is found, and the math inline functions, if any, are the same as their counterparts in the source range, the range limits are changed to be those of the matched string and length is set equal to the length of the string.

If the string isn't found, the range remains unchanged and length is set equal to 0.

Requirements

Requirement Value
Minimum supported client Windows 8 [desktop apps only]
Minimum supported server Windows Server 2012 [desktop apps only]
Target Platform Windows
Header tom.h
DLL Msftedit.dll

See also

ITextRange2