Partager via


Align objects

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.

JJ170606.09e89742-684c-44eb-858f-2435911fb626(fr-fr,VS.110).png

JJ170606.25182a96-9a69-478a-9cfe-5b360e6a9bea(fr-fr,VS.110).png

Unaligned objects

JJ170606.05fe4b1d-f584-4bd2-99b6-8bc2d735a89d(fr-fr,VS.110).png

Objects aligned to left edges

JJ170606.f0c1ff71-7814-42ba-806b-7ea92d616e69(fr-fr,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.)

  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.

ConseilConseil

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.

[!REMARQUE]

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.