Table of Contents

Class PaperSize

Namespace
C4.Net
Assembly
C4.Net.Core.dll

Represents a named paper or slide size that can be assigned to a view.

public class PaperSize
Inheritance
PaperSize
Inherited Members

Fields

A0_Landscape

Represents an A0 page in landscape orientation.

public static readonly PaperSize A0_Landscape

Field Value

PaperSize

A0_Portrait

Represents an A0 page in portrait orientation.

public static readonly PaperSize A0_Portrait

Field Value

PaperSize

A1_Landscape

Represents an A1 page in landscape orientation.

public static readonly PaperSize A1_Landscape

Field Value

PaperSize

A1_Portrait

Represents an A1 page in portrait orientation.

public static readonly PaperSize A1_Portrait

Field Value

PaperSize

A2_Landscape

Represents an A2 page in landscape orientation.

public static readonly PaperSize A2_Landscape

Field Value

PaperSize

A2_Portrait

Represents an A2 page in portrait orientation.

public static readonly PaperSize A2_Portrait

Field Value

PaperSize

A3_Landscape

Represents an A3 page in landscape orientation.

public static readonly PaperSize A3_Landscape

Field Value

PaperSize

A3_Portrait

Represents an A3 page in portrait orientation.

public static readonly PaperSize A3_Portrait

Field Value

PaperSize

A4_Landscape

Represents an A4 page in landscape orientation.

public static readonly PaperSize A4_Landscape

Field Value

PaperSize

A4_Portrait

Represents an A4 page in portrait orientation.

public static readonly PaperSize A4_Portrait

Field Value

PaperSize

A5_Landscape

Represents an A5 page in landscape orientation.

public static readonly PaperSize A5_Landscape

Field Value

PaperSize

A5_Portrait

Represents an A5 page in portrait orientation.

public static readonly PaperSize A5_Portrait

Field Value

PaperSize

A6_Landscape

Represents an A6 page in landscape orientation.

public static readonly PaperSize A6_Landscape

Field Value

PaperSize

A6_Portrait

Represents an A6 page in portrait orientation.

public static readonly PaperSize A6_Portrait

Field Value

PaperSize

Represents US Legal paper in landscape orientation.

public static readonly PaperSize Legal_Landscape

Field Value

PaperSize

Represents US Legal paper in portrait orientation.

public static readonly PaperSize Legal_Portrait

Field Value

PaperSize

Letter_Landscape

Represents US Letter paper in landscape orientation.

public static readonly PaperSize Letter_Landscape

Field Value

PaperSize

Letter_Portrait

Represents US Letter paper in portrait orientation.

public static readonly PaperSize Letter_Portrait

Field Value

PaperSize

Slide_16_10

Represents a 16:10 slide canvas.

public static readonly PaperSize Slide_16_10

Field Value

PaperSize

Slide_16_9

Represents a 16:9 slide canvas.

public static readonly PaperSize Slide_16_9

Field Value

PaperSize

Slide_4_3

Represents a 4:3 slide canvas.

public static readonly PaperSize Slide_4_3

Field Value

PaperSize

Properties

Key

Identifies the paper size in serialized view data.

public string Key { get; }

Property Value

string

Name

Provides the human-readable paper size name.

public string Name { get; }

Property Value

string

Orientation

Indicates whether the size is portrait or landscape.

public Orientation Orientation { get; }

Property Value

Orientation

height

Stores the height in pixels.

public int height { get; }

Property Value

int

width

Stores the width in pixels.

public int width { get; }

Property Value

int

Methods

GetPaperSize(string)

Resolves a paper size by key.

public static PaperSize GetPaperSize(string key)

Parameters

key string

The serialized paper size key.

Returns

PaperSize

The matching paper size, or A4_Portrait when the key is null or unknown.