Table of contents
TOC
折叠目录
展开目录

PrintRanges.ClearAll 方法 (PowerPoint)PrintRanges.ClearAll Method (PowerPoint)

office 365 dev account|上次更新日期: 2018/3/13
|
2 参与人员

清除从PrintRanges集合的所有打印范围。使用PrintRanges集合的Add方法可向集合中添加打印范围。Clears all the print ranges from the PrintRanges collection. Use the Add method of the PrintRanges collection to add print ranges to the collection.

语法Syntax

表达式ClearAllexpression. ClearAll

表达式_一个表示PrintRanges对象的变量。_expression A variable that represents a PrintRanges object.

返回值Return Value

Nothing

示例Example

本示例清除当前演示文稿中所有以前定义的打印范围;创建新的打印范围,其中包含第一张,第三张到第五张,第八张和第九张幻灯片;打印新定义的幻灯片范围;然后清除新定义的打印范围。This example clears any previously defined print ranges in the active presentation; creates new print ranges that contain slide 1, slides 3 through 5, and slides 8 and 9; prints the newly defined slide ranges; and then clears the new print ranges.

With ActivePresentation.PrintOptions

    .RangeType = ppPrintSlideRange

    With .Ranges

        .ClearAll

        .Add 1, 1

        .Add 3, 5

        .Add 8, 9

        .Parent.Parent.PrintOut

        .ClearAll

    End With

End With

另请参阅See also

概念Concepts

PrintRanges 对象PrintRanges Object

© 2018 Microsoft