dotnet / dotnet/dotnet-api-docs

Documentation Incorrect

Aperta
#761 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
area-WinForms doc-update Pri2 unspecified/svc
Lingua principale
C#
Stelle
949
Fork
1.7k
Merge medio
2g 19h
PR unite (30g)
52

Descrizione

The statement under "Remarks" is not correct: If the values for Top, Bottom, Left, or Rights were set separately, then All returns -1, even if all 4 properties have the same value:
var p = new Padding( 5 );
// Here, All returns 5
p.Left = 5;
// Now, All returns -1, although all 4 properties still have a value of 5
p.All = 5;
// Now, All returns 5 again

see also: https://referencesource.microsoft.com/#System.Windows.Forms/winforms/Managed/System/WinForms/Padding.cs,6c9dc153b2c496ae

---
#### Document Details

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

* ID: 0c67d24a-2485-92bb-9e66-87104cf3eb61
* Version Independent ID: 9e56ed04-9020-f76c-a783-26ac11dfbee6
* Content: [Padding.All Property (System.Windows.Forms)](https://docs.microsoft.com/en-us/dotnet/api/system.windows.forms.padding.all?view=netframework-4.7.1)
* Content Source: [xml/System.Windows.Forms/Padding.xml](https://github.com/dotnet/dotnet-api-docs/blob/master/xml/System.Windows.Forms/Padding.xml)
* Service: **unspecified**
* GitHub Login: @dotnet-bot
* Microsoft Alias: **dotnetcontent**

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Apri xml/System.Windows.Forms/Padding.xml e individua il testo di Remarks per Padding.All. Confronta la relativa affermazione con il comportamento di System.Windows.Forms Padding.cs a cui fa riferimento, quindi aggiorna la documentazione in modo che l'esempio e la spiegazione siano corretti.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
documentation
Tipo di issue
Documentazione
Difficoltà
1/5
Tempo stimato
Meno di un'ora
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.