Orientation Enumeration

enum Orientation : Enum<ImageWriter.Paper.Orientation>

Whether the page is taller than it is wide, or the reverse.

Entries

Auto

Auto

Match the page size to the image, rather than a standard size.

Portrait

Portrait

Taller than wide.

Landscape

Landscape

Wider than tall.

Properties

entries

val entries: EnumEntries<ImageWriter.Paper.Orientation>

Returns a representation of an immutable list of all enum entries, in the order they’re declared.

name

val name: String

ordinal

val ordinal: Int

Functions

valueOf

fun valueOf(value: String): ImageWriter.Paper.Orientation

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

values

fun values(): Array<ImageWriter.Paper.Orientation>

Returns an array containing the constants of this enum type, in the order they’re declared.

Top