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