public UndoRedoFlags(int modificationType)
{
this.IsLastStep = (modificationType & Constants.SC_LASTSTEPINUNDOREDO) > 0;
this.IsMultiLine = (modificationType & Constants.SC_MULTILINEUNDOREDO) > 0;
this.IsMultiStep = (modificationType & Constants.SC_MULTISTEPUNDOREDO) > 0;
this.IsRedo = (modificationType & Constants.SC_PERFORMED_REDO) > 0;
this.IsUndo = (modificationType & Constants.SC_PERFORMED_UNDO) > 0;
}