Table of Contents

Class PaperSize

Namespace
Gtk
Assembly
Gtk-4.0.dll
public sealed class PaperSize : BoxedRecord, IEquatable<PaperSize>
Inheritance
PaperSize
Implements
Inherited Members

Constructors

PaperSize(PaperSizeOwnedHandle)

public PaperSize(PaperSizeOwnedHandle handle)

Parameters

handle PaperSizeOwnedHandle

Properties

Handle

public PaperSizeOwnedHandle Handle { get; }

Property Value

PaperSizeOwnedHandle

Methods

Copy()

public PaperSize Copy()

Returns

PaperSize

Equals(PaperSize?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(PaperSize? other)

Parameters

other PaperSize

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Free()

public void Free()

GetDefault()

public static string GetDefault()

Returns

string

GetDefaultBottomMargin(Unit)

public double GetDefaultBottomMargin(Unit unit)

Parameters

unit Unit

Returns

double

GetDefaultLeftMargin(Unit)

public double GetDefaultLeftMargin(Unit unit)

Parameters

unit Unit

Returns

double

GetDefaultRightMargin(Unit)

public double GetDefaultRightMargin(Unit unit)

Parameters

unit Unit

Returns

double

GetDefaultTopMargin(Unit)

public double GetDefaultTopMargin(Unit unit)

Parameters

unit Unit

Returns

double

GetDisplayName()

public string GetDisplayName()

Returns

string

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

GetHeight(Unit)

public double GetHeight(Unit unit)

Parameters

unit Unit

Returns

double

GetName()

public string GetName()

Returns

string

GetPaperSizes(bool)

public static List GetPaperSizes(bool includeCustom)

Parameters

includeCustom bool

Returns

List

GetPpdName()

public string GetPpdName()

Returns

string

GetWidth(Unit)

public double GetWidth(Unit unit)

Parameters

unit Unit

Returns

double

IsCustom()

public bool IsCustom()

Returns

bool

IsEqual(PaperSize)

public bool IsEqual(PaperSize size2)

Parameters

size2 PaperSize

Returns

bool

IsIpp()

public bool IsIpp()

Returns

bool

New(string?)

public static PaperSize New(string? name)

Parameters

name string

Returns

PaperSize

NewCustom(string, string, double, double, Unit)

public static PaperSize NewCustom(string name, string displayName, double width, double height, Unit unit)

Parameters

name string
displayName string
width double
height double
unit Unit

Returns

PaperSize

NewFromGvariant(Variant)

public static PaperSize NewFromGvariant(Variant variant)

Parameters

variant Variant

Returns

PaperSize

NewFromIpp(string, double, double)

public static PaperSize NewFromIpp(string ippName, double width, double height)

Parameters

ippName string
width double
height double

Returns

PaperSize

NewFromKeyFile(KeyFile, string?)

public static PaperSize NewFromKeyFile(KeyFile keyFile, string? groupName)

Parameters

keyFile KeyFile
groupName string

Returns

PaperSize

NewFromPpd(string, string, double, double)

public static PaperSize NewFromPpd(string ppdName, string ppdDisplayName, double width, double height)

Parameters

ppdName string
ppdDisplayName string
width double
height double

Returns

PaperSize

SetSize(double, double, Unit)

public void SetSize(double width, double height, Unit unit)

Parameters

width double
height double
unit Unit

ToGvariant()

public Variant ToGvariant()

Returns

Variant

ToKeyFile(KeyFile, string)

public void ToKeyFile(KeyFile keyFile, string groupName)

Parameters

keyFile KeyFile
groupName string