[]
        
(Showing Draft Content)

GrapeCity.Documents.Word.PageSize

Class PageSize

Namespace
GrapeCity.Documents.Word
Assembly
GcDocs.Word.dll

Represents page size and orientation for all pages in a section.

public class PageSize
Inheritance
object
PageSize
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()

Properties

Code

Gets or sets an optional value that can be used to store an identifier for the current paper size.

public ushort Code { get; set; }

Property Value

ushort

Height

Gets or sets the page height in points.

public float Height { get; set; }

Property Value

float

Orientation

Gets or sets the orientation of a page.

Changing Orientation swaps Width and Height.

public PageOrientation Orientation { get; set; }

Property Value

PageOrientation

PaperSize

Gets or sets the paper size.

Setting this property updates Width and Height, unless the value is PaperCustom.

public PaperSize PaperSize { get; set; }

Property Value

PaperSize

Width

Gets or sets the page width in points.

public float Width { get; set; }

Property Value

float

Methods

ClearFormatting()

Resets page size to default values.

public void ClearFormatting()