Struct Size
A rectangular size in a pixel coordinate system.
Implements
Inherited Members
Namespace: OpenSvg
Assembly: OpenSvg.dll
Syntax
public readonly record struct Size : IEquatable<Size>
Constructors
| Edit this page View SourceSize(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 SourceHeight
The height of this size.
Declaration
public float Height { get; init; }
Property Value
Type | Description |
---|---|
float |
Width
The width of this size.
Declaration
public float Width { get; init; }
Property Value
Type | Description |
---|---|
float |
Methods
| Edit this page View SourceToString()
Returns the fully qualified type name of this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | The fully qualified type name. |
Overrides
| Edit this page View SourceUnion(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 |