Share via


Align objects (Blend for Visual Studio)

The Align commands in the Object menu of Blend for Visual Studio 2012 let you align the position of two or more objects in a document.

JJ155062.09e89742-684c-44eb-858f-2435911fb626(en-us,VS.110).png

JJ155062.25182a96-9a69-478a-9cfe-5b360e6a9bea(en-us,VS.110).png

Unaligned objects

JJ155062.05fe4b1d-f584-4bd2-99b6-8bc2d735a89d(en-us,VS.110).png

Objects aligned to left edges

JJ155062.f0c1ff71-7814-42ba-806b-7ea92d616e69(en-us,VS.110).png

Objects aligned to horizontal centers

To align two or more objects

  1. Select the objects that you want to align. (You can select more than one object by holding the Ctrl key. For information about how to select objects in Blend, see Select or cancel the selection of objects (Blend for Visual Studio).)

  2. On the Object menu, point to Align, and then click one of the following:

    • Left Edges   Aligns the left edge of each object to that of the object that was selected last.

    • Horizontal Centers   Aligns the objects horizontally around the center point of each object. The object that was selected last is anchored and the other objects move.

    • Right Edges   Aligns the right edge of each object to that of the object that was selected last.

    • Top Edges   Aligns the top edge of each object to that of the object that was selected last.

    • Vertical Centers   Aligns the objects vertically around the center point of each object. The object that was selected last is anchored and the other objects move.

    • Bottom Edges   Aligns the bottom edge of each object to that of the object that was selected last.

Tip

You can also access the Align commands from the shortcut menu that appears when you right-click the selected objects on the artboard or under Objects and Timeline.

Note

To set the alignment of an individual object, set the HorizontalAlignment and VerticalAlignment options under Layout category in the Properties panel.

For more information, see Change the alignment of an object (Blend for Visual Studio).