Partager via


PrintOptions.RangeType Property

Returns or sets the type of print range for the presentation. Read/write.

Namespace:  Microsoft.Office.Interop.PowerPoint
Assembly:  Microsoft.Office.Interop.PowerPoint (in Microsoft.Office.Interop.PowerPoint.dll)

Syntax

'Declaration
Property RangeType As PpPrintRangeType
    Get
    Set
'Usage
Dim instance As PrintOptions
Dim value As PpPrintRangeType

value = instance.RangeType

instance.RangeType = value
PpPrintRangeType RangeType { get; set; }

Property Value

Type: Microsoft.Office.Interop.PowerPoint.PpPrintRangeType

Remarks

The value of the RangeType property can be one of the following PpSlideShowRangeType constants:

ppShowAll

ppShowNamedSlideShow

ppShowSlideRange

To print the slides ranges you've defined in the PrintRanges collection, you must first set the RangeType property to ppPrintSlideRange. Setting RangeType to anything other than ppPrintSlideRange means that the ranges you've defined in the PrintRanges collection won't be applied. However, this doesn't affect the contents of the PrintRanges collection in any way. That is, if you define some print ranges, set the RangeType property to a value other than ppPrintSlideRange, and then later set RangeType back to ppPrintSlideRange, the print ranges you defined before will remain unchanged.

Specifying a value for the To and From arguments of the PrintOut(Int32, Int32, String, Int32, MsoTriState) method sets the value of this property.

See Also

Reference

PrintOptions Interface

PrintOptions Members

Microsoft.Office.Interop.PowerPoint Namespace