Contents

PMGetOrientation(_:_:)

Obtains the current setting for page orientation.

Declaration

func PMGetOrientation(_ pageFormat: PMPageFormat, _ orientation: UnsafeMutablePointer<PMOrientation>) -> OSStatus

Parameters

  • pageFormat:

    The page format object whose orientation you want to obtain.

  • orientation:

    A pointer to your PMOrientation variable. On return, the variable contains a constant value indicating the page orientation. Supported values are:

    • kPMPortrait

    • kPMLandscape

    • kPMReversePortrait (supported in macOS 10.5 and later)

    • kPMReverseLandscape

    See Pmorientation for a complete description of the page orientation constants.

Return Value

A result code. See Result Codes.

See Also

Accessing Data in Page Format Objects