本文整理匯總了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);
}
}