<p>In the <ahref="https://www.onlyoffice.com/document-editor.aspx"target="_blank"onclick="onhyperlinkclick(this)"><b>Document Editor</b></a>, the added <b>autoshapes, images, charts</b> or <b>text boxes</b> can be aligned, grouped and ordered on the page. To perform any of these actions, first select a separate object or several objects on the page. To select several objects, hold down the <b>Ctrl</b> key and left-click the required objects. To select a text box, click on its border, not the text within it. After that you can use either the icons on the <b>Layout</b> tab of the top toolbar described below or the corresponding options from the right-click menu.</p>
<li>Click the <divclass ="icon icon-align_toptoolbar"></div><b>Align</b> icon on the <b>Layout</b> tab of the top toolbar and select one of the following options:
<li><b>Align Left</b><divclass ="icon icon-alignobjectleft"></div> - to line up the objects horizontally by the left edge of the leftmost object/left edge of the page/left page margin,</li>
<li><b>Align Center</b><divclass ="icon icon-alignobjectcenter"></div> - to line up the objects horizontally by their centers/center of the page/center of the space between the left and right page margins,</li>
<li><b>Align Right</b><divclass ="icon icon-alignobjectright"></div> - to line up the objects horizontally by the right edge of the rightmost object/right edge of the page/right page margin,</li>
<li><b>Align Top</b><divclass ="icon icon-alignobjecttop"></div> - to line up the objects vertically by the top edge of the topmost object/top edge of the page/top page margin,</li>
<li><b>Align Middle</b><divclass ="icon icon-alignobjectmiddle"></div> - to line up the objects vertically by their middles/middle of the page/middle of the space between the top and bottom page margins,</li>
<li><b>Align Bottom</b><divclass ="icon icon-alignobjectbottom"></div> - to line up the objects vertically by the bottom edge of the bottommost object/bottom edge of the page/bottom page margin.</li>
<p>Alternatively, you can right-click the selected objects, choose the <b>Align</b> option from the contextual menu and then use one of the available alignment options.</p>
<p>If you want to align a single object, it can be aligned relative to the edges of the page or to the page margins. The <b>Align to Margin</b> option is selected by default in this case.</p>
Click the <divclass ="icon icon-align_toptoolbar"></div><b>Align</b> icon on the <b>Layout</b> tab of the top toolbar and select one of the following options:
<li><b>Distribute Horizontally</b><divclass ="icon icon-distributehorizontally"></div> - to distribute objects evenly between the leftmost and rightmost selected objects/left and right edges of the page/left and right page margins<!--to align the selected objects by their centers (from right to left edges) to the horizontal center of the page-->.</li>
<li><b>Distribute Vertically</b><divclass ="icon icon-distributevertically"></div> - to distribute objects evenly between the topmost and bottommost selected objects/top and bottom edges of the page/top and bottom page margins<!--to align the selected objects by their centers (from top to bottom edges) to the vertical center of the page-->.</li>
<p>Alternatively, you can right-click the selected objects, choose the <b>Align</b> option from the contextual menu and then use one of the available distribution options.</p>
<pclass="note"><b>Note</b>: the distribution options are disabled if you select less than three objects.</p>
<p>To <b>group</b><em>two or more</em> selected objects or <b>ungroup</b> them, click the arrow next to the <spanclass ="icon icon-group_toptoolbar"></span><b>Group</b> icon at the <b>Layout</b> tab on the top toolbar and select the necessary option from the list:</p>
<li><b>Group</b><divclass ="icon icon-group"></div> - to combine several objects into a group so that they can be simultaneously rotated, moved, resized, aligned, arranged, copied, pasted, formatted like a single object.</li>
<li><b>Ungroup</b><divclass ="icon icon-ungroup"></div> - to ungroup the selected group of the previously combined objects.</li>
<p>Alternatively, you can right-click the selected objects, choose the <b>Arrange</b> option from the contextual menu and then use the <b>Group</b> or <b>Ungroup</b> option.</p>
<pclass="note"><b>Note</b>: the <b>Group</b> option is disabled if you select less than two objects. The <b>Ungroup</b> option is available only when a group of the previously combined objects is selected.</p>
<p>To <b>arrange</b> objects (i.e. to change their order when several objects overlap each other), you can use the <spanclass ="icon icon-bringforward_toptoolbar"></span><b>Bring Forward</b> and <spanclass ="icon icon-sendbackward_toptoolbar"></span><b>Send Backward</b> icons on the <b>Layout</b> tab of the top toolbar and select the required arrangement type from the list.</p>
<p>To move the selected object(s) forward, click the arrow next to the <spanclass ="icon icon-bringforward_toptoolbar"></span><b>Bring Forward</b> icon on the <b>Layout</b> tab of the top toolbar and select the required arrangement type from the list:</p>
<li><b>Bring To Foreground</b><divclass ="icon icon-bringtofront"></div> - to move the object(s) in front of all other objects,</li>
<li><b>Bring Forward</b><divclass ="icon icon-bringforward"></div> - to move the selected object(s) by one level forward as related to other objects.</li>
<p>To move the selected object(s) backward, click the arrow next to the <spanclass ="icon icon-sendbackward_toptoolbar"></span><b>Send Backward</b> icon on the <b>Layout</b> tab of the top toolbar and select the required arrangement type from the list:</p>
<li><b>Send To Background</b><divclass ="icon icon-sendtoback"></div> - to move the object(s) behind all other objects,</li>
<li><b>Send Backward</b><divclass ="icon icon-sendbackward"></div> - to move the selected object(s) by one level backward as related to other objects.</li>
<p>Alternatively, you can right-click the selected object(s), choose the <b>Arrange</b> option from the contextual menu and then use one of the available arrangement options.</p>