AngledRectangleF

References
public readonly struct AngledRectangleF
An angled rectangle.

Constructors

AngledRectangleF

#
public AngledRectangleF(LineF line, float descender, float ascender)
line (LineF)
descender (float)
ascender (float)

AngledRectangleF

#
public AngledRectangleF(RectangleF rectangle, PointF anchor, float angle)
rectangle (RectangleF)
anchor (PointF)
angle (float)

AngledRectangleF

#
public AngledRectangleF(RectangleF rectangle)
rectangle (RectangleF)

Properties

A

#
public PointF A { get; }

Angle

#
public float Angle { get; }
Gets the angle (in degrees) of the midline.

B

#
public PointF B { get; }

C

#
public PointF C { get; }

Centre

#
public PointF Centre { get; }
Gets the centre point of this rectangle.

D

#
public PointF D { get; }

Height

#
public float Height { get; }
Gets or sets the height of the frame.

IsEmpty

#
public bool IsEmpty { get; }
Gets whether either the width or the height have zero length.

MidLine

#
public LineF MidLine { get; }
Gets the midline of this rectangle. This line splits the height into two.

Upright

#
public AngledRectangleF Upright { get; }
Gets the upright version of this rectangle. That is, the version where the A point is on the left AND the bottom.

Width

#
public float Width { get; }
Gets or sets the width of the frame.

Methods

Contains

#
public bool Contains(PointF point)
Gets whether a point is inside this frame.
point (PointF)

PointAt

#
public PointF PointAt(float x, float y)
Evaluate the frame at normalised parameters.
x (float)
y (float)

ToPath

#
public GraphicsPath ToPath()
Create a graphics path describing this frame.