0
C#을 사용하여 파워 포인트의 특정 슬라이드에서 이미지를 삭제하는 코드 작성에 도움을 주시겠습니까?C# 코드를 사용하여 파워 포인트 슬라이드에서 데이터를 삭제하는 방법
C#을 사용하여 파워 포인트의 특정 슬라이드에서 이미지를 삭제하는 코드 작성에 도움을 주시겠습니까?C# 코드를 사용하여 파워 포인트 슬라이드에서 데이터를 삭제하는 방법
Visual Studio 2008을 사용하는 경우 PowerPoint 추가 기능 템플릿을 선택하십시오.
public partial class ThisAddIn
{//this is the event of the startup of the powerpoint
private void ThisAddIn_Startup(object sender, System.EventArgs e)
{//this is the event that will trigger when you select anything in you presentation
this.Application.WindowSelectionChange += new Microsoft.Office.Interop.PowerPoint.EApplication_WindowSelectionChangeEventHandler(Application_WindowSelectionChange);
}
void Application_WindowSelectionChange(Microsoft.Office.Interop.PowerPoint.Selection Sel)
{
//here you will delete the selected item
Sel.Delete();
}
하지만 난 당신이 추가 기능 당신은 당신이 PPT에서 아무것도를 선택할 때이 코드가 작동 정확히
원하는 것을 달성 할 수 있도록 더 많은 마이크로 소프트에 읽어 보는 것이 좋습니다. 하지만 난 슬라이드 이름이나 슬라이드 번호를 기반으로 슬라이드를 삭제하려면 – Himaja
그건 당신이 "특정 슬라이드에서 이미지를 삭제하는 코드"를 원했던 것이 아닙니다. –