Skip to content

Consider adding cast operators to System.Drawing types #626

@JeremyKuhne

Description

@JeremyKuhne

Is your feature request related to a problem? Please describe.
It is tedious and error prone (particularly with RECT/Rectangle) to convert between the native types and System.Drawing types (Point, Size, Rectangle, and *F variants).

Describe the solution you'd like
In Windows Forms we define the RECT, POINT, etc. structs with cast operators (often implicit). We also provide useful properties on RECT for convenience, notably .Width and .Height.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions