ImageGear .NET
WorkerGetSpreadsheetMargins Method




Pointer to Input Location object.
Reference to store left spreadsheet margin.
Reference to store top spreadsheet margin.
Reference to store right spreadsheet margin.
Reference to store bottom spreadsheet margin.
Reference to store header height.
Reference to store footer height.
Return spreadsheet margins and header/footer heights.
Syntax
'Declaration
 
<DllImportAttribute("ImageGear23.Formats.Office.workerexport.dll")>
<PreserveSigAttribute()>
Public Shared Function WorkerGetSpreadsheetMargins( _
   ByVal inputLocation As IntPtr, _
   ByRef leftMargin As Integer, _
   ByRef topMargin As Integer, _
   ByRef rightMargin As Integer, _
   ByRef bottomMargin As Integer, _
   ByRef headerHeight As Integer, _
   ByRef footerHeight As Integer _
) As IntPtr
'Usage
 
Dim inputLocation As IntPtr
Dim leftMargin As Integer
Dim topMargin As Integer
Dim rightMargin As Integer
Dim bottomMargin As Integer
Dim headerHeight As Integer
Dim footerHeight As Integer
Dim value As IntPtr
 
value = WorkerImports.WorkerGetSpreadsheetMargins(inputLocation, leftMargin, topMargin, rightMargin, bottomMargin, headerHeight, footerHeight)
[DllImport("ImageGear23.Formats.Office.workerexport.dll")]
[PreserveSig()]
public static IntPtr WorkerGetSpreadsheetMargins( 
   IntPtr inputLocation,
   ref int leftMargin,
   ref int topMargin,
   ref int rightMargin,
   ref int bottomMargin,
   ref int headerHeight,
   ref int footerHeight
)
[DllImport("ImageGear23.Formats.Office.workerexport.dll")]
[PreserveSig()]
public: static IntPtr WorkerGetSpreadsheetMargins( 
   IntPtr inputLocation,
   ref int leftMargin,
   ref int topMargin,
   ref int rightMargin,
   ref int bottomMargin,
   ref int headerHeight,
   ref int footerHeight
) 
[DllImport("ImageGear23.Formats.Office.workerexport.dll")]
[PreserveSig()]
public:
static IntPtr WorkerGetSpreadsheetMargins( 
   IntPtr inputLocation,
   int% leftMargin,
   int% topMargin,
   int% rightMargin,
   int% bottomMargin,
   int% headerHeight,
   int% footerHeight
) 

Parameters

inputLocation
Pointer to Input Location object.
leftMargin
Reference to store left spreadsheet margin.
topMargin
Reference to store top spreadsheet margin.
rightMargin
Reference to store right spreadsheet margin.
bottomMargin
Reference to store bottom spreadsheet margin.
headerHeight
Reference to store header height.
footerHeight
Reference to store footer height.

Return Value

Error code.
See Also

Reference

WorkerImports Class
WorkerImports Members

 

 


©2017. Accusoft Corporation. All Rights Reserved.

Send Feedback