public class PrintDocument extends Component
.NET documentation at https://learn.microsoft.com/dotnet/api/System.Drawing.Printing.PrintDocument
Powered by JCOBridge: more info at https://www.jcobridge.com
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
assemblyFullName
Fully assembly qualified name: System.Drawing.Common, Version=8.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51
|
static java.lang.String |
assemblyShortName
Assembly name: System.Drawing.Common
|
static java.lang.String |
className
Qualified class name: System.Drawing.Printing.PrintDocument
|
static JCType |
classType
The type managed from JCOBridge.
|
| Constructor and Description |
|---|
PrintDocument()
Initializes a new instance by invoking the .NET constructor.
|
PrintDocument(java.lang.Object instance)
Internal constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addBeginPrint(PrintEventHandler handler)
Invokes the .NET member addBeginPrint.
|
void |
addEndPrint(PrintEventHandler handler)
Invokes the .NET member addEndPrint.
|
void |
addPrintPage(PrintPageEventHandler handler)
Invokes the .NET member addPrintPage.
|
void |
addQueryPageSettings(QueryPageSettingsEventHandler handler)
Invokes the .NET member addQueryPageSettings.
|
static PrintDocument |
cast(IJCOBridgeReflected from)
Try to cast the
IJCOBridgeReflected instance into PrintDocument, a cast assert is made to check if types are compatible. |
PageSettings |
getDefaultPageSettings()
Gets the value of the .NET property DefaultPageSettings.
|
java.lang.String |
getDocumentName()
Gets the value of the .NET property DocumentName.
|
java.lang.String |
getJCOAssemblyName()
Returns the full name of the assembly of the .NET type.
|
java.lang.String |
getJCOClassName()
Returns the full name of the .NET type.
|
java.lang.Object |
getJCOInstance()
Returns the underlying object managed by the bridge.
|
java.lang.String |
getJCOObjectName()
Returns the name of the .NET type qualified with its assembly.
|
JCType |
getJCOType()
Returns the
JCType of the .NET type. |
boolean |
getOriginAtMargins()
Gets the value of the .NET property OriginAtMargins.
|
PrintController |
getPrintController()
Gets the value of the .NET property PrintController.
|
PrinterSettings |
getPrinterSettings()
Gets the value of the .NET property PrinterSettings.
|
void |
Print()
Invokes the .NET member Print.
|
void |
removeBeginPrint(PrintEventHandler handler)
Invokes the .NET member removeBeginPrint.
|
void |
removeEndPrint(PrintEventHandler handler)
Invokes the .NET member removeEndPrint.
|
void |
removePrintPage(PrintPageEventHandler handler)
Invokes the .NET member removePrintPage.
|
void |
removeQueryPageSettings(QueryPageSettingsEventHandler handler)
Invokes the .NET member removeQueryPageSettings.
|
void |
setDefaultPageSettings(PageSettings DefaultPageSettings)
Sets the value of the .NET property DefaultPageSettings.
|
void |
setDocumentName(java.lang.String DocumentName)
Sets the value of the .NET property DocumentName.
|
void |
setJCOInstance(JCObject instance)
Sets the underlying object managed by the bridge.
|
void |
setOriginAtMargins(boolean OriginAtMargins)
Sets the value of the .NET property OriginAtMargins.
|
void |
setPrintController(PrintController PrintController)
Sets the value of the .NET property PrintController.
|
void |
setPrinterSettings(PrinterSettings PrinterSettings)
Sets the value of the .NET property PrinterSettings.
|
addDisposed, close, Dispose, getContainer, getSite, removeDisposed, setSiteGetLifetimeService, InitializeLifetimeServicepublic static final java.lang.String assemblyFullName
public static final java.lang.String assemblyShortName
public static final java.lang.String className
public PrintDocument()
throws java.lang.Throwable,
ArgumentException,
ArgumentNullException,
PlatformNotSupportedException,
ArgumentOutOfRangeException
java.lang.Throwable - if the .NET constructor failsArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itpublic PrintDocument(java.lang.Object instance)
throws java.lang.Throwable
instance - the underlying bridge object: it must be a JCObjectjava.lang.Throwable - if instance is not a JCObjectpublic void addBeginPrint(PrintEventHandler handler) throws java.lang.Throwable
handler - the argument of type PrintEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addEndPrint(PrintEventHandler handler) throws java.lang.Throwable
handler - the argument of type PrintEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addPrintPage(PrintPageEventHandler handler) throws java.lang.Throwable
handler - the argument of type PrintPageEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void addQueryPageSettings(QueryPageSettingsEventHandler handler) throws java.lang.Throwable
handler - the argument of type QueryPageSettingsEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic static PrintDocument cast(IJCOBridgeReflected from) throws java.lang.Throwable
IJCOBridgeReflected instance into PrintDocument, a cast assert is made to check if types are compatible.from - IJCOBridgeReflected instance to be castedPrintDocument instancejava.lang.Throwable - in case of error during cast operationpublic PageSettings getDefaultPageSettings() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getDocumentName()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic java.lang.String getJCOAssemblyName()
NetObjectgetJCOAssemblyName in interface IJCOBridgeReflectedgetJCOAssemblyName in class Componentpublic java.lang.String getJCOClassName()
NetObjectgetJCOClassName in interface IJCOBridgeReflectedgetJCOClassName in class Componentpublic java.lang.Object getJCOInstance()
NetObjectgetJCOInstance in interface IJCOBridgeReflectedgetJCOInstance in class Componentnull if there is nonepublic java.lang.String getJCOObjectName()
NetObjectgetJCOObjectName in interface IJCOBridgeReflectedgetJCOObjectName in class Componentpublic JCType getJCOType()
NetObjectJCType of the .NET type.getJCOType in interface IJCOBridgeReflectedgetJCOType in class Componentpublic boolean getOriginAtMargins()
throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic PrintController getPrintController() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic PrinterSettings getPrinterSettings() throws java.lang.Throwable
java.lang.Throwable - if the call fails in the bridge or in the CLRpublic void Print()
throws java.lang.Throwable,
Win32Exception,
InvalidPrinterException,
ArgumentNullException,
ArgumentOutOfRangeException,
ArrayTypeMismatchException,
PlatformNotSupportedException,
InvalidOperationException,
ArgumentException,
MissingMethodException,
TargetInvocationException,
InvalidCastException,
NotSupportedException,
ObjectDisposedException,
OutOfMemoryException
java.lang.Throwable - if the call fails in the bridge or in the CLRWin32Exception - if the .NET member raises itInvalidPrinterException - if the .NET member raises itArgumentNullException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises itArrayTypeMismatchException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itInvalidOperationException - if the .NET member raises itArgumentException - if the .NET member raises itMissingMethodException - if the .NET member raises itTargetInvocationException - if the .NET member raises itInvalidCastException - if the .NET member raises itNotSupportedException - if the .NET member raises itObjectDisposedException - if the .NET member raises itOutOfMemoryException - if the .NET member raises itpublic void removeBeginPrint(PrintEventHandler handler) throws java.lang.Throwable
handler - the argument of type PrintEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeEndPrint(PrintEventHandler handler) throws java.lang.Throwable
handler - the argument of type PrintEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removePrintPage(PrintPageEventHandler handler) throws java.lang.Throwable
handler - the argument of type PrintPageEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void removeQueryPageSettings(QueryPageSettingsEventHandler handler) throws java.lang.Throwable
handler - the argument of type QueryPageSettingsEventHandlerjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setDefaultPageSettings(PageSettings DefaultPageSettings) throws java.lang.Throwable, ArgumentOutOfRangeException
DefaultPageSettings - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentOutOfRangeException - if the .NET member raises itpublic void setDocumentName(java.lang.String DocumentName)
throws java.lang.Throwable
DocumentName - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setJCOInstance(JCObject instance)
NetObjectsetJCOInstance in class Componentinstance - the new underlying objectpublic void setOriginAtMargins(boolean OriginAtMargins)
throws java.lang.Throwable
OriginAtMargins - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setPrintController(PrintController PrintController) throws java.lang.Throwable
PrintController - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRpublic void setPrinterSettings(PrinterSettings PrinterSettings) throws java.lang.Throwable, ArgumentException, ArgumentNullException, PlatformNotSupportedException, ArgumentOutOfRangeException
PrinterSettings - the new value of the propertyjava.lang.Throwable - if the call fails in the bridge or in the CLRArgumentException - if the .NET member raises itArgumentNullException - if the .NET member raises itPlatformNotSupportedException - if the .NET member raises itArgumentOutOfRangeException - if the .NET member raises it