Enclose your code in the BeginUpdate - EndUpdate method calls to suppress the RichEditControl's visual updates and improve its performance when you perform multiple changes to a document.
The IsUpdateLocked property allows you to determine the RichEditControl's state. If it is locked by the BeginUpdate method, the IsUpdateLocked property returns true.