本文整理汇总了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);
}
}
示例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);
}
}