dotnet / dotnet/dotnet-api-docs

Note's are giving not the exact information

Open
#1,036 0 comments 0 reactions 0 assignees View on GitHub
area-System.Web dotnet-api/prod Pri2 untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

The notes in this article say that the unit of measurement on the parse method is Pixel.

This is not entirely correct. The unit of measurement is the unit of measurement given.
For example:

Unit.Parse("50%") will result in a percentage unit of measurement, not Pixel.
Unit.Parse("50") will however indeed result in a unit measurement of Pixel.

So only in the event that no unit of measurement is provided in the input, the DEFAULT is Pixel.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 2a3eaf9f-e80a-cae1-aab4-63fc4beffd96
* Version Independent ID: 58450b5d-a17c-5644-1487-4ffea0ee6ac9
* Content: [Unit.Parse Method (System.Web.UI.WebControls)](https://docs.microsoft.com/en-us/dotnet/api/system.web.ui.webcontrols.unit.parse?view=netframework-4.7.2#System_Web_UI_WebControls_Unit_Parse_System_String_)
* Content Source: [xml/System.Web.UI.WebControls/Unit.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Web.UI.WebControls/Unit.xml)
* Product: **dotnet-api**
* GitHub Login: @scottaddie
* Microsoft Alias: **dotnetcontent**

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.