Back to top OpenSVG (c) Veridict AB, www.veridict.com
Edit this page

Struct Size

A rectangular size in a pixel coordinate system.

Implements
IEquatable<Size>
Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
object.Equals(object, object)
object.GetType()
object.ReferenceEquals(object, object)
Namespace: OpenSvg
Assembly: OpenSvg.dll
Syntax
public readonly record struct Size : IEquatable<Size>

Constructors

| Edit this page View Source

Size(float, float)

A rectangular size in a pixel coordinate system.

Declaration
public Size(float Width, float Height)
Parameters
Type Name Description
float Width

The width of this size.

float Height

The height of this size.

Properties

| Edit this page View Source

Height

The height of this size.

Declaration
public float Height { get; init; }
Property Value
Type Description
float
| Edit this page View Source

Width

The width of this size.

Declaration
public float Width { get; init; }
Property Value
Type Description
float

Methods

| Edit this page View Source

ToString()

Returns the fully qualified type name of this instance.

Declaration
public override string ToString()
Returns
Type Description
string

The fully qualified type name.

Overrides
ValueType.ToString()
| Edit this page View Source

Union(Size, Size)

Combines two sizes and returns the union size

Declaration
public static Size Union(Size size1, Size size2)
Parameters
Type Name Description
Size size1

The first size.

Size size2

The second size.

Returns
Type Description
Size

The union size

Implements

IEquatable<T>