[]
        
(Showing Draft Content)

C1.C1Preview.C1PageSettings

C1PageSettings Class

Represents the page settings of a C1PrintDocument.

Inheritance
C1PageSettings
Namespace: C1.C1Preview
Assembly: C1.PrintDocument.8.dll
Syntax
[C1ClassSerialization(true, true)]
[TypeConverter(typeof(C1PageSettings.PageSettingsTypeConverter))]
public class C1PageSettings

Constructors

Name Description
C1PageSettings()

Initializes a new instance of the C1PageSettings class.

C1PageSettings(C1PageSettings)

Initializes a new instance of the C1PageSettings class from another C1PageSettings object.

C1PageSettings(C1PageSettings, bool)

Initializes a new instance of the C1PageSettings class from another C1PageSettings object.

C1PageSettings(PageSettings)

Initializes a new instance of the C1PageSettings class from a PageSettings object.

Properties

Name Description
BottomMargin

Gets or sets the bottom margin.

Color

Gets or sets a value indicating whether the document should be printed in color.

Document

Gets the C1PrintDocument object containing current object.

Height

Gets or sets the height of the paper.

Landscape

Gets or sets a value indicating whether to use landscape orientation. Changing this property swaps height and width of the page.

LeftMargin

Gets or sets the left margin.

PageLayout

Gets the PageLayout object containing the current C1PageSettings. Null is returned if the current object does not belong to a PageLayout.

PaperKind

Gets or sets the paper kind. Changing of this property may change Width and/or Height.

PaperSourceKind

Gets or sets the desired paper source kind.

PaperSourceName

Gets or sets the name of the paper source.

PaperSourceRawKind

Gets or sets the integer representing one of the PaperSourceKind values or a custom value.

PrinterResolutionKind

Gets or sets the desired printer resolution kind.

PrinterResolutionX

Gets or sets the horizontal printer resolution, in dots per inch, used when PrinterResolutionKind is Custom.

PrinterResolutionY

Gets or sets the vertical printer resolution, in dots per inch, used when PrinterResolutionKind is Custom.

RightMargin

Gets or sets the right margin.

TopMargin

Gets or sets the top margin.

UsePrinterPaperSize

Gets or sets a value indicating whether to use the printer paper size when generating the document. This property does not affect the values of Landscape, Width, Height and PaperKind properties.

Width

Gets or sets the width of the paper.

Methods

Name Description
AssignFrom(C1PageSettings)

Assigns (copies) properties from another C1PageSettings to the current object.

AssignFrom(PageSettings)

Assigns (copies) properties from a PageSettings to the current object.

Clone()

Creates a copy of the current C1PageSettings object.

Compare(C1PageSettings)

Compares the current C1PageSettings with another C1PageSettings object.

Compare(C1PageSettings, C1PageSettings)

Compares the properties of two C1PageSettings objects.

CreateDefaultPageSettings()

Creates a new instance of the C1PageSettings class. If UsePrinterForDefaultPageSettings is true, initializes the newly created object with settings based on the current printer (specified by MeasurementPrinterName). Otherwise, initializes the newly created object with default system locale settings.

GetCurrentLocaleDefaultPaperSize(out double, out double, out double, out UnitTypeEnum)

Retrieves the locale-specific default paper size for the current locale.

IsPaperKindKnown(PaperKind)

Gets a value indicating whether the specified PaperKind is known and defined in the PaperKind enumeration.

IsSameLayout(C1PageSettings)

Compares page layout specified by the current C1PageSettings with layout of another C1PageSettings object.

SetPaperSizes(Unit, Unit)

Sets the Width and the Height to specified values.

ToPageSettings()

Creates an instance of the PageSettings class, and initializes it with the properties of the current C1PageSettings object.

ToPageSettings(C1PrintDocument)

Creates an instance of the PageSettings class, and initializes it with the properties of the current C1PageSettings object.

ToPageSettings(C1PrintDocument, PrinterSettings)

Creates an instance of the PageSettings class, and initializes it with the properties of the current C1PageSettings object.