GetPrintMargins Method (IPrintManager)

GetPrintMargins Method (IPrintManager) | Send Feedback
See Also Example

Top[out]
  Top margin

Bottom[out]
  Bottom margin

Left[out]
  Left margin

Right[out]
  Right margin

Gets the size of the margins of the paper size specified to use for printing.

# Syntax

Visual Basic |
--- | ---
    Sub GetPrintMargins( _
       ByRef Top As System.Double, _
       ByRef Bottom As System.Double, _
       ByRef Left As System.Double, _
       ByRef Right As System.Double _
    )

C# |
--- | ---
    void GetPrintMargins(
       out System.double Top,
       out System.double Bottom,
       out System.double Left,
       out System.double Right
    )

JavaScript |
--- | ---
    GetPrintMargins(
    ) : {
       Top : Number,
       Bottom : Number,
       Left : Number,
       Right : Number
    }

COM native C++ |
--- | ---
    HRESULT GetPrintMargins(
       DOUBLE* Top,
       DOUBLE* Bottom,
       DOUBLE* Left,
       DOUBLE* Right
    )

C++ |
--- | ---
    DSRESULT GetPrintMargins(
       double* Top,
       double* Bottom,
       double* Left,
       double* Right
    )

#### Parameters

Top[out]
  Top margin
Bottom[out]
  Bottom margin
Left[out]
  Left margin
Right[out] or Return Value
  Right margin

# Example

Get and Set Print Options (C#)
Get and Set Print Options (VB.NET)
Get and Set Print Options (VBA)

# See Also

####

IPrintManager Interface
IPrintManager Members
IPrintManager::SetPrintMargins Method ()

# Availability

DraftSight V1R1