Skip to content

Documentation of TextFormatFlags enum is incorrect #2903

@david-c14

Description

@david-c14

The entries for PrefixOnly and for HidePrefix state that these are described as a legacy value which has no effect.

But they do still have an effect. When used as flags to TextRenderer.DrawText they change the rendered text. This is certainly still true in .NET Framework 4.7.1

The entry for ModifyString says Has no effect on the drawn text. While this is strictly true, it glosses over the fact that using this flag has the potential to do exactly what it says and modify the string, despite the fact that the string should be immutable. Surely it should be more explicit about not using the flag, rather than simply saying it has no effect on the drawn text.

Metadata

Metadata

Assignees

No one assigned

    Labels

    doc-bugProblem with the content; needs to be fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions