Class PdfUnit
Represents a unit of PDF coordinates. Units are relative to standard pdf point, which is 1/72 inch by default.
Use ByName() accessor to get/create units, or use one of the stock units: PdfUnit.Inch|Millimeter|Point...
Inheritance
System.Object
PdfUnit
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Assembly: Azos.Media.dll
public sealed class PdfUnit : INamed, IEquatable<PdfUnit>
Properties
Declaration
public static PdfUnit Centimeter { get; }
Property Value
Declaration
public static PdfUnit Default { get; }
Property Value
Declaration
public static PdfUnit Inch { get; }
Property Value
Declaration
public static PdfUnit Millimeter { get; }
Property Value
Declaration
public string Name { get; }
Property Value
Type |
Description |
System.String |
|
Declaration
public static PdfUnit Point { get; }
Property Value
Number of default user space units in current unit
(1 default user space unit is 1/72 inch)
Declaration
public float Points { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
Returns existing unit by name or throws if it is not found
Declaration
public static PdfUnit ByName(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Returns existing unit by name or creates and registers a new one
Declaration
public static PdfUnit ByName(string name, float points)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.Single |
points |
|
Returns
Declaration
public bool Equals(PdfUnit other)
Parameters
Type |
Name |
Description |
PdfUnit |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Implements
System.IEquatable<T>
Extension Methods