PrinterCapabilitiesInfo.Builder.SetColorModes(Int32, Int32) Method
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.
Sets the color modes.
[Android.Runtime.Register("setColorModes", "(II)Landroid/print/PrinterCapabilitiesInfo$Builder;", "")]
public Android.Print.PrinterCapabilitiesInfo.Builder SetColorModes(int colorModes, int defaultColorMode);
[<Android.Runtime.Register("setColorModes", "(II)Landroid/print/PrinterCapabilitiesInfo$Builder;", "")>]
member this.SetColorModes : int * int -> Android.Print.PrinterCapabilitiesInfo.Builder
Parameters
- colorModes
- Int32
The color mode bit mask. Use 0 or a combination of Monochrome and Color, cast to int. A zero mask does not satisfy the color mode requirement for Build().
- defaultColorMode
- Int32
The default color mode. Use either Monochrome or Color, cast to int.
Returns
This builder. Note: On platform version 19 (KitKat), specifying only Monochrome leads to a print spooler crash. Declare both color modes or Color, cast to int. This value cannot be null.
- Attributes
Remarks
Sets the color modes.
Required: Yes
Android reference for android.print.PrinterCapabilitiesInfo.Builder.setColorModes.
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.