Deletes a single line of code or a specified range of lines in a TextBuffer object.
Syntax
Sub DeleteLines(StartLine As Long, [Count As Long = 1])
This syntax has these parts:
Part | Description |
StartLine | Required Long value indicating the first line in the range to be deleted. |
Count | Optional Long value indicating the number of lines, beginning with the line specified in StartLine , to be deleted. The default is 1. |
Remarks
If the number of lines specified in Count is greater than the lines present beginning at StartLine, then this method deletes from StartLine to the end of the buffer.