Skip to content

Consider Adding Enum Type for GetTextAlign/SetTextAlign #1036

Closed

Description

@lonitra

Is your feature request related to a problem? Please describe.
Currently uint is being utilize for GetTextAlign/SetTextAlign. It could help with code readability and cleanliness to utilize an enum instead like the docs outline

Describe the solution you'd like

public enum TA : uint
        {
            NOUPDATECP = 0x00,
            UPDATECP = 0x01,
            LEFT = 0x00,
            RIGHT = 0x02,
            CENTER = 0x06,
            TOP = 0x00,
            BOTTOM = 0x08,
            BASELINE = 0x18,
            RTLREADING = 0x100,
            MASK = BASELINE + CENTER + UPDATECP + RTLREADING
        }

Describe alternatives you've considered
The above enum is what winforms is currently using

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions