Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
CodecsRasterizeDocumentUnit Enumeration
See Also  
Leadtools.Codecs Namespace : CodecsRasterizeDocumentUnit Enumeration



Specifies the unit of a document page width, height or margins.

Syntax

Visual Basic (Declaration) 
Public Enum CodecsRasterizeDocumentUnit 
   Inherits Enum
Visual Basic (Usage)Copy Code
Dim instance As CodecsRasterizeDocumentUnit
C# 
public enum CodecsRasterizeDocumentUnit : Enum 
C++/CLI 
public enum class CodecsRasterizeDocumentUnit : public Enum 

Members

MemberDescription
PixelThe page width, height or margins are in pixels.
InchThe page width, height or margins are in inches.
MillimeterThe page width, height or margins are in millimeters.

Example

For an example, refer to CodecsPdfOptions.

Remarks

The CodecsRasterizeDocumentUnit is used to specify the unit of a document page width, height or margins. By using this enumeration, you can define document (logical) sizes in pixels, inches or millimeters.

The CodecsRasterizeDocumentUnit enumeration is used as the value for the following class members:

Class MemberUnits
CodecsDocumentImageInfo.Unit

As the units for CodecsDocumentImageInfo.PageWidth and CodecsDocumentImageInfo.PageHeight

CodecsRasterizeDocumentLoadOptions.Unit

As the units for CodecsRasterizeDocumentLoadOptions.PageWidth, CodecsRasterizeDocumentLoadOptions.PageHeight, CodecsRasterizeDocumentLoadOptions.LeftMargin, CodecsRasterizeDocumentLoadOptions.TopMargin, CodecsRasterizeDocumentLoadOptions.RightMargin and CodecsRasterizeDocumentLoadOptions.BottomMargin

Inheritance Hierarchy

System.Object
   System.ValueType
      System.Enum
         Leadtools.Codecs.CodecsRasterizeDocumentUnit

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also