use_legacy_order property

FindReplaceOptions.use_legacy_order property

True indicates that a text search is performed sequentially from top to bottom considering the text boxes. Default value is False.

@property
def use_legacy_order(self) -> bool:
    ...

@use_legacy_order.setter
def use_legacy_order(self, value: bool):
    ...

Examples

Shows how to change the searching order of nodes when performing a find-and-replace text operation (TextReplacementTracker).

class TextReplacementTracker(aw.replacing.IReplacingCallback):

    @property
    def matches(self):
        pass

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

See Also