You can combine several objects into a group so that the objects are treated as a single unit. You can then move or transform a group of objects without affecting their attributes or relative positions. For example, you can group the objects in a logo design so that you can move and scale the logo as one unit. You can ungroup the group to get back the editing control on individual components again.
You can also edit fill and stroke properties for all objects within a group at a group level.
Groups can also be nested. They can be grouped within other objects or groups to form larger groups.
You can also group objects using the Layers panel. For more information on layers, see Work with layers.
Normally, you can select an object by simply clicking it. When the object is part of a group, the whole group is selected when you click the object.
To select an object in a group, double-click or Cmd + click / Ctrl + Click the object in the group.
To select objects across multiple groups, use Cmd/Ctrl+Shift+Click to add objects to the selection independent of which groups they're part of. Once selected, you can easily change common attributes in the Properties Inspector and group, lock, toggle visibility and so on.
Locking objects prevents you from selecting and editing them.
- On Mac, select the object and click Object > Lock. Or, right-click the object and select Lock from the context menu.
- On Windows, right-click the object and select Lock from the context menu.
When you lock an object, a lock icon appears when you select it.
Opomba:
You can also use the lock/unlock options in the Layers panel.
Select one or more objects. Option‑drag (Mac) or Alt-drag (Windows) the selection (but not a handle on the bounding box). On Mac, you can also click Edit > Duplicate to duplicate an object.
You can select an object or group of objects, copy them (Ctrl + C or Cmd + C), and paste them (Ctrl + V or Cmd + V) onto multiple artboards. When you paste them, XD intelligently places them in the same X and Y location where the original object was located. This feature is especially useful while copying headers or footers across multiple artboards.
Opomba:
If the artboard is selected but is not within the viewport, then XD does not paste on that artboard.
You can also copy an object's style, and paste that style onto other objects or text elements in your project. Copy the object, right-click (on Windows) or Ctrl-click (on Mac) another object, and select Paste Appearance. The object formatting alone is copied and pasted.
Use the flip option to flip objects or elements for faster and more precise designing on a canvas. You can also toggle between vertical and horizontal flip and view the flipped objects on all surfaces such as preview, mobile, and web.
Exceptions when working with flip:
- Flip is not supported on artboard, repeat grid, and components. However, you can select all the content within an artboard and flip them.
- When it comes to images, you can flip either the mask surrounding the image, or the fill image itself, or both depending on the selection state.
- Location of the flipped object does not change.
- Flip takes the center point of the object or group and flips across the axis.
- Flip does not impact shadows.
- If an object is rotated, the object flips across the visual axis, not the original object's axis.
- If multiple objects are selected, objects flip as a group.