Clear Undo History

Topics: Developer Forum, User Forum
Nov 16, 2009 at 4:32 PM

Hi,

Is there a way to clear the undo history in the control? I'm re-using it to display different things, and in-between each load I want to clear the undo history. Is that possible with having to create a new instance of the control each time?

 

Thanks.

Developer
Nov 17, 2009 at 1:08 PM
Edited Nov 17, 2009 at 1:08 PM

Hi,

have a look at the UndoRedo Property of ScintillaNET there is a Method called EmptyUndoBuffer

Best Regards

Klingel

Nov 17, 2009 at 1:42 PM

Awesome. Many Thanks.

 

Btw, is there any documentation on the control's properties and methods?

Developer
Nov 17, 2009 at 2:03 PM

I'm not sure but I guess there is currently only the Documentation of the C++ Component

http://www.scintilla.org/ScintillaDoc.html

Or just click on the Documentation Tab here in codeplex to see what's there ;-)

Nov 17, 2009 at 2:19 PM

Yeah I looked at the Documentation tab, there's some good info in there, wish there were more.

But thanks, I'm going to start looking at the Scintilla documentation.