add-in (3) 썸네일형 리스트형 MenuBar에 추가하기 // If the menu already exists, remove it. private void CheckIfMenuBarExists() { try { //Menu가 있는지 체크 해서 있으면 지워버렷!! CommandBarPopup foundMenu = (CommandBarPopup)this.Application.CommandBars.ActiveMenuBar.FindControl(MsoControlType.msoControlPopup, System.Type.Missing, menuTag, true, true); if (foundMenu != null) { foundMenu.Delete(true); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }.. 도구모음 만들기 // Create the command bar variables at the class level. Office.CommandBar commandBar; Office.CommandBarButton firstButton; Office.CommandBarButton secondButton; private void AddToolbar() { try { commandBar = Application.CommandBars["Test"]; } catch (ArgumentException e) { // Toolbar named Test does not exist so we should create it. } if (commandBar == null) { // Add a commandbar named Test. comm.. 새슬라이드에 자동으로 텍스트 박스가 들어가게 만들기 PresentationNewSlide 이벤트 핸들러에서 void Application_PresentationNewSlide(PowerPoint.Slide Sld) { PowerPoint.Shape textBox = Sld.Shapes.AddTextbox( Office.MsoTextOrientation.msoTextOrientationHorizontal, 0, 0, 500, 50); textBox.TextFrame.TextRange.InsertAfter("이글이 추가가 됩니다.."); } 이전 1 다음