Skip to content

setAlign() vs. setAlignment() #587

@ComputerTinker

Description

@ComputerTinker

I notice that the Frame, NumberingLevel, Table, and Paragraph elements can all be aligned. For the NumberingLevel element the attribute is named 'align', and the methods used are getAlign() and setAlign(). So far so good. For the Paragraph element the attribute is named 'alignment', and the methods used are getAlignment() and setAlignment(). That works for me as well.

Where the code seems inconsistent is with the Frame and Table elements. There the attributes are named 'alignment', but the methods are getAlign() and setAlign(). I would have expected the methods to be getAlignment() and setAlignment() so that they reflect the attribute name, like most (all?) of the other methods I've seen so far do. Not a big deal, just a minor nitpick about consistency. Thanks.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions