Find

Method of IDocumentData

Finds text in the document

Return Value

JavaScript

var pbResult = DocumentData.Find(ptStart, strText, dwFlags, pRange);

Visual Basic Script

pbResult = DocumentData.Find ptStart, strText, dwFlags, pRange

C++

CComPtr<IRange> pbResult;
HRESULT hr = DocumentData.Find(ptStart, strText, dwFlags, pRange, &bResult);