Struct PageSize
Represents the size of a page.
Implements
System.IEquatable<PageSize>
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.GetType()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Sartorius.SAF.Pdf
Assembly: Sartorius.SAF.Pdf.dll
Syntax
public struct PageSize : IEquatable<PageSize>
Constructors
View SourcePageSize(Double, Double)
Initializes a new instance of the PageSize structure with the given width and height.
Declaration
public PageSize(double width, double height)
Parameters
Type | Name | Description |
---|---|---|
System.Double | width | The width of the page in pixels. |
System.Double | height | The height of the page in pixels. |
Properties
View SourceHeight
Gets the height.
Declaration
public readonly double Height { get; }
Property Value
Type | Description |
---|---|
System.Double |
Width
Gets the width.
Declaration
public readonly double Width { get; }
Property Value
Type | Description |
---|---|
System.Double |
Methods
View SourceEquals(PageSize)
Declaration
public bool Equals(PageSize other)
Parameters
Type | Name | Description |
---|---|---|
PageSize | 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.ValueType.Equals(System.Object)
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 |
Overrides
System.ValueType.GetHashCode()
Operators
View SourceEquality(PageSize, PageSize)
Compares two instances of PageSize for equality.
Declaration
public static bool operator ==(PageSize left, PageSize right)
Parameters
Type | Name | Description |
---|---|---|
PageSize | left | The first instance of PageSize to compare. |
PageSize | right | The second instance of PageSize to compare. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Inequality(PageSize, PageSize)
Compares two instances of PageSize for inequality.
Declaration
public static bool operator !=(PageSize left, PageSize right)
Parameters
Type | Name | Description |
---|---|---|
PageSize | left | The first instance of PageSize to compare. |
PageSize | right | The second instance of PageSize to compare. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Implements
System.IEquatable<T>