Open
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)
- Content Source: xml/System.Web.UI.WebControls/Unit.xml
- Product: dotnet-api
- GitHub Login: @scottaddie
- Microsoft Alias: dotnetcontent
Metadata
Metadata
Assignees
Labels
Indicates issues/PRs that are medium priorityIndicates issues/PRs that are medium priorityNew issue has not been triaged by the area ownerNew issue has not been triaged by the area owner