1. using cdrapp = Corel.Interop.VGCore.Application;
    2. using corel = Corel.Interop.VGCore;
    3. public static cdrapp capp;
    4. capp.ActiveDocument.BeginCommandGroup("开始记录操作");//记录操作
    5. capp.Optimization = true;//应用程序优化,阻止界面刷新
    6. capp.ActiveDocument.Unit = corel.cdrUnit.cdrMillimeter;//设置文档单位
    7. capp.ActiveDocument.ReferencePoint = corel.cdrReferencePoint.cdrCenter;//设置参考点为中心点
    8. .
    9. .
    10. .
    11. capp.ActiveDocument.EndCommandGroup();//结束记录操作
    12. capp.Application.Optimization = false; //恢复界面刷新
    13. capp.ActiveWindow.Refresh(); //刷新当前界面