2017-03-23 9 views
0

, 내가의 특정 슬라이드로 이동 관리 슬라이드 쇼-보기 using code from this question :탐색 추가 기능에서 다음 코드를 사용하여

Microsoft.Office.Interop.PowerPoint.Presentation objPres; 
Microsoft.Office.Interop.PowerPoint.SlideShowView objSlideShowView; 

objPres = Globals.ThisAddIn.Application.ActivePresentation; 
objPres.SlideShowSettings.ShowPresenterView = MsoTriState.msoFalse; 
objPres.SlideShowSettings.Run(); 
objSlideShowView = objPres.SlideShowWindow.View;     

int index = Int32.Parse(clickedIssue.ToolTip.ToString());    

objSlideShowView.GotoSlide(index); 

하지만 내가 실제로 원하는 것은 그것이로 이동한다는 것입니다 Normal-View의 특정 슬라이드. Globals.ThisAddIn.Application.ActiveWindow.Application.ActiveWindow.View.Slide을 사용하여 현재 선택된 슬라이드를 가져올 수 있지만 코드를 사용하여 해당 참조를 어떻게 변경합니까? 이 코드를 사용하여 해결

답변

0

:

the code from this answer와 동일
Microsoft.Office.Interop.PowerPoint.Presentation objPres; 
int index = Int32.Parse(clickedIssue.ToolTip.ToString()); 

objPres = Globals.ThisAddIn.Application.ActivePresentation; 
var slides = objPres.Slides; 

slides[index].Select(); 

.