Namespace: PdfSharp.Drawing
Represents a pair of floating-point numbers, typically the width and height of a graphical object.
public struct XSize
Inheritance Object → ValueType → XSize
Implements IFormattable
Returns an empty size, i.e. a size with a width or height less than 0.
public static XSize Empty { get; }
Gets a value indicating whether this instance is empty.
public bool IsEmpty { get; }
Gets or sets the width.
public double Width { get; set; }
Gets or sets the height.
public double Height { get; set; }
Initializes a new instance of the XSize class with the specified values.
XSize(double width, double height)
width
Double
height
Double
Indicates whether these two instances are equal.
bool Equals(XSize size1, XSize size2)
size1
XSize
size2
XSize
Indicates whether this instance and a specified object are equal.
bool Equals(object o)
o
Object
Indicates whether this instance and a specified size are equal.
bool Equals(XSize value)
value
XSize
Returns the hash code for this instance.
int GetHashCode()
Parses the size from a string.
XSize Parse(string source)
source
String
Converts this XSize to an XPoint.
XPoint ToXPoint()
Converts this XSize to an XVector.
XVector ToXVector()
Converts this XSize to a human readable string.
string ToString()
Converts this XSize to a human readable string.
string ToString(IFormatProvider provider)
provider
IFormatProvider
string ConvertToString(string format, IFormatProvider provider)
format
String
provider
IFormatProvider