Aspose::Pdf::Printing::PrinterSettings Class Reference

Specifies information about how a document is printed, including the printer that prints it. More...

#include "PrinterSettings.h"

Inherits System::Object.

Public Member Functions

ASPOSE_PDF_SHARED_API int16_t get_Copies () const
 Gets the number of copies to print. More...
 
ASPOSE_PDF_SHARED_API void set_Copies (int16_t value)
 Sets the number of copies to print. More...
 
ASPOSE_PDF_SHARED_API bool get_Collate () const
 Gets a value indicating whether the print out is collated. More...
 
ASPOSE_PDF_SHARED_API void set_Collate (bool value)
 Sets a value indicating whether the print out is collated. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< PageSettingsget_DefaultPageSettings () const
 Gets the default page settings for this printer. More...
 
ASPOSE_PDF_SHARED_API Aspose::Pdf::Printing::Duplex get_Duplex () const
 Gets the printer's duplex setting. More...
 
ASPOSE_PDF_SHARED_API void set_Duplex (Aspose::Pdf::Printing::Duplex value)
 Sets the printer's duplex setting. More...
 
ASPOSE_PDF_SHARED_API int32_t get_FromPage () const
 Gets the first page to print. More...
 
ASPOSE_PDF_SHARED_API void set_FromPage (int32_t value)
 Sets the first page to print. More...
 
ASPOSE_PDF_SHARED_API int32_t get_MaximumPage () const
 Gets the highest FromPage or ToPage which may be selected in a print dialog box. More...
 
ASPOSE_PDF_SHARED_API void set_MaximumPage (int32_t value)
 Sets the highest FromPage or ToPage which may be selected in a print dialog box. More...
 
ASPOSE_PDF_SHARED_API int32_t get_MinimumPage () const
 Gets the lowest FromPage or ToPage which may be selected in a print dialog box. More...
 
ASPOSE_PDF_SHARED_API void set_MinimumPage (int32_t value)
 Sets the lowest FromPage or ToPage which may be selected in a print dialog box. More...
 
ASPOSE_PDF_SHARED_API System::String get_PrintFileName () const
 Indicates the name of the printerfile. More...
 
ASPOSE_PDF_SHARED_API void set_PrintFileName (System::String value)
 Indicates the name of the printerfile. More...
 
ASPOSE_PDF_SHARED_API Aspose::Pdf::Printing::PrintRange get_PrintRange () const
 Gets the pages the user has asked to print. More...
 
ASPOSE_PDF_SHARED_API void set_PrintRange (Aspose::Pdf::Printing::PrintRange value)
 Sets the pages the user has asked to print. More...
 
ASPOSE_PDF_SHARED_API bool get_PrintToFile () const
 Indicates whether to print to a file instead of a port. More...
 
ASPOSE_PDF_SHARED_API void set_PrintToFile (bool value)
 Indicates whether to print to a file instead of a port. More...
 
ASPOSE_PDF_SHARED_API System::String get_PrinterName () const
 Gets the name of the printer. More...
 
ASPOSE_PDF_SHARED_API void set_PrinterName (System::String value)
 Sets the name of the printer. More...
 
ASPOSE_PDF_SHARED_API System::SharedPtr< System::Uriget_PrinterUri () const
 Get or sets the URI of the network printer. More...
 
ASPOSE_PDF_SHARED_API void set_PrinterUri (System::SharedPtr< System::Uri > value)
 Get or sets the URI of the network printer. More...
 
ASPOSE_PDF_SHARED_API int32_t get_ToPage () const
 Gets the last page to print. More...
 
ASPOSE_PDF_SHARED_API void set_ToPage (int32_t value)
 Sets the last page to print. More...
 
ASPOSE_PDF_SHARED_API PrinterSettings ()
 Initializes a new instance of the PrinterSettings class. More...
 
ASPOSE_PDF_SHARED_API System::String ToString () const override
 Provides some interesting information about the PrinterSettings in String form. More...
 
- Public Member Functions inherited from System::Object
ASPOSECPP_SHARED_API Object ()
 Creates object. Initializes all internal data structures. More...
 
virtual ASPOSECPP_SHARED_API ~Object ()
 Destroys object. Frees all internal data structures. More...
 
ASPOSECPP_SHARED_API Object (Object const &x)
 Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
Objectoperator= (Object const &x)
 Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
 
ObjectSharedRefAdded ()
 Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int SharedRefRemovedSafe ()
 Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
int RemovedSharedRefs (int count)
 Decreases shared reference count by specified value. More...
 
Detail::SmartPtrCounter * WeakRefAdded ()
 Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
void WeakRefRemoved ()
 Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
 
Detail::SmartPtrCounter * GetCounter ()
 Gets reference counter data structure associated with the object. More...
 
int SharedCount () const
 Gets current value of shared reference counter. More...
 
ASPOSECPP_SHARED_API void Lock ()
 Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
 
ASPOSECPP_SHARED_API void Unlock ()
 Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
 
virtual ASPOSECPP_SHARED_API bool Equals (ptr obj)
 Compares objects using C# Object.Equals semantics. More...
 
virtual ASPOSECPP_SHARED_API int32_t GetHashCode () const
 Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
 
virtual ASPOSECPP_SHARED_API ptr MemberwiseClone () const
 Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
 
virtual ASPOSECPP_SHARED_API const TypeInfoGetType () const
 Gets actual type of object. Analog of C# System.Object.GetType() call. More...
 
virtual ASPOSECPP_SHARED_API bool Is (const TypeInfo &targetType) const
 Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
 
virtual ASPOSECPP_SHARED_API void SetTemplateWeakPtr (uint32_t argument)
 Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
 
virtual ASPOSECPP_SHARED_API bool FastCast (const Details::FastRttiBase &helper, void **out_ptr) const
 For internal purposes only. More...
 
template<>
bool Equals (float const &objA, float const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool Equals (double const &objA, double const &objB)
 Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
 
template<>
bool ReferenceEquals (String const &str, std::nullptr_t)
 Specialization of Object::ReferenceEquals for case of string and nullptr. More...
 
template<>
bool ReferenceEquals (String const &str1, String const &str2)
 Specialization of Object::ReferenceEquals for case of strings. More...
 

Protected Member Functions

bool get_IsDefaultPrinterName () const
 
virtual ASPOSE_PDF_SHARED_API ~PrinterSettings ()
 

Additional Inherited Members

- Public Types inherited from System::Object
typedef SmartPtr< Objectptr
 Alias for smart pointer type. More...
 
- Static Public Member Functions inherited from System::Object
static bool ReferenceEquals (ptr const &objA, ptr const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, T const &objB)
 Compares objects by reference. More...
 
template<typename T >
static std::enable_if<!IsSmartPtr< T >::value, bool >::type ReferenceEquals (T const &objA, std::nullptr_t)
 Reference-compares value type object with nullptr. More...
 
template<typename T1 , typename T2 >
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares reference type objects in C# style. More...
 
template<typename T1 , typename T2 >
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type Equals (T1 const &objA, T2 const &objB)
 Compares value type objects in C# style. More...
 
static const TypeInfoType ()
 Implements C# typeof(System.Object) construct. More...
 

Detailed Description

Specifies information about how a document is printed, including the printer that prints it.

Constructor & Destructor Documentation

◆ PrinterSettings()

ASPOSE_PDF_SHARED_API Aspose::Pdf::Printing::PrinterSettings::PrinterSettings ( )

Initializes a new instance of the PrinterSettings class.

◆ ~PrinterSettings()

virtual ASPOSE_PDF_SHARED_API Aspose::Pdf::Printing::PrinterSettings::~PrinterSettings ( )
protectedvirtual

Member Function Documentation

◆ get_Collate()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Printing::PrinterSettings::get_Collate ( ) const

Gets a value indicating whether the print out is collated.

◆ get_Copies()

ASPOSE_PDF_SHARED_API int16_t Aspose::Pdf::Printing::PrinterSettings::get_Copies ( ) const

Gets the number of copies to print.

◆ get_DefaultPageSettings()

ASPOSE_PDF_SHARED_API System::SharedPtr<PageSettings> Aspose::Pdf::Printing::PrinterSettings::get_DefaultPageSettings ( ) const

Gets the default page settings for this printer.

◆ get_Duplex()

ASPOSE_PDF_SHARED_API Aspose::Pdf::Printing::Duplex Aspose::Pdf::Printing::PrinterSettings::get_Duplex ( ) const

Gets the printer's duplex setting.

◆ get_FromPage()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Printing::PrinterSettings::get_FromPage ( ) const

Gets the first page to print.

◆ get_IsDefaultPrinterName()

bool Aspose::Pdf::Printing::PrinterSettings::get_IsDefaultPrinterName ( ) const
protected

◆ get_MaximumPage()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Printing::PrinterSettings::get_MaximumPage ( ) const

Gets the highest FromPage or ToPage which may be selected in a print dialog box.

◆ get_MinimumPage()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Printing::PrinterSettings::get_MinimumPage ( ) const

Gets the lowest FromPage or ToPage which may be selected in a print dialog box.

◆ get_PrinterName()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Printing::PrinterSettings::get_PrinterName ( ) const

Gets the name of the printer.

◆ get_PrinterUri()

ASPOSE_PDF_SHARED_API System::SharedPtr<System::Uri> Aspose::Pdf::Printing::PrinterSettings::get_PrinterUri ( ) const

Get or sets the URI of the network printer.

◆ get_PrintFileName()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Printing::PrinterSettings::get_PrintFileName ( ) const

Indicates the name of the printerfile.

◆ get_PrintRange()

ASPOSE_PDF_SHARED_API Aspose::Pdf::Printing::PrintRange Aspose::Pdf::Printing::PrinterSettings::get_PrintRange ( ) const

Gets the pages the user has asked to print.

◆ get_PrintToFile()

ASPOSE_PDF_SHARED_API bool Aspose::Pdf::Printing::PrinterSettings::get_PrintToFile ( ) const

Indicates whether to print to a file instead of a port.

◆ get_ToPage()

ASPOSE_PDF_SHARED_API int32_t Aspose::Pdf::Printing::PrinterSettings::get_ToPage ( ) const

Gets the last page to print.

◆ set_Collate()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Printing::PrinterSettings::set_Collate ( bool  value)

Sets a value indicating whether the print out is collated.

◆ set_Copies()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Printing::PrinterSettings::set_Copies ( int16_t  value)

Sets the number of copies to print.

◆ set_Duplex()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Printing::PrinterSettings::set_Duplex ( Aspose::Pdf::Printing::Duplex  value)

Sets the printer's duplex setting.

◆ set_FromPage()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Printing::PrinterSettings::set_FromPage ( int32_t  value)

Sets the first page to print.

◆ set_MaximumPage()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Printing::PrinterSettings::set_MaximumPage ( int32_t  value)

Sets the highest FromPage or ToPage which may be selected in a print dialog box.

◆ set_MinimumPage()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Printing::PrinterSettings::set_MinimumPage ( int32_t  value)

Sets the lowest FromPage or ToPage which may be selected in a print dialog box.

◆ set_PrinterName()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Printing::PrinterSettings::set_PrinterName ( System::String  value)

Sets the name of the printer.

◆ set_PrinterUri()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Printing::PrinterSettings::set_PrinterUri ( System::SharedPtr< System::Uri value)

Get or sets the URI of the network printer.

◆ set_PrintFileName()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Printing::PrinterSettings::set_PrintFileName ( System::String  value)

Indicates the name of the printerfile.

◆ set_PrintRange()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Printing::PrinterSettings::set_PrintRange ( Aspose::Pdf::Printing::PrintRange  value)

Sets the pages the user has asked to print.

◆ set_PrintToFile()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Printing::PrinterSettings::set_PrintToFile ( bool  value)

Indicates whether to print to a file instead of a port.

◆ set_ToPage()

ASPOSE_PDF_SHARED_API void Aspose::Pdf::Printing::PrinterSettings::set_ToPage ( int32_t  value)

Sets the last page to print.

◆ ToString()

ASPOSE_PDF_SHARED_API System::String Aspose::Pdf::Printing::PrinterSettings::ToString ( ) const
overridevirtual

Provides some interesting information about the PrinterSettings in String form.

Returns
String representing PrinterSettings.

Reimplemented from System::Object.