TransactionLevel Property
public int TransactionLevel {get;}
Property Value
This value is zero when no transaction is in progress. The initial value is zero.
StartTransaction will increment this value;
EndTransaction will decrement it. When this value is greater than zero,
CanUndo and
CanRedo will be false, because additional logically related document change events may occur.