Contents

search(for:direction:caseSensitive:wrap:)

Searches a document view for a string and highlights it if it is found.

Declaration

func search(for string: String!, direction forward: Bool, caseSensitive caseFlag: Bool, wrap wrapFlag: Bool) -> Bool

Parameters

  • string:

    The search string.

  • forward:

    If True the direction of the search is forward; if False, the direction is backward.

  • caseFlag:

    If True if the search is case sensitive; otherwise, it is not.

  • wrapFlag:

    If True if the search wraps; otherwise, it does not.

Return Value

true if the search is successful; otherwise, false.

Discussion

The search for string begins from the current selection and continues in the direction specified by forward. The search continues across all frames.

See Also

Related Documentation