The Fill command is used to fill the whole file or the current selection with a specified pattern.
Complexity: from constant-time to linear-time (depends on the number of blocks in a current selection).
Pattern Window is used to specify the pattern to fill. Other options are listed below:
Note, that Find All command followed by Fill may be replaced with Replace All command, which will operate faster than these two commands.
Scripts may use the IDocumentView.fillAsync method to execute this command.