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=9.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.StringassemblyFullNameFully assembly qualified name: System.Drawing.Common, Version=9.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51static java.lang.StringassemblyShortNameAssembly name: System.Drawing.Commonstatic java.lang.StringclassNameQualified class name: System.Drawing.Printing.PrintDocumentstatic JCTypeclassTypeThe 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 voidaddBeginPrint(PrintEventHandler handler)voidaddEndPrint(PrintEventHandler handler)voidaddPrintPage(PrintPageEventHandler handler)voidaddQueryPageSettings(QueryPageSettingsEventHandler handler)static PrintDocumentcast(IJCOBridgeReflected from)Try to cast theIJCOBridgeReflectedinstance intoPrintDocument, a cast assert is made to check if types are compatible.PageSettingsgetDefaultPageSettings()java.lang.StringgetDocumentName()java.lang.StringgetJCOAssemblyName()Returns the reflected Assembly namejava.lang.StringgetJCOClassName()Returns the reflected Class namejava.lang.ObjectgetJCOInstance()Returns the instantiated classjava.lang.StringgetJCOObjectName()Returns the reflected Class name used to build the objectJCTypegetJCOType()Returns the instantiated class TypebooleangetOriginAtMargins()PrintControllergetPrintController()PrinterSettingsgetPrinterSettings()voidPrint()voidremoveBeginPrint(PrintEventHandler handler)voidremoveEndPrint(PrintEventHandler handler)voidremovePrintPage(PrintPageEventHandler handler)voidremoveQueryPageSettings(QueryPageSettingsEventHandler handler)voidsetDefaultPageSettings(PageSettings DefaultPageSettings)voidsetDocumentName(java.lang.String DocumentName)voidsetJCOInstance(JCObject instance)voidsetOriginAtMargins(boolean OriginAtMargins)voidsetPrintController(PrintController PrintController)voidsetPrinterSettings(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=9.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.ThrowableInternal constructor. Use with caution- Throws:
java.lang.Throwable
-
PrintDocument
public PrintDocument() throws java.lang.Throwable, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
-
Method Detail
-
getJCOAssemblyName
public java.lang.String getJCOAssemblyName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Assembly name- Specified by:
getJCOAssemblyNamein interfaceIJCOBridgeReflected- Overrides:
getJCOAssemblyNamein classComponent- Returns:
- A
Stringrepresenting the Fullname of reflected Assembly
-
getJCOClassName
public java.lang.String getJCOClassName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name- Specified by:
getJCOClassNamein interfaceIJCOBridgeReflected- Overrides:
getJCOClassNamein classComponent- Returns:
- A
Stringrepresenting the Fullname of reflected Class
-
getJCOObjectName
public java.lang.String getJCOObjectName()
Description copied from interface:IJCOBridgeReflectedReturns the reflected Class name used to build the object- Specified by:
getJCOObjectNamein interfaceIJCOBridgeReflected- Overrides:
getJCOObjectNamein classComponent- Returns:
- A
Stringrepresenting the name used to allocated the object in CLR context
-
getJCOInstance
public java.lang.Object getJCOInstance()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class- Specified by:
getJCOInstancein interfaceIJCOBridgeReflected- Overrides:
getJCOInstancein classComponent- Returns:
- An
Objectrepresenting the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstancein classComponent
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflectedReturns the instantiated class Type- Specified by:
getJCOTypein interfaceIJCOBridgeReflected- Overrides:
getJCOTypein classComponent- Returns:
- A
JCTyperepresenting the CLR Type of the instantiated Class
-
cast
public static PrintDocument cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflectedinstance intoPrintDocument, a cast assert is made to check if types are compatible.- Parameters:
from-IJCOBridgeReflectedinstance to be casted- Returns:
PrintDocumentinstance- Throws:
java.lang.Throwable- in case of error during cast operation
-
Print
public void Print() throws java.lang.Throwable, Win32Exception, InvalidOperationException, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException, ArgumentException, ObjectDisposedException, IndexOutOfRangeException, InvalidCastException
-
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, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowablePlatformNotSupportedExceptionArgumentOutOfRangeException
-
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, PlatformNotSupportedException, ArgumentOutOfRangeException
- Throws:
java.lang.ThrowableArgumentExceptionPlatformNotSupportedExceptionArgumentOutOfRangeException
-
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
-
-