Struct ModelRect
- Namespace
- ComOfficeKit.Model
- Assembly
- ComOfficeKit.dll
Apple's CGRect: an origin and a size, in the units of the member that holds it.
public readonly struct ModelRect : IEquatable<ModelRect>
- Implements
- Inherited Members
Constructors
ModelRect(double, double, double, double)
Apple's CGRect: an origin and a size, in the units of the member that holds it.
public ModelRect(double X, double Y, double Width, double Height)
Parameters
XdoubleThe origin's horizontal coordinate.
YdoubleThe origin's vertical coordinate.
WidthdoubleThe width.
HeightdoubleThe height.
Properties
Height
The height.
public double Height { get; init; }
Property Value
Width
The width.
public double Width { get; init; }
Property Value
X
The origin's horizontal coordinate.
public double X { get; init; }
Property Value
Y
The origin's vertical coordinate.
public double Y { get; init; }
Property Value
Methods
Deconstruct(out double, out double, out double, out double)
public void Deconstruct(out double X, out double Y, out double Width, out double Height)
Parameters
Equals(ModelRect)
public bool Equals(ModelRect other)
Parameters
otherModelRect
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(ModelRect, ModelRect)
public static bool operator ==(ModelRect left, ModelRect right)
Parameters
Returns
operator !=(ModelRect, ModelRect)
public static bool operator !=(ModelRect left, ModelRect right)