Dil

PrintDocumentInfo.Builder.SetPageCount(Int32) Method

Definition

Sets the total number of pages.

[Android.Runtime.Register("setPageCount", "(I)Landroid/print/PrintDocumentInfo$Builder;", "")]
public Android.Print.PrintDocumentInfo.Builder SetPageCount(int pageCount);
[<Android.Runtime.Register("setPageCount", "(I)Landroid/print/PrintDocumentInfo$Builder;", "")>]
member this.SetPageCount : int -> Android.Print.PrintDocumentInfo.Builder

Parameters

pageCount
Int32

The number of pages. Must be greater than or equal to zero or PrintDocumentInfo.PAGE_COUNT_UNKNOWN. Value is -1 or greater

Returns

This builder. This value cannot be null.

Attributes

Remarks

Sets the total number of pages.

Default: PrintDocumentInfo.PAGE_COUNT_UNKNOWN

Android reference for android.print.PrintDocumentInfo.Builder.setPageCount.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to