Interface nsIPaperType

Hierarchy

Properties

height: number

The height of the paper assuming portrait orientation, in points. That is, the length of the longer edges of the paper.

id: string

The internal name of the paper (a fixed, non-localized ID). (For CUPS, this is the PWG-standardized name as used internally by CUPS; on Windows, it is the integer paper ID as a string.)

name: string

The human-readable (potentially localized) name of the paper.

unwriteableMargin: any

The Promise resolves with an nsIPaperMargin object. The margin widths contained in that object's top/bottom/left/right properties are relative to the paper in portrait orientation. That is, top and bottom are the margins for the short edges, and left and right are the margins for the long edges.

width: number

The width of the paper assuming portrait orientation, in points. That is, the length of the shorter edges of the paper.

Methods

  • Increases the reference count for this interface. The associated instance will not be deleted unless the reference count is returned to zero.

    Returns

    The resulting reference count.

    Returns number

  • Parameters

    • aIID: object
    • Optional aInstancePtr: object

    Returns any

  • A run time mechanism for interface discovery.

    Returns

    NS_OK if the interface is supported by the associated instance, NS_NOINTERFACE if it is not.

    aInstancePtr must not be null.

    Parameters

    • aIID: object

      [in] A requested interface IID

    • aInstancePtr: object

      [out] A pointer to an interface pointer to receive the result.

    Returns void

  • Decreases the reference count for this interface. Generally, if the reference count returns to zero, the associated instance is deleted.

    Returns

    The resulting reference count.

    Returns number

Generated using TypeDoc