當前位置: 首頁>>代碼示例>>C#>>正文


C# PptxDocumentProcessor.IsSlideHidden方法代碼示例

本文整理匯總了C#中Workshare.Fcs.Lite.OfficeOpenXML.PptxDocumentProcessor.IsSlideHidden方法的典型用法代碼示例。如果您正苦於以下問題:C# PptxDocumentProcessor.IsSlideHidden方法的具體用法?C# PptxDocumentProcessor.IsSlideHidden怎麽用?C# PptxDocumentProcessor.IsSlideHidden使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Workshare.Fcs.Lite.OfficeOpenXML.PptxDocumentProcessor的用法示例。


在下文中一共展示了PptxDocumentProcessor.IsSlideHidden方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: TestHiddenSlideLookupByTargetName

 public void TestHiddenSlideLookupByTargetName()
 {
     string TEST_PPT = TESTFILE_DIR + "test002.pptx";
     try
     {
         using (PptxDocumentProcessor pdp = new PptxDocumentProcessor(File.Open(TEST_PPT, FileMode.Open)))
         {
             using (pdp.Output = File.Open(TEST_OUTPUT_FILE, FileMode.CreateNew))
             {
                 pdp.Process(DocumentProcessingActions.PassThrough);
             }
             Assert.IsFalse(pdp.IsSlideHidden("burble"), "Invalid target so can't be hidden");
             Assert.IsFalse(pdp.IsSlideHidden("slides/slide1.xml"), "Only slide 1 should be visible");
             Assert.IsTrue(pdp.IsSlideHidden("slides/slide2.xml"), "Only slide 1 should be visible");
             Assert.IsTrue(pdp.IsSlideHidden("slides/slide3.xml"), "Only slide 1 should be visible");
         }
     }
     finally
     {
         File.Delete(TEST_OUTPUT_FILE);
     }
 }
開發者ID:killbug2004,項目名稱:WSProf,代碼行數:22,代碼來源:TestPptxSlidePartFilter.cs

示例2: TestHiddenSlideLookup

 public void TestHiddenSlideLookup()
 {
     string TEST_PPT = TESTFILE_DIR + "test002.pptx";
     try
     {
         using (PptxDocumentProcessor pdp = new PptxDocumentProcessor(File.Open(TEST_PPT, FileMode.Open)))
         {
             using (pdp.Output = File.Open(TEST_OUTPUT_FILE, FileMode.CreateNew))
             {
                 pdp.Process(DocumentProcessingActions.PassThrough);
             }
             Assert.IsFalse(pdp.IsSlideHidden(0), "Uses number not index so can't be hidden");
             Assert.IsFalse(pdp.IsSlideHidden(1), "Only slide 1 should be visible");
             Assert.IsTrue(pdp.IsSlideHidden(2), "Only slide 1 should be visible");
             Assert.IsTrue(pdp.IsSlideHidden(3), "Only slide 1 should be visible");
             Assert.IsFalse(pdp.IsSlideHidden(4), "Value out of range so can't be hidden");
         }
     }
     finally
     {
         File.Delete(TEST_OUTPUT_FILE);
     }
 }
開發者ID:killbug2004,項目名稱:WSProf,代碼行數:23,代碼來源:TestPptxSlidePartFilter.cs


注:本文中的Workshare.Fcs.Lite.OfficeOpenXML.PptxDocumentProcessor.IsSlideHidden方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。