# Interface ICefPrintSettings

Description
Hierarchy
Methods
Properties

## Unit

uCEFInterfaces

## Declaration

`type ICefPrintSettings = interface(ICefBaseRefCounted)`

## Description

Interface representing print settings.

UNKNOWN

<see href="https://bitbucket.org/chromiumembedded/cef/src/master/include/capi/cef_print_settings_capi.h">CEF source file: /include/capi/cef_print_settings_capi.h (cef_print_settings_t))

## Hierarchy

- IInterface
- ICefBaseRefCounted
- ICefPrintSettings

## Overview

### Methods

Public | `function IsValid: Boolean;`
Public | `function IsReadOnly: Boolean;`
Public | `procedure SetOrientation(landscape: Boolean);`
Public | `function IsLandscape: Boolean;`
Public | `procedure SetPrinterPrintableArea(const physicalSizeDeviceUnits: PCefSize; const printableAreaDeviceUnits: PCefRect; landscapeNeedsFlip: Boolean);`
Public | `procedure SetDeviceName(const name: ustring);`
Public | `function GetDeviceName: ustring;`
Public | `procedure SetDpi(dpi: Integer);`
Public | `function GetDpi: Integer;`
Public | `procedure SetPageRanges(const ranges: TCefRangeArray);`
Public | `function GetPageRangesCount: NativeUInt;`
Public | `procedure GetPageRanges(out ranges: TCefRangeArray);`
Public | `procedure SetSelectionOnly(selectionOnly: Boolean);`
Public | `function IsSelectionOnly: Boolean;`
Public | `procedure SetCollate(collate: Boolean);`
Public | `function WillCollate: Boolean;`
Public | `procedure SetColorModel(model: TCefColorModel);`
Public | `function GetColorModel: TCefColorModel;`
Public | `procedure SetCopies(copies: Integer);`
Public | `function GetCopies: Integer;`
Public | `procedure SetDuplexMode(mode: TCefDuplexMode);`
Public | `function GetDuplexMode: TCefDuplexMode;`

### Properties

Public | `property Landscape : Boolean read IsLandscape write SetOrientation;`
Public | `property DeviceName : ustring read GetDeviceName write SetDeviceName;`
Public | `property Dpi : Integer read GetDpi write SetDpi;`
Public | `property SelectionOnly : Boolean read IsSelectionOnly write SetSelectionOnly;`
Public | `property Collate : Boolean read WillCollate write SetCollate;`
Public | `property ColorModel : TCefColorModel read GetColorModel write SetColorModel;`
Public | `property Copies : Integer read GetCopies write SetCopies;`
Public | `property DuplexMode : TCefDuplexMode read GetDuplexMode write SetDuplexMode;`

## Description

### Methods

Public | `function IsValid: Boolean;`
Returns true (1) if this object is valid. Do not call any other functions if this function returns false (0). ###### Attributes GUID['{ACBD2395-E9C1-49E5-B7F3-344DAA4A0F12}']

Public | `function IsReadOnly: Boolean;`
Returns true (1) if the values of this object are read-only. Some APIs may expose read-only objects.

Public | `procedure SetOrientation(landscape: Boolean);`
Set the page orientation.

Public | `function IsLandscape: Boolean;`
Returns true (1) if the orientation is landscape.

Public | `procedure SetPrinterPrintableArea(const physicalSizeDeviceUnits: PCefSize; const printableAreaDeviceUnits: PCefRect; landscapeNeedsFlip: Boolean);`
Set the printer printable area in device units. Some platforms already provide flipped area. Set |landscape_needs_flip| to false (0) on those platforms to avoid double flipping.

Public | `procedure SetDeviceName(const name: ustring);`
Set the device name.

Public | `function GetDeviceName: ustring;`
Get the device name.

Public | `procedure SetDpi(dpi: Integer);`
Set the DPI (dots per inch).

Public | `function GetDpi: Integer;`
Get the DPI (dots per inch).

Public | `procedure SetPageRanges(const ranges: TCefRangeArray);`
Set the page ranges.

Public | `function GetPageRangesCount: NativeUInt;`
Returns the number of page ranges that currently exist.

Public | `procedure GetPageRanges(out ranges: TCefRangeArray);`
Retrieve the page ranges.

Public | `procedure SetSelectionOnly(selectionOnly: Boolean);`
Set whether only the selection will be printed.

Public | `function IsSelectionOnly: Boolean;`
Returns true (1) if only the selection will be printed.

Public | `procedure SetCollate(collate: Boolean);`
Set whether pages will be collated.

Public | `function WillCollate: Boolean;`
Returns true (1) if pages will be collated.

Public | `procedure SetColorModel(model: TCefColorModel);`
Set the color model.

Public | `function GetColorModel: TCefColorModel;`
Get the color model.

Public | `procedure SetCopies(copies: Integer);`
Set the number of copies.

Public | `function GetCopies: Integer;`
Get the number of copies.

Public | `procedure SetDuplexMode(mode: TCefDuplexMode);`
Set the duplex mode.

Public | `function GetDuplexMode: TCefDuplexMode;`
Get the duplex mode.

### Properties

Public | `property Landscape : Boolean read IsLandscape write SetOrientation;`
Returns true (1) if the orientation is landscape.

Public | `property DeviceName : ustring read GetDeviceName write SetDeviceName;`
Get the device name.

Public | `property Dpi : Integer read GetDpi write SetDpi;`
Get the DPI (dots per inch).

Public | `property SelectionOnly : Boolean read IsSelectionOnly write SetSelectionOnly;`
Returns true (1) if only the selection will be printed.

Public | `property Collate : Boolean read WillCollate write SetCollate;`
Returns true (1) if pages will be collated.

Public | `property ColorModel : TCefColorModel read GetColorModel write SetColorModel;`
Get the color model.

Public | `property Copies : Integer read GetCopies write SetCopies;`
Get the number of copies.

Public | `property DuplexMode : TCefDuplexMode read GetDuplexMode write SetDuplexMode;`
Get the duplex mode.

Generated by PasDoc 1.0.4.