Show / Hide Table of Contents

Class RectangleSerialized

Serializable (pure-data) object representing a Rectangle.

Inheritance
Object
RectangleSerialized
Namespace: SadRogue.Primitives.SerializedTypes
Assembly: TheSadRogue.Primitives.dll
Syntax
public sealed class RectangleSerialized : ValueType

Fields

Height

Height of the rectangle.

Declaration
public int Height
Field Value
Type Description
Int32

Width

Width of the rectangle.

Declaration
public int Width
Field Value
Type Description
Int32

X

X-coordinate of the minimum extent of the rectangle.

Declaration
public int X
Field Value
Type Description
Int32

Y

Y-coordinate of the minimum extent of the rectangle.

Declaration
public int Y
Field Value
Type Description
Int32

Operators

Implicit(Rectangle to RectangleSerialized)

Converts from Rectangle to RectangleSerialized.

Declaration
public static implicit operator RectangleSerialized(Rectangle rect)
Parameters
Type Name Description
Rectangle rect
Returns
Type Description
RectangleSerialized

Implicit(RectangleSerialized to Rectangle)

Converts from RectangleSerialized to Rectangle.

Declaration
public static implicit operator Rectangle(RectangleSerialized rect)
Parameters
Type Name Description
RectangleSerialized rect
Returns
Type Description
Rectangle

Extension Methods

PropertyChangedEventHelpers.SafelySetProperty<TObject, TProperty>(TObject, ref TProperty, TProperty, EventHandler<ValueChangedEventArgs<TProperty>>)
PropertyChangedEventHelpers.SafelySetProperty<TObject, TProperty>(TObject, ref TProperty, TProperty, EventHandler<ValueChangedEventArgs<TProperty>>, EventHandler<ValueChangedEventArgs<TProperty>>)
In This Article
Back to top Generated by DocFX