dotnet / dotnet/dotnet-api-docs

Needs a syntax example for setting FontWeight values in C# / C++

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

Description

The syntax for setting Fontweight in C# / C++ isn't entirely intuitive. It isn't difficult to find an example through Google, but this vital information about the use of this class belongs in the documentation. The possible values are on this page, so it makes sense to also give information on how to SET those values.
Developers shouldn't need to open up a stack overflow thread for something this basic.

---
#### Document Details

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

* ID: 521252b3-7520-e140-0bd7-a525a4d60301
* Version Independent ID: 9a14188c-0945-38d2-bf67-83f54e5717d7
* Content: [FontWeights Class (System.Windows)](https://docs.microsoft.com/en-us/dotnet/api/system.windows.fontweights?view=netframework-4.7.2)
* Content Source: [xml/System.Windows/FontWeights.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Windows/FontWeights.xml)
* Product: **dotnet-api**
* GitHub Login: @dotnet-bot
* 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.