Package system.drawing.printing
Class PrintDocument
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.MarshalByRefObject
-
- system.componentmodel.Component
-
- system.drawing.printing.PrintDocument
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,IJCOBridgeReflected
public class PrintDocument extends Component
The base .NET class managing System.Drawing.Printing.PrintDocument, System.Drawing.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51..NET documentation at https://docs.microsoft.com/en-us/dotnet/api/System.Drawing.Printing.PrintDocument
Powered by JCOBridge: more info at https://www.jcobridge.com
- Author:
- MASES s.r.l https://masesgroup.com
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
assemblyFullName
Fully assembly qualified name: System.Drawing.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.String
assemblyShortName
Assembly name: System.Drawing.Commonstatic java.lang.String
className
Qualified class name: System.Drawing.Printing.PrintDocumentstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description PrintDocument()
PrintDocument(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addBeginPrint(PrintEventHandler handler)
void
addEndPrint(PrintEventHandler handler)
void
addPrintPage(PrintPageEventHandler handler)
void
addQueryPageSettings(QueryPageSettingsEventHandler handler)
static PrintDocument
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoPrintDocument
, a cast assert is made to check if types are compatible.PageSettings
getDefaultPageSettings()
java.lang.String
getDocumentName()
java.lang.String
getJCOAssemblyName()
Returns the reflected Assembly namejava.lang.String
getJCOClassName()
Returns the reflected Class namejava.lang.Object
getJCOInstance()
Returns the instantiated classjava.lang.String
getJCOObjectName()
Returns the reflected Class name used to build the objectJCType
getJCOType()
Returns the instantiated class Typeboolean
getOriginAtMargins()
PrintController
getPrintController()
PrinterSettings
getPrinterSettings()
void
Print()
void
removeBeginPrint(PrintEventHandler handler)
void
removeEndPrint(PrintEventHandler handler)
void
removePrintPage(PrintPageEventHandler handler)
void
removeQueryPageSettings(QueryPageSettingsEventHandler handler)
void
setDefaultPageSettings(PageSettings DefaultPageSettings)
void
setDocumentName(java.lang.String DocumentName)
void
setJCOInstance(JCObject instance)
void
setOriginAtMargins(boolean OriginAtMargins)
void
setPrintController(PrintController PrintController)
void
setPrinterSettings(PrinterSettings PrinterSettings)
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
GetLifetimeService, InitializeLifetimeService
-
-
-
-
Field Detail
-
assemblyFullName
public static final java.lang.String assemblyFullName
Fully assembly qualified name: System.Drawing.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51- See Also:
- Constant Field Values
-
assemblyShortName
public static final java.lang.String assemblyShortName
Assembly name: System.Drawing.Common- See Also:
- Constant Field Values
-
className
public static final java.lang.String className
Qualified class name: System.Drawing.Printing.PrintDocument- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PrintDocument
public PrintDocument(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
PrintDocument
public PrintDocument() throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Assembly name- Specified by:
getJCOAssemblyName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOAssemblyName
in classComponent
- Returns:
- A
String
representing the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name- Specified by:
getJCOClassName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOClassName
in classComponent
- Returns:
- A
String
representing the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflected
Returns the reflected Class name used to build the object- Specified by:
getJCOObjectName
in interfaceIJCOBridgeReflected
- Overrides:
getJCOObjectName
in classComponent
- Returns:
- A
String
representing the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class- Specified by:
getJCOInstance
in interfaceIJCOBridgeReflected
- Overrides:
getJCOInstance
in classComponent
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classComponent
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static PrintDocument cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoPrintDocument
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
PrintDocument
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
Print
public void Print() throws java.lang.Throwable, Win32Exception, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException, InvalidOperationException, ArgumentException, MissingMethodException, TargetInvocationException, InvalidCastException, NotSupportedException, ObjectDisposedException, OutOfMemoryException
- Throws:
java.lang.Throwable
Win32Exception
InvalidPrinterException
ArgumentNullException
ArgumentOutOfRangeException
ArrayTypeMismatchException
PlatformNotSupportedException
InvalidOperationException
ArgumentException
MissingMethodException
TargetInvocationException
InvalidCastException
NotSupportedException
ObjectDisposedException
OutOfMemoryException
-
getOriginAtMargins
public boolean getOriginAtMargins() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setOriginAtMargins
public void setOriginAtMargins(boolean OriginAtMargins) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getDefaultPageSettings
public PageSettings getDefaultPageSettings() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDefaultPageSettings
public void setDefaultPageSettings(PageSettings DefaultPageSettings) throws java.lang.Throwable, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentOutOfRangeException
-
getPrintController
public PrintController getPrintController() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPrintController
public void setPrintController(PrintController PrintController) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPrinterSettings
public PrinterSettings getPrinterSettings() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPrinterSettings
public void setPrinterSettings(PrinterSettings PrinterSettings) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentNullException
PlatformNotSupportedException
ArgumentOutOfRangeException
-
getDocumentName
public java.lang.String getDocumentName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setDocumentName
public void setDocumentName(java.lang.String DocumentName) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addBeginPrint
public void addBeginPrint(PrintEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeBeginPrint
public void removeBeginPrint(PrintEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addEndPrint
public void addEndPrint(PrintEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeEndPrint
public void removeEndPrint(PrintEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addPrintPage
public void addPrintPage(PrintPageEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removePrintPage
public void removePrintPage(PrintPageEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
addQueryPageSettings
public void addQueryPageSettings(QueryPageSettingsEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
removeQueryPageSettings
public void removeQueryPageSettings(QueryPageSettingsEventHandler handler) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
-