The recording of the first ever ReactiveUI virtual conference is available on our YouTube Channel.

RectangleMathExtensions Class

Summary

Extension methods to help with operations associated with the RectangleF struct.
Namespace
Splat
Base Types
  • object
graph BT Type-->Base0["object"] Type["RectangleMathExtensions"] class Type type-node

Syntax

public static class RectangleMathExtensions

Methods

Name Value Summary
Center(RectangleF) PointF
Determine the center of a Rectangle.
static
Copy(RectangleF, float?, float?, float?, float?, float?, float?) RectangleF
Creates a new RectangleF as a Copy of an existing one . value is useful when you have a rectangle that is almost what you want, but you just want to change a couple properties.
static
Divide(RectangleF, float, RectEdge) Tuple<RectangleF, RectangleF>
Divide the specified Rectangle into two component rectangles.
static
DivideWithPadding(RectangleF, float, float, RectEdge) Tuple<RectangleF, RectangleF>
Divide the specified Rectangle into two component rectangles, adding a padding between them.
static
InvertWithin(RectangleF, RectangleF) RectangleF
Vertically inverts the coordinates of the rectangle within containingRect. value can effectively be used to change the coordinate system of a rectangle. For example, if `rect` is defined for a coordinate system starting at the top-left, the result will be a rectangle relative to the bottom-left.
static

Extension Methods

Name Value Summary
InvokeViewModelAction<T>(Action<T>) object
This is a thing I lifted from Prism.