Table of Contents

Class SizeHelper

Namespace
VisioForge.Core.Helpers
Assembly
VisioForge.Core.dll

Provides extension methods for converting between System.Drawing.Size and VisioForge.Core.Types.Size types. This helper class facilitates seamless conversion between the platform-specific System.Drawing.Size and the framework's internal Size representation, ensuring compatibility across different UI frameworks.

public static class SizeHelper

Inheritance

Inherited Members

Methods

ToSize(Size)

Converts a System.Drawing.Size object to a VisioForge.Core.Types.Size object.

public static Size ToSize(this Size sz)

Parameters

sz Size

The System.Drawing.Size object to convert. This parameter represents a size with integer width and height values from the System.Drawing namespace.

Returns

Size

A new VisioForge.Core.Types.Size object with the same width and height values as the input System.Drawing.Size object.

ToSize(Size)

Converts a VisioForge.Core.Types.Size object to a System.Drawing.Size object.

public static Size ToSize(this Size sz)

Parameters

sz Size

The VisioForge.Core.Types.Size object to convert. This parameter represents the framework's internal size type that needs to be converted to the platform-specific type.

Returns

Size

A new System.Drawing.Size object with the same width and height values as the input VisioForge.Core.Types.Size object.