direction property

FindReplaceOptions.direction property

Selects direction for replace. Default value is FindReplaceDirection.FORWARD.

@property
def direction(self) -> aspose.words.replacing.FindReplaceDirection:
    ...

@direction.setter
def direction(self, value: aspose.words.replacing.FindReplaceDirection):
    ...

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