Copying an entire textual region can be achieved by either copying the contents as one large textual segment or by using a for loop to copy each textual line individually. An example of each method is shown below:
In the above example "left of" returns the column number of the first column in the textual region, "top of" returns the line number of the first line in the textual region, "right of" returns the last column of the longest line in the textual region, and "bottom of" returns the line number of the last line of test in the textual region. Since "left of" and "top of" are always 1, you can substitute in the integer value 1 for these functions.