FindReplaceDirection enumeration

FindReplaceDirection enumeration

Specifies direction for replace operations.

Members

NameDescription
FORWARDMatched items are replaced from first to last.
BACKWARDMatched items are replaced from last back to first.

Examples

Shows how to determine which direction a find-and-replace operation traverses the document in (TextReplacementRecorder).

class TextReplacementRecorder(aw.replacing.IReplacingCallback):

    @property
    def matches(self):
        pass

    def replacing(self, e):
        matches.append(e.match.value)
        return aw.replacing.ReplaceAction.REPLACE

See Also