Class PdfSize
PDF size with its units
Inheritance
System.Object
PdfSize
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Azos.Media.PDF.Styling
Assembly: Azos.Media.dll
Syntax
public sealed class PdfSize
Constructors
PdfSize(PdfUnit, Single, Single)
Declaration
public PdfSize(PdfUnit unit, float width, float height)
Parameters
Type | Name | Description |
---|---|---|
PdfUnit | unit | |
System.Single | width | |
System.Single | height |
Properties
Height
Height measured in values calculated according to Unit property (by default: 1 pt = 1/72 inch)
Declaration
public float Height { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Unit
Pdf unit measured in default points (1 pt = 1/72 inch)
Declaration
public PdfUnit Unit { get; }
Property Value
Type | Description |
---|---|
PdfUnit |
Width
Width measured in values calculated according to Unit property (by default: 1 pt = 1/72 inch)
Declaration
public float Width { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Methods
ChangeUnits(PdfUnit)
Change unit of the size and recalculate height and width
Declaration
public PdfSize ChangeUnits(PdfUnit unit)
Parameters
Type | Name | Description |
---|---|---|
PdfUnit | unit | New unit |
Returns
Type | Description |
---|---|
PdfSize |
Equals(PdfSize)
Declaration
public bool Equals(PdfSize other)
Parameters
Type | Name | Description |
---|---|---|
PdfSize | other |
Returns
Type | Description |
---|---|
System.Boolean |
Equals(Object)
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)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.Object.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()