The Modified property is only set to true after a user interaction through mouse or keyboard. When inserting a line, the modified property is not changed, because you already know it is modified.
I would like to suggest that you update the documentation to reflect this, Although your point is technically correct, it would be a great convenience if the control tracked modifications automatically regardless of how the text was inserted or deleted.