| Version: 3.3.1

Public Member Functions | Public Attributes | List of all members
wxPrintPageRange Class Reference
Class List by Category » Printing Framework | Class List by Category » Data Structures

`#include <wx/cmndata.h>`

## Detailed Description

This class represents a range of pages to be printed.

##

Library: wxCore
Category: Printing Framework, Data Structures

See also
  wxPrintDialogData

Since
  3.3.0

## Public Member Functions
| wxPrintPageRange ()=default
| Default constructor creates an uninitialized range. More...
| wxPrintPageRange (int from, int to)
| Constructor creating a range from from to to (inclusive). More...
bool | IsValid () const
| Return true if both components are initialized correctly. More...
int | GetNumberOfPages () const
| Return the number of pages in this range if it is valid. More...

## Public Attributes
int | fromPage = 0
int | toPage = 0

## Constructor & Destructor Documentation

## ◆ wxPrintPageRange() [1/2]

wxPrintPageRange::wxPrintPageRange | ( |  | ) |
| default

Default constructor creates an uninitialized range.

## ◆ wxPrintPageRange() [2/2]

wxPrintPageRange::wxPrintPageRange | ( | int | from,
|  | int | to
| ) |  |

Constructor creating a range from from to to (inclusive).

Parameters must be valid, i.e. from must be strictly positive and to must be greater or equal to from.

## Member Function Documentation

## ◆ GetNumberOfPages()

int wxPrintPageRange::GetNumberOfPages | ( |  | ) | const

Return the number of pages in this range if it is valid.

## ◆ IsValid()

bool wxPrintPageRange::IsValid | ( |  | ) | const

Return true if both components are initialized correctly.

## Member Data Documentation

## ◆ fromPage

int wxPrintPageRange::fromPage = 0

## ◆ toPage

int wxPrintPageRange::toPage = 0