Package system.drawing.printing
Class PrinterSettings
- java.lang.Object
-
- org.mases.jcobridge.netreflection.NetObject
-
- system.drawing.printing.PrinterSettings
-
- All Implemented Interfaces:
IJCOBridgeReflected
public class PrinterSettings extends NetObject
The base .NET class managing System.Drawing.Printing.PrinterSettings, 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.PrinterSettings
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=9.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.PrinterSettingsstatic JCType
classType
The type managed from JCOBridge.
-
Constructor Summary
Constructors Constructor Description PrinterSettings()
PrinterSettings(java.lang.Object instance)
Internal constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PrinterSettings
cast(IJCOBridgeReflected from)
Try to cast theIJCOBridgeReflected
instance intoPrinterSettings
, a cast assert is made to check if types are compatible.NetObject
Clone()
Graphics
CreateMeasurementGraphics()
Graphics
CreateMeasurementGraphics(boolean honorOriginAtMargins)
Graphics
CreateMeasurementGraphics(PageSettings pageSettings)
Graphics
CreateMeasurementGraphics(PageSettings pageSettings, boolean honorOriginAtMargins)
boolean
getCanDuplex()
boolean
getCollate()
short
getCopies()
PageSettings
getDefaultPageSettings()
Duplex
getDuplex()
int
getFromPage()
boolean
getIsDefaultPrinter()
boolean
getIsPlotter()
boolean
getIsValid()
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 Typeint
getLandscapeAngle()
int
getMaximumCopies()
int
getMaximumPage()
int
getMinimumPage()
java.lang.String
getPrinterName()
java.lang.String
getPrintFileName()
PrintRange
getPrintRange()
boolean
getPrintToFile()
boolean
getSupportsColor()
int
getToPage()
boolean
IsDirectPrintingSupported(Image image)
boolean
IsDirectPrintingSupported(ImageFormat imageFormat)
void
setCollate(boolean Collate)
void
setCopies(short Copies)
void
setDuplex(Duplex Duplex)
void
setFromPage(int FromPage)
void
setJCOInstance(JCObject instance)
void
setMaximumPage(int MaximumPage)
void
setMinimumPage(int MinimumPage)
void
setPrinterName(java.lang.String PrinterName)
void
setPrintFileName(java.lang.String PrintFileName)
void
setPrintRange(PrintRange PrintRange)
void
setPrintToFile(boolean PrintToFile)
void
setToPage(int ToPage)
-
-
-
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.PrinterSettings- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PrinterSettings
public PrinterSettings(java.lang.Object instance) throws java.lang.Throwable
Internal constructor. Use with caution- Throws:
java.lang.Throwable
-
PrinterSettings
public PrinterSettings() throws java.lang.Throwable, ArgumentException, InvalidOperationException, PlatformNotSupportedException, ArgumentOutOfRangeException, FormatException
- Throws:
java.lang.Throwable
ArgumentException
InvalidOperationException
PlatformNotSupportedException
ArgumentOutOfRangeException
FormatException
-
-
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 classNetObject
- 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 classNetObject
- 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 classNetObject
- 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 classNetObject
- Returns:
- An
Object
representing the CLR instance of the instantiated Class
-
setJCOInstance
public void setJCOInstance(JCObject instance)
- Overrides:
setJCOInstance
in classNetObject
-
getJCOType
public JCType getJCOType()
Description copied from interface:IJCOBridgeReflected
Returns the instantiated class Type- Specified by:
getJCOType
in interfaceIJCOBridgeReflected
- Overrides:
getJCOType
in classNetObject
- Returns:
- A
JCType
representing the CLR Type of the instantiated Class
-
cast
public static PrinterSettings cast(IJCOBridgeReflected from) throws java.lang.Throwable
Try to cast theIJCOBridgeReflected
instance intoPrinterSettings
, a cast assert is made to check if types are compatible.- Parameters:
from
-IJCOBridgeReflected
instance to be casted- Returns:
PrinterSettings
instance- Throws:
java.lang.Throwable
- in case of error during cast operation
-
IsDirectPrintingSupported
public boolean IsDirectPrintingSupported(Image image) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException, Win32Exception, InvalidPrinterException, ArgumentOutOfRangeException
-
IsDirectPrintingSupported
public boolean IsDirectPrintingSupported(ImageFormat imageFormat) throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidOperationException, PlatformNotSupportedException, InvalidPrinterException, ArgumentNullException, ArrayTypeMismatchException, NotSupportedException
-
CreateMeasurementGraphics
public Graphics CreateMeasurementGraphics() throws java.lang.Throwable, Win32Exception, InvalidOperationException, PlatformNotSupportedException, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, ArgumentException, NotSupportedException, FormatException
-
CreateMeasurementGraphics
public Graphics CreateMeasurementGraphics(boolean honorOriginAtMargins) throws java.lang.Throwable, Win32Exception, InvalidOperationException, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException, ArgumentException, FormatException
-
CreateMeasurementGraphics
public Graphics CreateMeasurementGraphics(PageSettings pageSettings, boolean honorOriginAtMargins) throws java.lang.Throwable, Win32Exception, InvalidOperationException, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, PlatformNotSupportedException, ArgumentException, FormatException
-
CreateMeasurementGraphics
public Graphics CreateMeasurementGraphics(PageSettings pageSettings) throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidOperationException, PlatformNotSupportedException, InvalidPrinterException, ArgumentNullException, ArrayTypeMismatchException, NotSupportedException, IndexOutOfRangeException, FormatException
-
Clone
public NetObject Clone() throws java.lang.Throwable, ArgumentException, NotSupportedException, InvalidOperationException, ArgumentOutOfRangeException, PlatformNotSupportedException
- Throws:
java.lang.Throwable
ArgumentException
NotSupportedException
InvalidOperationException
ArgumentOutOfRangeException
PlatformNotSupportedException
-
getCanDuplex
public boolean getCanDuplex() throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentException
Win32Exception
InvalidOperationException
-
getCollate
public boolean getCollate() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, NotSupportedException, InvalidOperationException, ObjectDisposedException, InvalidCastException, Win32Exception, InvalidPrinterException, ArrayTypeMismatchException
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ArgumentOutOfRangeException
CultureNotFoundException
NotSupportedException
InvalidOperationException
ObjectDisposedException
InvalidCastException
Win32Exception
InvalidPrinterException
ArrayTypeMismatchException
-
setCollate
public void setCollate(boolean Collate) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getIsDefaultPrinter
public boolean getIsDefaultPrinter() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, InvalidOperationException, Win32Exception, NotSupportedException
-
getIsPlotter
public boolean getIsPlotter() throws java.lang.Throwable, Win32Exception, InvalidOperationException, PlatformNotSupportedException, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, ArgumentException, NotSupportedException
-
getIsValid
public boolean getIsValid() throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentException
Win32Exception
InvalidOperationException
-
getPrintToFile
public boolean getPrintToFile() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPrintToFile
public void setPrintToFile(boolean PrintToFile) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getSupportsColor
public boolean getSupportsColor() throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentException
Win32Exception
InvalidOperationException
-
getCopies
public short getCopies() throws java.lang.Throwable, Win32Exception, InvalidOperationException, PlatformNotSupportedException, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, ArgumentException
-
setCopies
public void setCopies(short Copies) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getFromPage
public int getFromPage() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setFromPage
public void setFromPage(int FromPage) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getLandscapeAngle
public int getLandscapeAngle() throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentException
Win32Exception
InvalidOperationException
-
getMaximumCopies
public int getMaximumCopies() throws java.lang.Throwable, ArgumentException, Win32Exception, InvalidOperationException
- Throws:
java.lang.Throwable
ArgumentException
Win32Exception
InvalidOperationException
-
getMaximumPage
public int getMaximumPage() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setMaximumPage
public void setMaximumPage(int MaximumPage) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getMinimumPage
public int getMinimumPage() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setMinimumPage
public void setMinimumPage(int MinimumPage) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getToPage
public int getToPage() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setToPage
public void setToPage(int ToPage) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, NotSupportedException, CultureNotFoundException, ObjectDisposedException, InvalidOperationException
-
getDuplex
public Duplex getDuplex() throws java.lang.Throwable, Win32Exception, InvalidOperationException, PlatformNotSupportedException, InvalidPrinterException, ArgumentNullException, ArgumentOutOfRangeException, ArrayTypeMismatchException, ArgumentException
-
setDuplex
public void setDuplex(Duplex Duplex) throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ArgumentOutOfRangeException, CultureNotFoundException, ArrayTypeMismatchException, InvalidOperationException, NotSupportedException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
-
getDefaultPageSettings
public PageSettings getDefaultPageSettings() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPrintRange
public PrintRange getPrintRange() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPrintRange
public void setPrintRange(PrintRange PrintRange) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, ObjectDisposedException, RankException, IndexOutOfRangeException, FormatException, InvalidEnumArgumentException
- Throws:
java.lang.Throwable
ArgumentException
ArgumentOutOfRangeException
ArgumentNullException
InvalidOperationException
PlatformNotSupportedException
ArrayTypeMismatchException
NotSupportedException
ObjectDisposedException
RankException
IndexOutOfRangeException
FormatException
InvalidEnumArgumentException
-
getPrinterName
public java.lang.String getPrinterName() throws java.lang.Throwable, ArgumentNullException, ArgumentException, PlatformNotSupportedException, ObjectDisposedException, InvalidOperationException, Win32Exception
- Throws:
java.lang.Throwable
ArgumentNullException
ArgumentException
PlatformNotSupportedException
ObjectDisposedException
InvalidOperationException
Win32Exception
-
setPrinterName
public void setPrinterName(java.lang.String PrinterName) throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
getPrintFileName
public java.lang.String getPrintFileName() throws java.lang.Throwable
- Throws:
java.lang.Throwable
-
setPrintFileName
public void setPrintFileName(java.lang.String PrintFileName) throws java.lang.Throwable, ArgumentException, ArgumentOutOfRangeException, ArgumentNullException, InvalidOperationException, PlatformNotSupportedException, ArrayTypeMismatchException, NotSupportedException, CultureNotFoundException, ObjectDisposedException
-
-