3 개의 슬라이드가 들어있는 파워 포인트 프리젠 테이션이 있습니다. 각 슬라이드에는 자리 표시자인 텍스트 상자가 있습니다. 하나의 슬라이드에서 텍스트 상자 내용을 바꾸고 싶습니다.파워 포인트 슬라이드의 텍스트 상자에서 텍스트 변경
ODP.ShapeTree tree = slide.Slide.CommonSlideData.ShapeTree;
foreach (ODP.Shape shape in tree.Elements<ODP.Shape>())
{
// Run through all the paragraphs in the document
foreach (ODD.Paragraph paragraph in shape.Descendants().OfType<ODD.Paragraph>())
{
foreach (ODD.Run run in paragraph.Elements<ODD.Run>())
{
if (run.Text.InnerText.Contains("PLACEHOLDER"))
{
run.Text = new ODD.Text("Your new text");
}
}
}
}
명심하는 것이 :
나는 변경할
감사에게
이 작업을 수행 했습니까? 해결책을 게시 할 수 있습니까? –