LEADTOOLS Image File Support (Leadtools.Codecs assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
Unit Property
See Also 
Leadtools.Codecs Namespace > CodecsRasterizeDocumentLoadOptions Class : Unit Property



Gets or sets the units to use for PageWidth, PageHeight, LeftMargin, TopMargin, RightMargin and BottomMargin values.

Syntax

Visual Basic (Declaration) 
Public Property Unit As CodecsRasterizeDocumentUnit
Visual Basic (Usage)Copy Code
Dim instance As CodecsRasterizeDocumentLoadOptions
Dim value As CodecsRasterizeDocumentUnit
 
instance.Unit = value
 
value = instance.Unit
C# 
public CodecsRasterizeDocumentUnit Unit {get; set;}
C++/CLI 
public:
property CodecsRasterizeDocumentUnit Unit {
   CodecsRasterizeDocumentUnit get();
   void set (    CodecsRasterizeDocumentUnit value);
}

Property Value

A CodecsRasterizeDocumentUnit enumeration member that specify the unit to use for PageWidth, PageHeight, LeftMargin, TopMargin, RightMargin and BottomMargin values. Default value is CodecsRasterizeDocumentUnit.Inch

Example

For an example, refer to CodecsRasterizeDocumentLoadOptions.

Remarks

When using a pixel unit (CodecsRasterizeDocumentUnit.Pixel), the page width and height are multiplied by the current resolution(XResolution and YResolution) to detemine the final physical page size).

Possible values are:

Value Description
CodecsRasterizeDocumentUnit.Pixel

The page width, height or margins are in pixels

CodecsRasterizeDocumentUnit.Inch

The page width, height or margins are in inches

CodecsRasterizeDocumentUnit.Millimeter

The page width, height or margins are in millimeters

Requirements

Target Platforms: Silverlight, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)

See Also