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
Methods
Copy()
public PaperSize Copy()
Returns
Equals(PaperSize?)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(PaperSize? other)
Parameters
other
PaperSizeAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
obj
objectThe object to compare with the current object.
Returns
Free()
public void Free()
GetDefault()
public static string GetDefault()
Returns
GetDefaultBottomMargin(Unit)
public double GetDefaultBottomMargin(Unit unit)
Parameters
unit
Unit
Returns
GetDefaultLeftMargin(Unit)
public double GetDefaultLeftMargin(Unit unit)
Parameters
unit
Unit
Returns
GetDefaultRightMargin(Unit)
public double GetDefaultRightMargin(Unit unit)
Parameters
unit
Unit
Returns
GetDefaultTopMargin(Unit)
public double GetDefaultTopMargin(Unit unit)
Parameters
unit
Unit
Returns
GetDisplayName()
public string GetDisplayName()
Returns
GetGType()
public static Type GetGType()
Returns
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
GetName()
public string GetName()
Returns
GetPaperSizes(bool)
public static List GetPaperSizes(bool includeCustom)
Parameters
includeCustom
bool
Returns
GetPpdName()
public string GetPpdName()
Returns
GetWidth(Unit)
public double GetWidth(Unit unit)
Parameters
unit
Unit
Returns
IsCustom()
public bool IsCustom()
Returns
IsEqual(PaperSize)
public bool IsEqual(PaperSize size2)
Parameters
size2
PaperSize
Returns
IsIpp()
public bool IsIpp()
Returns
New(string?)
public static PaperSize New(string? name)
Parameters
name
string
Returns
NewCustom(string, string, double, double, Unit)
public static PaperSize NewCustom(string name, string displayName, double width, double height, Unit unit)
Parameters
Returns
NewFromGvariant(Variant)
public static PaperSize NewFromGvariant(Variant variant)
Parameters
variant
Variant
Returns
NewFromIpp(string, double, double)
public static PaperSize NewFromIpp(string ippName, double width, double height)
Parameters
Returns
NewFromKeyFile(KeyFile, string?)
public static PaperSize NewFromKeyFile(KeyFile keyFile, string? groupName)
Parameters
Returns
NewFromPpd(string, string, double, double)
public static PaperSize NewFromPpd(string ppdName, string ppdDisplayName, double width, double height)
Parameters
Returns
SetSize(double, double, Unit)
public void SetSize(double width, double height, Unit unit)
Parameters
ToGvariant()
public Variant ToGvariant()
Returns
ToKeyFile(KeyFile, string)
public void ToKeyFile(KeyFile keyFile, string groupName)