FindString
protoTXView:FindString(str, startOffset, options)
Searches for matching text in a word-processing view.
DISCUSSION
- str
- The string to be searched.
- startOffset
- The offset at which the search should start.
- options
- Must be
nil
. Currently the search is not case sensitive.
- return value
- The offset of the matching string in the view. If no match is found,
FindString
returnsnil
.
The
FindString
method searches in a word-processing view for a sequence of characters that matches str. The search begins at startOffset from the beginning of the view and continues until a match is made or the end of the text is reached.Note that
FindString
does not offer wrap-around searching of the text in your view.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help