
## FindReplaceDirection enumeration

Specifies direction for replace operations.


### Members

| Name | Description |
| --- | --- |
| FORWARD | Matched items are replaced from first to last. |
| BACKWARD | Matched 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).

```python
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

* module [aspose.words.replacing](../)

