PageRangesExtensionsSetPageRangesTPrintSettings Method |
Sets the collection of the page ranges to print.
Namespace:
DotNetBrowser.Print.Settings
Assembly:
DotNetBrowser (in DotNetBrowser.dll) Version: 2.15.1
Syntax public static TPrintSettings SetPageRanges<TPrintSettings>(
this IPageRanges<TPrintSettings> obj,
IReadOnlyCollection<PageRange> pageRanges
)
where TPrintSettings : class, IPrintSettings
Parameters
- obj
- Type: DotNetBrowser.Print.SettingsIPageRangesTPrintSettings
The IPageRangesTPrintSettings implementation. - pageRanges
- Type: System.Collections.GenericIReadOnlyCollectionPageRange
The collection of the page ranges to print.
Type Parameters
- TPrintSettings
- The specific print settings type.
Return Value
Type:
TPrintSettingsThe current print settings instance.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IPageRangesTPrintSettings. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Exception | Condition |
---|
ArgumentException | The collection is null, empty, or contains null objects. |
See Also