dotnet / dotnet/dotnet-api-docs

Wrong description for the parameters at Windows.Foundation.Rect Constructor

Open
#10,230 6 comments 0 reactions 0 assignees View on GitHub
area-WinForms Pri3 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

### Type of issue

Missing information

### Description

For

> Rect(Double, Double, Double, Double)

Constructor is specifies for the `x` and `y` parameters that they are coordinates for the top-left corner. But it is wrong, in-fact they are the coordinates for the bottom-left corner.

A simple app that demonstrates is available at this gist: https://gist.github.com/eliyahuA/83d2eb8a1e493a1abf07881ddece2879

Therefor I propose to change the written description accordingly

### Page URL

https://learn.microsoft.com/en-us/dotnet/api/windows.foundation.rect.-ctor?view=dotnet-uwp-10.0#windows-foundation-rect-ctor(system-double-system-double-system-double-system-double)

### Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/Windows.Foundation/Rect.xml

### Document Version Independent Id

d56ccb8d-f2ef-88e6-2ac4-7efe9278b029

### Article author

@dotnet-bot

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.