Table of Contents

Struct XSize

Namespace
PdfSharp.Drawing
Assembly
PdfSharp.dll

Represents a pair of floating-point numbers, typically the width and height of a graphical object.

[Serializable]
public struct XSize

Constructors

XSize(double, double)

Initializes a new instance of the XSize class with the specified values.

Properties

Empty

Returns an empty size, i.e. a size with a width or height less than 0.

Height

Gets or sets the height.

IsEmpty

Gets a value indicating whether this instance is empty.

Width

Gets or sets the width.

Methods

Equals(XSize)

Indicates whether this instance and a specified size are equal.

Equals(XSize, XSize)

Indicates whether these two instances are equal.

Equals(object?)

Indicates whether this instance and a specified object are equal.

GetHashCode()

Returns the hash code for this instance.

Parse(string)

Parses the size from a string.

ToString()

Converts this XSize to a human-readable string.

ToString(IFormatProvider)

Converts this XSize to a human-readable string.

ToXPoint()

Converts this XSize to an XPoint.

ToXVector()

Converts this XSize to an XVector.

Operators

operator ==(XSize, XSize)

Determines whether two size objects are equal.

explicit operator XPoint(XSize)

Performs an explicit conversion from XSize to XPoint.

explicit operator XVector(XSize)

Performs an explicit conversion from XSize to XVector.

operator !=(XSize, XSize)

Determines whether two size objects are not equal.