SetPrintOffset Method (IPrintManager)

SetPrintOffset Method (IPrintManager) | Send Feedback
See Also Example

XOffset
  X margin for print offset

YOffset
  Y margin for print offset

Sets the margins for print offset.

# Syntax

Visual Basic |
--- | ---
    Sub SetPrintOffset( _
       ByVal XOffset As System.Double, _
       ByVal YOffset As System.Double _
    )

C# |
--- | ---
    void SetPrintOffset(
       System.double XOffset,
       System.double YOffset
    )

JavaScript |
--- | ---
    function SetPrintOffset(

XOffset : System.double, YOffset : System.doubl )

COM native C++ |
--- | ---
    HRESULT SetPrintOffset(

    )

C++ |
--- | ---
    DSRESULT SetPrintOffset(
    &   System.double XOffset,
    &   System.double YOffset
    )

#### Parameters

XOffset
  X margin for print offset
YOffset
  Y margin for print offset

# Example

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

# Remarks

Units (inches or millimeters) for the margins for print offset are dependent on the specified paper size.

IPrintManager::PrintOnCenter must be set to false for the margins for print offset to be used.

# See Also

####

IPrintManager Interface
IPrintManager Members
IPrintManager::GetPrintOffset Method

# Availability

DraftSight V1R1