Leadtools.Codecs Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
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);
}

Return 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 resoluiotn (XResolution and YResolution) to detemine the final physical page size).

Requirements

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

See Also