Table of Contents

Struct SizeFloat

Namespace
PaintDotNet.Rendering
Assembly
PaintDotNet.Primitives.dll
[TypeConverter(typeof(ParsableTypeConverter<SizeFloat>))]
[ValueSerializer(typeof(ParsableValueSerializer<SizeFloat>))]
public struct SizeFloat : IEquatable<SizeFloat>, IFormattable, IParsable<SizeFloat>
Implements
Inherited Members

Constructors

SizeFloat(float, float)

Properties

Area
BoxedZero
HasArea
Height
IsEmpty

Indicates whether the size is the Empty size or equivalent (negative width or negative height). Use HasArea to test whether the size is non-empty and has a non-zero area.

IsInteger
IsZero
PositiveInfinity
Width
Zero

Methods

Equals(SizeFloat)
Equals(object?)
GetHashCode()
Min(SizeFloat, SizeFloat)
Parse(string)
ToString()
ToString(IFormatProvider?)
ToString(string?, IFormatProvider?)
TryParse(string?, out SizeFloat)

Operators

operator ==(SizeFloat, SizeFloat)
operator ==(SizeFloat, SizeInt32)
operator ==(SizeFloat, SizeF)
operator ==(SizeInt32, SizeFloat)
operator ==(SizeF, SizeFloat)
explicit operator SizeFloat(Point2Double)
explicit operator SizeFloat(Point2Float)
explicit operator SizeFloat(Point2Int32)
explicit operator SizeFloat(Point2Int64)
explicit operator SizeFloat(SizeDouble)
explicit operator SizeFloat(Vector2Double)
explicit operator SizeFloat(Vector2Float)
explicit operator SizeFloat(Vector2Int32)
explicit operator SizeFloat(Vector2Int64)
explicit operator SizeFloat(Size)
implicit operator SizeF(SizeFloat)
implicit operator Size(SizeFloat)
implicit operator SizeFloat(SizeInt32)
implicit operator SizeFloat(SizeInt64)
implicit operator SizeFloat(Size)
implicit operator SizeFloat(SizeF)
operator !=(SizeFloat, SizeFloat)
operator !=(SizeFloat, SizeInt32)
operator !=(SizeFloat, SizeF)
operator !=(SizeInt32, SizeFloat)
operator !=(SizeF, SizeFloat)

Explicit Interface Implementations

Empty

Gets a special value that represents a size with no area. Note that his is not the same as a size value with zero area. See IsEmpty and HasArea for more details.

Parse(string, IFormatProvider?)
TryParse(string?, IFormatProvider?, out SizeFloat)