public UndoRedoInfo(string text, Win32.POINT scrollPos, int cursorLoc)
 {
     Text = text;
     ScrollPos = scrollPos;
     CursorLocation = cursorLoc;
 }
 /// <summary>
 /// Sends a win32 message to get the scrollbars' position.
 /// </summary>
 /// <returns>a POINT structore containing horizontal and vertical scrollbar position.</returns>
 private unsafe Win32.POINT GetScrollPos()
 {
     Win32.POINT res = new Win32.POINT();
     IntPtr ptr = new IntPtr(&res);
     Win32.SendMessage(Handle, Win32.EM_GETSCROLLPOS, 0, ptr);
     return res;
 }