Skip to main content

Windows Dev Center

PrintTaskOptions.MediaType | mediaType property

Gets or sets the media type option for the print task.

Syntax


var mediaType = printTaskOptions.mediaType;
printTaskOptions.mediaType = mediaType;

public PrintMediaType MediaType { get; set; }

Public Property MediaType As PrintMediaType

public:
property PrintMediaType MediaType { 
   PrintMediaType get();
   void set (PrintMediaType value);
}

Property value

Type: PrintMediaType

The media type option.

Requirements (Windows 10 device family)

Device family

Universal

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Graphics.Printing
Windows::Graphics::Printing [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.Graphics.Printing
Windows::Graphics::Printing [C++]

Metadata

Windows.winmd

See also

PrintTaskOptions