The IAlignmentAttribute class represents horizontal and vertical alignments. This class is a data class that provides attribute objects to manipulate the alignment layout of a child window in a IMultiCellCanvas or ISetCanvas.
These functions do not affect the child window layout unless you call IWindow::addOrReplaceAttribute to associate the alignment attribute object with a child window.
Constructors & DestructorCreates an IAlignmentAttribute object with the specified horizontal and vertical alignments.
![]() |
public:
virtual ~IAlignmentAttribute()
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
IAlignmentAttribute( const IAlignmentAttribute& alignmentAttribute )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
public:
IAlignmentAttribute( EHorizontalAlignment horizontalAlignment, EVerticalAlignment verticalAlignment )
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
AlignmentUse these members to set and query alignment attributes.
![]() |
public:
EHorizontalAlignment horizontalAlignment() const
Returns an enumerator identifying the horizontal alignment of the attribute. The returned value is an enumerator provided by EHorizontalAlignment.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual IAlignmentAttribute& setHorizontalAlignment( EHorizontalAlignment horizontalAlignment )
Defines the horizontal alignment for the attribute. Use values from the enumeration EHorizontalAlignment to specify the horizontal alignment.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
virtual IAlignmentAttribute& setVerticalAlignment( EVerticalAlignment verticalAlignment )
Defines the vertical alignment for the attribute. Use values from the enumeration EVerticalAlignment to specify the vertical alignment.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
public:
EVerticalAlignment verticalAlignment() const
Returns an enumerator identifying the vertical alignment of the attribute. The returned value is an enumerator provided by EVerticalAlignment.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
AssignmentUse this member to assign alignment attributes.
![]() |
public:
IAlignmentAttribute& operator =( const IAlignmentAttribute& alignmentAttribute )
Assignment operator.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
CloningUse this member to clone alignment attributes.
![]() |
public:
virtual IAttribute* clone() const
Returns a polymorphic copy of the alignment attribute.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
EqualityUse this member to test alignment attributes.
![]() |
public:
virtual bool operator ==(const IAttribute& attribute) const
Tests two attributes for equality.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
enum EHorizontalAlignment { kLeft,
kRight,
kCenter,
kStretch }Use the following enumerators to specify horizontal alignment of a child window: deck.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |
![]() |
enum EVerticalAlignment { kTop,
kBottom,
kCenterVertical,
kStretchVertical }Use the following enumerators to specify vertical alignment of a child window: deck.
| Windows | OS/2 | AIX |
| Yes | Yes | Yes |