codejumper的跳转代码

        public void JumpToSource(vsCMPart location = vsCMPart.vsCMPartNavigate)
        {
            TextPoint startPoint = Original.GetStartPoint(location);
            Document openDoc = _appConfig.HookInformation.Dte.ActiveDocument.ProjectItem.Document;
            ((TextSelection) openDoc.Selection).MoveToPoint(startPoint);
            startPoint.TryToShow();
            openDoc.Activate();
        }

 

posted @ 2014-10-15 23:07  shiningrise  阅读(527)  评论(0编辑  收藏  举报
// 侧边栏目录 // https://blog-static.cnblogs.com/files/douzujun/marvin.nav.my1502.css