private void ReleaseCaptureAndFinishManip(IVdShape sh) { sh.UnderlyingControl().ReleaseMouseCapture(); sh.UnderlyingControl().ReleaseAllTouchCaptures(); sh.FinishManip(); //if the moved shape is a caption of caption host, save caption host to save new relative position of caption var capHost = DocTools.GetCaptionHost(_doc.GetShapes(), sh); if (capHost != null) { capHost.CapMgr().UpdateRelatives(); SendSyncState(capHost); } }
void ReleaseCaptureAndFinishManip(IVdShape sh) { sh.UnderlyingControl().ReleaseMouseCapture(); sh.UnderlyingControl().ReleaseAllTouchCaptures(); sh.FinishManip(); }