Article | 60000282 |
Type | HowTo |
Product | Engine |
Version | 6 |
Date Added | 10/24/2007 |
Submitted by | PDHelly |
Keywords |
You can use the onUndoStoreValue of the vdDocument event and when the ViewSize or ViewCenter changes (this happens with zoom and/or pan) then set the Cancel to true. Like :
private void Form1_Load(object sender, EventArgs e)void ActiveDocument_OnUndoStoreValue(object sender, bool isRedo, object propObject, string propName, object value, ref bool Cancel)
{
if (propName.ToLower() == "viewcenter" || propName.ToLower() == "viewsize")
{ // zoom & pan change ViewCenter and ViewSize
Cancel = true; // This will not write to the UNDO the pan/zoom actions
}
}