Change the alignment of an object
Alignment determines how an object resizes. For example, a left aligned object that is contained in a Grid layout panel will stretch to the right when the Grid is resized.
To change the alignment of an object
On the artboard or under Objects and Timeline, select the object for which you want to change alignment.
Under Layout in the Properties panel, do one of the following:
Change the HorizontalAlignment property to one of the following:
Left Anchors to the left but stretches to the right when resized.
Center Always anchored to the horizontal center regardless of resizing.
Right Anchors to the right but stretches to the left when resized.
Stretch Stretches in both horizontal directions when resized.
Change the VerticalAlignment property to one of the following:
Bottom Anchors to the bottom but stretches to the top when resized.
Center Always anchored to the vertical center regardless of resizing.
Top. Anchors to the top but stretches to the bottom when resized.
Stretch Stretches in both vertical directions when resized.
Note
If Width and Height for that object are set to Auto under Layout in the Properties panel, then the object may appear to collapse when you change HorizontalAlignment or VerticalAlignment properties in the Properties panel. If this happens, you can set the Height and Width properties if you don't want your object to resize with the application window, or you leave the Height and Width properties set to Auto, and set the Margin properties if you do want your object to resize with the application window.
Tip
You can also change alignment by moving an object on the artboard. Notice how the HorizontalAlignment and VerticalAlignment properties change as you move the object to different regions of the grid panel. In Grid layout mode , alignment for an object relative to its parent grid is indicated on the artboard as a solid line when alignment is set and margins are enforced, or as a dashed line when alignment is not set and margins aren't observed.
Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.