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:
AutoCloseable
,IJCOBridgeReflected
public class PrintDocument extends Component
The base .NET class managing System.Drawing.Printing.PrintDocument, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a.See: https://docs.microsoft.com/en-us/dotnet/api/System.Drawing.Printing.PrintDocument
-
-
Field Summary
Fields Modifier and Type Field Description static String
assemblyFullName
Fully assembly qualified name: System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3astatic String
assemblyShortName
Assembly name: System.Drawingstatic String
className
Qualified class name: System.Drawing.Printing.PrintDocumentstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description PrintDocument()
PrintDocument(Object instance)
Internal constructor.
-
Method Summary
-
Methods inherited from class system.componentmodel.Component
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSite
-
Methods inherited from class system.MarshalByRefObject
CreateObjRef, GetLifetimeService, InitializeLifetimeService
-
Methods inherited from class org.mases.jcobridge.netreflection.NetObject
Equals, Equals, GetHashCode, GetType, hashCode, toObjectFromArray, toObjectFromArray, toString, ToString, translateException
-
-
-
-
Field Detail
-
assemblyFullName
public static final String assemblyFullName
Fully assembly qualified name: System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a- See Also:
- Constant Field Values
-
assemblyShortName
public static final String assemblyShortName
Assembly name: System.Drawing- See Also:
- Constant Field Values
-
className
public static final String className
Qualified class name: System.Drawing.Printing.PrintDocument- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PrintDocument
public PrintDocument(Object instance) throws Throwable
Internal constructor. Use with caution- Throws:
Throwable
-
PrintDocument
public PrintDocument() throws Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
-
-
Method Detail
-
getJCOAssemblyName
public 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 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 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 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 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:
Throwable
- in case of error during cast operation
-
Print
public void Print() throws Throwable, SecurityException, ArgumentNullException, ArgumentException, NotImplementedException, CultureNotFoundException, IndexOutOfRangeException, ArgumentOutOfRangeException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, Win32Exception, AccessViolationException, InvalidPrinterException, InvalidCastException, OutOfMemoryException
- Throws:
Throwable
SecurityException
ArgumentNullException
ArgumentException
NotImplementedException
CultureNotFoundException
IndexOutOfRangeException
ArgumentOutOfRangeException
MissingManifestResourceException
ObjectDisposedException
InvalidOperationException
Win32Exception
AccessViolationException
InvalidPrinterException
InvalidCastException
OutOfMemoryException
-
setOriginAtMargins
public void setOriginAtMargins(boolean OriginAtMargins) throws Throwable
- Throws:
Throwable
-
getDefaultPageSettings
public PageSettings getDefaultPageSettings() throws Throwable
- Throws:
Throwable
-
setDefaultPageSettings
public void setDefaultPageSettings(PageSettings DefaultPageSettings) throws Throwable, ArgumentNullException, MissingManifestResourceException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException, ArgumentException
-
getPrintController
public PrintController getPrintController() throws Throwable, ArgumentException, SecurityException, NotSupportedException, ArgumentNullException, MissingMethodException, TypeLoadException, InvalidOperationException
-
setPrintController
public void setPrintController(PrintController PrintController) throws Throwable
- Throws:
Throwable
-
getPrinterSettings
public PrinterSettings getPrinterSettings() throws Throwable
- Throws:
Throwable
-
setPrinterSettings
public void setPrinterSettings(PrinterSettings PrinterSettings) throws Throwable, ArgumentNullException, ArgumentException, MissingManifestResourceException, ObjectDisposedException, InvalidOperationException, ArgumentOutOfRangeException, IndexOutOfRangeException
-
setDocumentName
public void setDocumentName(String DocumentName) throws Throwable
- Throws:
Throwable
-
addBeginPrint
public void addBeginPrint(PrintEventHandler handler) throws Throwable
- Throws:
Throwable
-
removeBeginPrint
public void removeBeginPrint(PrintEventHandler handler) throws Throwable
- Throws:
Throwable
-
addEndPrint
public void addEndPrint(PrintEventHandler handler) throws Throwable
- Throws:
Throwable
-
removeEndPrint
public void removeEndPrint(PrintEventHandler handler) throws Throwable
- Throws:
Throwable
-
addPrintPage
public void addPrintPage(PrintPageEventHandler handler) throws Throwable
- Throws:
Throwable
-
removePrintPage
public void removePrintPage(PrintPageEventHandler handler) throws Throwable
- Throws:
Throwable
-
addQueryPageSettings
public void addQueryPageSettings(QueryPageSettingsEventHandler handler) throws Throwable
- Throws:
Throwable
-
removeQueryPageSettings
public void removeQueryPageSettings(QueryPageSettingsEventHandler handler) throws Throwable
- Throws:
Throwable
-
-