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



Gets or sets the top margin value when rasterizing a document to a raster image.

Syntax

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

Property Value

A System.Double value that indicates the margin value in Unit to use when rasterizing a document to a raster image. Default value is 1.0 inches. The value of TopMargin must be greater than or equal to 0.

Example

For an example, refer to CodecsRasterizeDocumentLoadOptions.

Remarks

The values of LeftMargin, TopMargin, RightMargin and BottomMargin are only used when loading RTF and TXT documents. They are not used when loading other document formats such as PDF, XPS and XLS.

If the value of CodecsRasterizeDocumentLoadOptions.Enabled is set to true, then LeftMargin, TopMargin, RightMargin and BottomMargin will be used instead of the following properties:

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