Table of Contents

Struct RectInt32

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

Constructors

RectInt32(Point2Int32, SizeInt32)
RectInt32(Point2Int32, int, int)
RectInt32(int, int, SizeInt32)
RectInt32(int, int, int, int)

Properties

Area
Bottom
BottomLeft
BottomRight
BoxedZero
HasArea
Height
IsEmpty

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

IsLogicallyInfinite
IsZero
Left
Location
LogicallyInfinite
Right
Size
Top
TopLeft
TopRight
Width
X
Y
Zero

Methods

Ceiling(RectDouble)
Ceiling(RectFloat)
Contains(Point2Int32)
Contains(RectDouble)
Contains(RectInt32)
Contains(int, int)
Equals(RectInt32)
Equals(object?)
Floor(RectDouble)
Floor(RectFloat)
FromCorners(Point2Int32, Point2Int32)
FromEdges(int, int, int, int)
GetHashCode()
Inflate(RectInt32, int, int)
Inflate(RectInt32, int, int, int, int)
Inflate(int, int)
Intersect(RectInt32)
Intersect(RectInt32, RectInt32)
IntersectsWith(RectInt32)
Offset(Point2Int32)
Offset(RectInt32, Point2Int32)
Offset(RectInt32, Vector2Int32)
Offset(RectInt32, int, int)
Offset(int, int)
Parse(string)
Round(RectDouble, MidpointRounding)
Round(RectFloat, MidpointRounding)
Scale(RectInt32, int)
Scale(RectInt32, int, int)
Scale(int, int)
ToString()
ToString(IFormatProvider?)
ToString(string?, IFormatProvider?)
Truncate(RectDouble)
Truncate(RectFloat)
TryParse(string?, out RectInt32)
Union(RectInt32)
Union(RectInt32, RectInt32)

Operators

operator ==(RectInt32, RectInt32)
operator ==(RectInt32, Rectangle)
operator ==(Rectangle, RectInt32)
explicit operator RectInt32(RectDouble)
explicit operator RectInt32(RectFloat)
explicit operator RectInt32(RectInt64)
implicit operator Rectangle(RectInt32)
implicit operator RectangleF(RectInt32)
implicit operator RectInt32(Rectangle)
operator !=(RectInt32, RectInt32)
operator !=(RectInt32, Rectangle)
operator !=(Rectangle, RectInt32)

Explicit Interface Implementations

Empty

Gets a special value that represents a rectangle with no position or area.

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