Skip to main content

Windows Dev Center

PrintTaskOptions.MediaSize | mediaSize property

Gets or sets the media size option of the print task.

Syntax


var mediaSize = printTaskOptions.mediaSize;
printTaskOptions.mediaSize = mediaSize;

public PrintMediaSize MediaSize { get; set; }

Public Property MediaSize As PrintMediaSize

public:
property PrintMediaSize MediaSize { 
   PrintMediaSize get();
   void set (PrintMediaSize value);
}

Property value

Type: PrintMediaSize

The media size 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