Table of Contents

Struct SizeInt32

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

Constructors

SizeInt32(int, int)

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.

IsZero
Max
Width
Zero

Methods

Ceiling(SizeDouble)
Ceiling(SizeFloat)
Equals(SizeInt32)
Equals(object?)
Floor(SizeDouble)
Floor(SizeFloat)
GetHashCode()
Min(SizeInt32, SizeInt32)
Parse(string)
Round(SizeDouble, MidpointRounding)
Round(SizeFloat, MidpointRounding)
ToString()
ToString(IFormatProvider?)
ToString(string?, IFormatProvider?)
Truncate(SizeDouble)
Truncate(SizeFloat)
TryParse(string?, out SizeInt32)

Operators

operator ==(SizeInt32, SizeInt32)
operator ==(SizeInt32, Size)
operator ==(Size, SizeInt32)
explicit operator SizeInt32(Point2Int32)
explicit operator SizeInt32(Point2Int64)
explicit operator SizeInt32(SizeDouble)
explicit operator SizeInt32(SizeFloat)
explicit operator Vector2(SizeInt32)
explicit operator SizeInt32(SizeInt64)
explicit operator SizeInt32(Vector2Int32)
explicit operator SizeInt32(Vector2Int64)
explicit operator SizeInt32(SizeF)
explicit operator SizeInt32(Vector2)
implicit operator Size(SizeInt32)
implicit operator SizeF(SizeInt32)
implicit operator SizeInt32(Size)
operator !=(SizeInt32, SizeInt32)
operator !=(SizeInt32, Size)
operator !=(Size, SizeInt32)

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 SizeInt32)