Open topic with navigation

Replace Method
Replaces text. All positions are 0-based.
Remarks
All positions are 0-based.

C# Syntax

    void Replace(
       string text,
       int fromLine,
       int fromCharPos,
       int toLine,
       int toCharPos
    )

Parameters

text
  The text that replaces the existing text.
fromLine
  The line in which the replacement starts.
fromCharPos
  The character position at which the replacement starts in the first line, inclusive.
toLine
  The line in which the replacement ends.
toCharPos
  The character position at which the replacement ends in the last line, inclusive.