Table of Contents

Struct Size

Namespace
FlowGraph.Core.Elements
Assembly
FlowGraph.Core.dll

Represents a size with width and height. Used for viewport and element dimensions.

public readonly record struct Size : IEquatable<Size>
Implements
Inherited Members

Constructors

Size(double, double)

Represents a size with width and height. Used for viewport and element dimensions.

public Size(double Width, double Height)

Parameters

Width double

The width.

Height double

The height.

Properties

Empty

Gets an empty size (0x0).

public static Size Empty { get; }

Property Value

Size

Height

The height.

public double Height { get; init; }

Property Value

double

IsEmpty

Gets whether the size is empty (either dimension is zero or negative).

public bool IsEmpty { get; }

Property Value

bool

Width

The width.

public double Width { get; init; }

Property Value

double

Methods

FromWidthHeight(double, double)

Creates a size from width and height values.

public static Size FromWidthHeight(double width, double height)

Parameters

width double
height double

Returns

Size