[]
        
(Showing Draft Content)

C1.C1Preview.Utils

Utils Class

Contains common functions.

Inheritance
Utils
Namespace: C1.C1Preview
Assembly: C1.PrintDocument.8.dll
Syntax
public static class Utils

Fields

Name Description
BlackColor

For internal use only.

CmPerInch

Centimeters per inch as double.

CmPerInchF

Centimeters per inch as float.

DipPerInch

DIP (device independent pixel 1/96inch) per inch as double.

DisplayPerInch

Display units per inch as double.

DisplayPerInchF

Display units per inch as float.

DocumentUnitsPerInch

Document units per inch as double.

DocumentUnitsPerInchF

Document units per inch as float.

MmPerInch

Millimeters per inch as double.

MmPerInchF

Millimeters per inch as float.

PicaPerInch

Picas per inch as double.

PicaPerInchF

Picas per inch as float.

PointsPerInch

Points per inch as double.

PointsPerInchF

Points per inch as float.

TransparentColor

For internal use only.

TwipsFC

The field of class of the static methods for comparing the float and double numbers with specified precision.

TwipsPerInch

Twips per inch as double.

TwipsPerInchF

Twips per inch as float.

WhiteColor

For internal use only.

Methods

Name Description
AsC1Document(object)

Gets the C1.C1Preview.IC1Document representing the passed object, If the passed document is a C1PrintDocument or C1MultiDocument, returns that object. Otherwise, returns null.

AsC1PrintDocument(object)

Gets the C1PrintDocument representing the passed object, If the passed document is a C1PrintDocument, returns that object. Otherwise, returns null.

ConvertUnits(double, UnitTypeEnum, UnitTypeEnum, float, float)

Converts a value from one unit of measurement to another.

FromWpfColor(Color)

For internal use only.

GetResourceImage(string)

For internal use.

IsC1Document(object)

Tests whether an object can be represented as a C1.C1Preview.IC1Document.

IsC1DocumentType(Type)

Tests whether an object of the specified type can be represented as a C1.C1Preview.IC1Document.

IsC1PrintDocument(object)

Tests whether an object can be represented as a C1PrintDocument.

IsC1PrintDocumentType(Type)

Tests whether an object of the specified type can be represented as a C1PrintDocument.

IsColorBlack(Color)

Tests whether specified color is black.

IsColorEmpty(Color)

Tests whether the specified color is invisible (i.e. equals Empty or Transparent).

IsColorEquals(Color, Color)

Tests whether specified colors are equal.

IsColorTransparent(Color)

Tests whether specified color is transparent.

IsColorWhite(Color)

Tests whether specified color is white.

Round(PointD)

For internal use.

Round(RectangleD)

For internal use.

SamePaperSizes(SizeF, SizeF)

Tests two sizes for equality allowing a small margin for rounding errors.

ToWpfColor(Color)

For internal use only.