Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Documentation Incorrect #761

Open
Open
@HeinzKessler

Description

@HeinzKessler

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pri2Indicates issues/PRs that are medium priorityarea-WinFormsIssues or PRs that relate to WinForms.doc-updateUpdate outdated articlesunspecified/svc

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions