Language

PrintAttributes.MediaSize Class

Definition

This class specifies a supported media size.

[Android.Runtime.Register("android/print/PrintAttributes$MediaSize", DoNotGenerateAcw=true)]
public sealed class PrintAttributes.MediaSize : Java.Lang.Object
[<Android.Runtime.Register("android/print/PrintAttributes$MediaSize", DoNotGenerateAcw=true)>]
type PrintAttributes.MediaSize = class
    inherit Object
Inheritance
PrintAttributes.MediaSize
Attributes

Remarks

This class specifies a supported media size. Media size is the dimension of the media on which the content is printed. For example, the #NA_LETTER media size designates a page with size 8.5" x 11".

Java documentation for android.print.PrintAttributes.MediaSize.

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.

Constructors

Name Description
PrintAttributes.MediaSize(String, String, Int32, Int32)

Creates a new instance.

Properties

Name Description
AnsiC

North America ANSI C media size: 17" x 22" (432mm x 559mm)

AnsiD

North America ANSI D media size: 22" x 34" (559mm x 864mm)

AnsiE

North America ANSI E media size: 34" x 44" (864mm x 1118mm)

AnsiF

North America ANSI F media size: 28" x 40" (711mm x 1016mm)

Class

Returns the runtime class of this Object.

(Inherited from Object)
Handle

The handle to the underlying Android instance.

(Inherited from Object)
HeightMils

Gets the media height in mils (thousandths of an inch).

Id

Gets the unique media size id.

IsoA0

ISO A0 media size: 841mm x 1189mm (33.11" x 46.81")

IsoA1

ISO A1 media size: 594mm x 841mm (23.39" x 33.11")

IsoA10

ISO A10 media size: 26mm x 37mm (1.02" x 1.46")

IsoA2

ISO A2 media size: 420mm x 594mm (16.54" x 23.39")

IsoA3

ISO A3 media size: 297mm x 420mm (11.69" x 16.54")

IsoA4

ISO A4 media size: 210mm x 297mm (8.27" x 11.69")

IsoA5

ISO A5 media size: 148mm x 210mm (5.83" x 8.27")

IsoA6

ISO A6 media size: 105mm x 148mm (4.13" x 5.83")

IsoA7

ISO A7 media size: 74mm x 105mm (2.91" x 4.13")

IsoA8

ISO A8 media size: 52mm x 74mm (2.05" x 2.91")

IsoA9

ISO A9 media size: 37mm x 52mm (1.46" x 2.05")

IsoB0

ISO B0 media size: 1000mm x 1414mm (39.37" x 55.67")

IsoB1

ISO B1 media size: 707mm x 1000mm (27.83" x 39.37")

IsoB10

ISO B10 media size: 31mm x 44mm (1.22" x 1.73")

IsoB2

ISO B2 media size: 500mm x 707mm (19.69" x 27.83")

IsoB3

ISO B3 media size: 353mm x 500mm (13.90" x 19.69")

IsoB4

ISO B4 media size: 250mm x 353mm (9.84" x 13.90")

IsoB5

ISO B5 media size: 176mm x 250mm (6.93" x 9.84")

IsoB6

ISO B6 media size: 125mm x 176mm (4.92" x 6.93")

IsoB7

ISO B7 media size: 88mm x 125mm (3.46" x 4.92")

IsoB8

ISO B8 media size: 62mm x 88mm (2.44" x 3.46")

IsoB9

ISO B9 media size: 44mm x 62mm (1.73" x 2.44")

IsoC0

ISO C0 media size: 917mm x 1297mm (36.10" x 51.06")

IsoC1

ISO C1 media size: 648mm x 917mm (25.51" x 36.10")

IsoC10

ISO C10 media size: 28mm x 40mm (1.10" x 1.57")

IsoC2

ISO C2 media size: 458mm x 648mm (18.03" x 25.51")

IsoC3

ISO C3 media size: 324mm x 458mm (12.76" x 18.03")

IsoC4

ISO C4 media size: 229mm x 324mm (9.02" x 12.76")

IsoC5

ISO C5 media size: 162mm x 229mm (6.38" x 9.02")

IsoC6

ISO C6 media size: 114mm x 162mm (4.49" x 6.38")

IsoC7

ISO C7 media size: 81mm x 114mm (3.19" x 4.49")

IsoC8

ISO C8 media size: 57mm x 81mm (2.24" x 3.19")

IsoC9

ISO C9 media size: 40mm x 57mm (1.57" x 2.24")

IsPortrait

Gets whether this media size is in portrait which is the height is greater or equal to the width.

JisB0

Japanese JIS B0 media size: 1030mm x 1456mm (40.551" x 57.323")

JisB1

Japanese JIS B1 media size: 728mm x 1030mm (28.661" x 40.551")

JisB10

Japanese JIS B10 media size: 32mm x 45mm (1.259" x 1.772")

JisB2

Japanese JIS B2 media size: 515mm x 728mm (20.276" x 28.661")

JisB3

Japanese JIS B3 media size: 364mm x 515mm (14.331" x 20.276")

JisB4

Japanese JIS B4 media size: 257mm x 364mm (10.118" x 14.331")

JisB5

Japanese JIS B5 media size: 182mm x 257mm (7.165" x 10.118")

JisB6

Japanese JIS B6 media size: 128mm x 182mm (5.049" x 7.165")

JisB7

Japanese JIS B7 media size: 91mm x 128mm (3.583" x 5.049")

JisB8

Japanese JIS B8 media size: 64mm x 91mm (2.52" x 3.583")

JisB9

Japanese JIS B9 media size: 45mm x 64mm (1.772" x 2.52")

JisExec

Japanese JIS Exec media size: 216mm x 330mm (8.504" x 12.992")

JniIdentityHashCode

Gets the identity hash code assigned to this Java peer by the interop runtime.

(Inherited from Object)
JniManagedPeerState (Inherited from JavaObject)
JniPeerMembers
JpnChou2

Japanese Chou2 media size: 111.1mm x 146mm (4.374" x 5.748")

JpnChou3

Japanese Chou3 media size: 120mm x 235mm (4.724" x 9.252")

JpnChou4

Japanese Chou4 media size: 90mm x 205mm (3.543" x 8.071")

JpnHagaki

Japanese Hagaki media size: 100mm x 148mm (3.937" x 5.827")

JpnKahu

Japanese Kahu media size: 240mm x 322.1mm (9.449" x 12.681")

JpnKaku2

Japanese Kaku2 media size: 240mm x 332mm (9.449" x 13.071")

JpnOePhotoL

Japanese Photo L media size: 89mm x 127mm (3.5 x 5")

JpnOufuku

Japanese Oufuku media size: 148mm x 200mm (5.827" x 7.874")

JpnYou4

Japanese You4 media size: 105mm x 235mm (4.134" x 9.252")

NaArchA

North America Arch A media size: 9" x 12" (229mm x 305mm)

NaArchB

North America Arch B media size: 12" x 18" (305mm x 457mm)

NaArchC

North America Arch C media size: 18" x 24" (457mm x 610mm)

NaArchD

North America Arch D media size: 24" x 36" (610mm x 914mm)

NaArchE

North America Arch E media size: 36" x 48" (914mm x 1219mm)

NaArchE1

North America Arch E1 media size: 30" x 42" (762mm x 1067mm)

NaFoolscap

North America Foolscap media size: 8" x 13" (203mm x 330mm)

NaGovtLetter

North America Government-Letter media size: 8.0" x 10.5" (203mm x 267mm)

NaIndex3x5

North America Index Card 3x5 media size: 3" x 5" (76mm x 127mm)

NaIndex4x6

North America Index Card 4x6 media size: 4" x 6" (102mm x 152mm)

NaIndex5x8

North America Index Card 5x8 media size: 5" x 8" (127mm x 203mm)

NaJuniorLegal

North America Junior Legal media size: 8.0" x 5.0" (203mm × 127mm)

NaLedger

North America Ledger media size: 17" x 11" (432mm × 279mm)

NaLegal

North America Legal media size: 8.5" x 14" (216mm x 356mm)

NaLetter

North America Letter media size: 8.5" x 11" (216mm x 279mm)

NaMonarch

North America Monarch media size: 7.25" x 10.5" (184mm x 267mm)

NaQuarto

North America Quarto media size: 8" x 10" (203mm x 254mm)

NaSuperB

North America Super B media size: 13" x 19" (330mm x 483mm)

NaTabloid

North America Tabloid media size: 11" x 17" (279mm × 432mm)

OmDaiPaKai

Chinese Dai Pa Kai media size: 275mm x 395mm (10.827" x 15.551")

OmJuuroKuKai

Chinese Jurro Ku Kai media size: 198mm x 275mm (7.796" x 10.827")

OmPaKai

Chinese Pa Kai media size: 267mm x 389mm (10.512" x 15.315")

PeerReference

Gets the JNI object reference for this Java peer.

(Inherited from Object)
Prc1

Chinese PRC 1 media size: 102mm x 165mm (4.015" x 6.496")

Prc10

Chinese PRC 10 media size: 324mm x 458mm (12.756" x 18.032")

Prc16k

Chinese PRC 16k media size: 146mm x 215mm (5.749" x 8.465")

Prc2

Chinese PRC 2 media size: 102mm x 176mm (4.015" x 6.929")

Prc3

Chinese PRC 3 media size: 125mm x 176mm (4.921" x 6.929")

Prc4

Chinese PRC 4 media size: 110mm x 208mm (4.330" x 8.189")

Prc5

Chinese PRC 5 media size: 110mm x 220mm (4.330" x 8.661")

Prc6

Chinese PRC 6 media size: 120mm x 320mm (4.724" x 12.599")

Prc7

Chinese PRC 7 media size: 160mm x 230mm (6.299" x 9.055")

Prc8

Chinese PRC 8 media size: 120mm x 309mm (4.724" x 12.165")

Prc9

Chinese PRC 9 media size: 229mm x 324mm (9.016" x 12.756")

Roc16k

Taiwan 16K media size: 195mm x 270mm (7.677" x 10.629")

Roc8k

Taiwan 8K media size: 270mm x 390mm (10.629" x 15.3543")

ThresholdClass

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
ThresholdType

This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

(Inherited from Object)
UnknownLandscape

Unknown media size in landscape mode.

UnknownPortrait

Unknown media size in portrait mode.

WidthMils

Gets the media width in mils (thousandths of an inch).

Methods

Name Description
AsLandscape()

Returns a new media size instance in a landscape orientation, where the height is the lesser dimension.

AsPortrait()

Returns a new media size instance in a portrait orientation, where the height is the greater dimension.

Clone()

Creates and returns a copy of this object.

(Inherited from Object)
Construct(JniObjectReference, JniObjectReferenceOptions) (Inherited from JavaObject)
Dispose()

Releases the resources held by this Java peer.

(Inherited from Object)
Dispose(Boolean)

Releases the resources held by this Java peer.

(Inherited from Object)
DisposeUnlessReferenced() (Inherited from JavaObject)
Equals(Object) (Inherited from JavaObject)
Equals(Object)

Indicates whether some other object is "equal to" this one.

(Inherited from Object)
GetHashCode()

Returns a hash code value for the object.

(Inherited from Object)
GetLabel(PackageManager)

Gets the human readable media size label.

JavaFinalize()
Obsolete.

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

(Inherited from Object)
Notify()

Wakes up a single thread that is waiting on this object's monitor.

(Inherited from Object)
NotifyAll()

Wakes up all threads that are waiting on this object's monitor.

(Inherited from Object)
SetHandle(IntPtr, JniHandleOwnership)

Sets the Handle property.

(Inherited from Object)
SetPeerReference(JniObjectReference, JniObjectReferenceOptions) (Inherited from JavaObject)
ToArray<T>()

Creates a managed array from this Java array wrapper.

(Inherited from Object)
ToString()

Returns a string representation of the object.

(Inherited from Object)
UnregisterFromRuntime()

Unregisters this Java peer from the interop runtime.

(Inherited from Object)
Wait()

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>.

(Inherited from Object)
Wait(Int64, Int32)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)
Wait(Int64)

Causes the current thread to wait until it is awakened, typically by being <em>notified</em> or <em>interrupted</em>, or until a certain amount of real time has elapsed.

(Inherited from Object)

Explicit Interface Implementations

Name Description
IJavaPeerable.Disposed() (Inherited from JavaObject)
IJavaPeerable.Finalized() (Inherited from JavaObject)
IJavaPeerable.JniObjectReferenceControlBlock (Inherited from JavaObject)
IJavaPeerable.SetJniIdentityHashCode(Int32) (Inherited from JavaObject)
IJavaPeerable.SetJniManagedPeerState(JniManagedPeerStates) (Inherited from JavaObject)
IJavaPeerable.SetPeerReference(JniObjectReference) (Inherited from JavaObject)

Extension Methods

Name Description
GetJniTypeName(IJavaPeerable)

Gets the JNI name of the type of the instance self.

JavaAs<TResult>(IJavaPeerable)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
TryJavaCast<TResult>(IJavaPeerable, TResult)

Try to coerce self to type TResult, checking that the coercion is valid on the Java side.

Applies to