Table of Contents

Struct RectFloat

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

Constructors

RectFloat(Point2Float, SizeFloat)
RectFloat(Point2Float, float, float)
RectFloat(float, float, SizeFloat)
RectFloat(float, float, float, float)

Properties

Area
Bottom
BottomLeft
BottomRight
BoxedZero
Center
HasArea
Height
Infinite
Int32Bound
Int64Bound
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.

IsFinite
IsInfinite
IsInteger
IsZero
Left
Location
Right
Size
Top
TopLeft
TopRight
Width
X
Y
Zero

Methods

Contains(Point2Float)
Contains(RectFloat)
Contains(float, float)
Equals(RectFloat)
Equals(object?)
FromCenter(Point2Float, SizeFloat)
FromCenter(Point2Float, float)
FromCenter(Point2Float, float, float)
FromCenter(float, float, float)
FromCenter(float, float, float, float)
FromCorners(Point2Float, Point2Float)
FromEdges(float, float, float, float)
GetFiniteInt32Bound(float)
GetFiniteInt64Bound(float)
GetHashCode()
GetInt32Bound(float)
GetInt64Bound(float)
Inflate(RectFloat, float, float)
Inflate(RectFloat, float, float, float, float)
Inflate(float, float)
Intersect(RectFloat)
Intersect(RectFloat, RectFloat)
IntersectsWith(RectFloat)
Offset(Point2Float)
Offset(RectFloat, Point2Float)
Offset(RectFloat, Vector2Float)
Offset(RectFloat, float, float)
Offset(float, float)
Parse(string)
Scale(RectFloat, float)
Scale(RectFloat, float, float)
Scale(float, float)
ToString()
ToString(IFormatProvider?)
ToString(string?, IFormatProvider?)
TryParse(string?, out RectFloat)
Union(RectFloat)
Union(RectFloat, RectFloat)

Operators

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

Explicit Interface Implementations

Empty

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

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