PrintTicket.CopyCount Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets or sets the number of copies for the print job.
public:
property Nullable<int> CopyCount { Nullable<int> get(); void set(Nullable<int> value); };
public int? CopyCount { get; set; }
member this.CopyCount : Nullable<int> with get, set
Public Property CopyCount As Nullable(Of Integer)
Property Value
A nullable Int32 value that specifies how many copies to print.
Exceptions
Calling code has attempted to set the property to a value less than 1.
Remarks
A null
value for this property means that this feature setting is not specified. Also, when the value is null
, the XML versions of the PrintTicket (see SaveTo and GetXmlStream) will not contain any markup for this feature.
This property corresponds to the Print Schema's JobCopiesAllDocuments
keyword, not the DocumentCopiesAllPages
keyword, or the PageCopies
keyword.
You can test for the printer's maximum by using the MaxCopyCount property.