<p>To insert a table in the <ahref="https://www.onlyoffice.com/document-editor.aspx"target="_blank"onclick="onhyperlinkclick(this)"><b>Document Editor</b></a>,</p>
<li><p>either a table with predefined number of cells (10 by 8 cells maximum)</p>
<p>If you want to quickly add a table, just select the number of rows (8 maximum) and columns (10 maximum).</p></li>
<li><p>or a custom table</p>
<p>In case you need more than 10 by 8 cell table, select the <b>Insert Custom Table</b> option that will open the window where you can enter the necessary number of rows and columns respectively, then click the <b>OK</b> button.</p>
<li>If you want to draw a table using the mouse, select the <b>Draw Table</b> option. This can be useful, if you want to create a table with rows and colums of different sizes. The mouse cursor will turn into the pencil <imgalt="Mouse Cursor when drawing a table"src="../images/pencil_tool.png"/>. Draw a rectangular shape where you want to add a table, then add rows by drawing horizontal lines and columns by drawing vertical lines within the table boundary.</li>
<p>To resize a table, hover the mouse cursor over the <imgalt="Square icon"src="../images/resizetable_handle.png"/> handle in its lower right corner and drag it until the table reaches the necessary size.</p>
<p>You can also manually change the width of a certain column or the height of a row. Move the mouse cursor over the right border of the column so that the cursor turns into the bidirectional arrow <imgalt="Mouse Cursor when changing column width"src="../images/changecolumnwidth.png"/> and drag the border to the left or right to set the necessary width. To change the height of a single row manually, move the mouse cursor over the bottom border of the row so that the cursor turns into the bidirectional arrow <imgalt="Mouse Cursor when changing row height"src="../images/changerowheight.png"/> and drag the border up or down.</p>
<p>To move a table, hold down the <imgalt="Select table handle"src="../images/movetable_handle.png"/> handle in its upper left corner and drag it to the necessary place in the document.</p>
<p>It's also possible to add a caption to the table. To learn more on how to work with captions for tables, you can refer to <ahref="../UsageInstructions/AddCaption.htm"onclick="onhyperlinkclick(this)">this article</a>.</p>
<p>To select a certain cell, move the mouse cursor to the left side of the necessary cell so that the cursor turns into the black arrow <imgalt="Select cell"src="../images/selectcellpointer.png"/>, then left-click.</p>
<p>To select a certain row, move the mouse cursor to the left border of the table next to the necessary row so that the cursor turns into the horizontal black arrow <imgalt="Select row"src="../images/selectrowpointer.png"/>, then left-click.</p>
<p>To select a certain column, move the mouse cursor to the top border of the necessary column so that the cursor turns into the downward black arrow <imgalt="Select column"src="../images/selectcolumnpointer.png"/>, then left-click.</p>
<p>It's also possible to select a cell, row, column or table using options from the contextual menu or from the <b>Rows & Columns</b> section on the right sidebar.</p>
<b>Note</b>: to move around in a table you can use <ahref="../HelpfulHints/KeyboardShortcuts.htm#workwithtables"onclick="onhyperlinkclick(this)">keyboard shortcuts</a>.
<li><b>Cut, Copy, Paste</b> - standard options which are used to cut or copy the selected text/object and paste the previously cut/copied text passage or object to the current cursor position.</li>
<li><b>Insert</b> is used to insert a row above or row below the row where the cursor is placed as well as to insert a column at the left or right side from the column where the cursor is placed.
<p>It's also possible to insert several rows or columns. If you select the <b>Several Rows/Columns</b> option, the <b>Insert Several</b> window will appear. Select the <b>Rows</b> or <b>Columns</b> option from the list, specify the number of rows/column you want to add, choose where they should be added: <b>Above the cursor</b> or <b>Below the cursor</b> and click <b>OK</b>.</p>
<li><b>Delete</b> is used to delete a row, column, table or cells. If you select the <b>Cells</b> option, the <b>Delete Cells</b> window will open, where you can select if you want to <b>Shift cells left</b>, <b>Delete entire row</b>, or <b>Delete entire column</b>.</li>
<li><b>Merge Cells</b> is available if two or more cells are selected and is used to merge them.
It's also possible to merge cells by erasing a boundary between them using the eraser tool. To do this, click the <imgalt="Table icon"src="../images/table.png"/><b>Table</b> icon on the top toolbar, choose the <b>Erase Table</b> option. The mouse cursor will turn into the eraser <imgalt="Mouse Cursor when erasing borders"src="../images/eraser_tool.png"/>. Move the mouse cursor over the border between the cells you want to merge and erase it.
It's also possible to split a cell by drawing rows or columns using the pencil tool. To do this, click the <imgalt="Table icon"src="../images/table.png"/><b>Table</b> icon on the top toolbar, choose the <b>Draw Table</b> option. The mouse cursor will turn into the pencil <imgalt="Mouse Cursor when drawing a table"src="../images/pencil_tool.png"/>. Draw a horizontal line to create a row or a vertical line to create a column.
<li><b>Text Direction</b> - is used to change the text orientation in a cell. You can place the text horizontally, vertically from top to bottom (<b>Rotate Text Down</b>), or vertically from bottom to top (<b>Rotate Text Up</b>).</li>
<li><p><b>Rows</b> and <b>Columns</b> are used to select the table parts that you want to be highlighted.</p>
<p>For rows:</p>
<ul>
<li><i>Header</i> - to highlight the first row</li>
<li><i>Total</i> - to highlight the last row</li>
<li><i>Banded</i> - to highlight every other row</li>
</ul>
<p>For columns:</p>
<ul>
<li><i>First</i> - to highlight the first column</li>
<li><i>Last</i> - to highlight the last column</li>
<li><i>Banded</i> - to highlight every other column</li>
</ul>
</li>
<li><p><b>Select from Template</b> is used to choose a table template from the available ones.</p></li>
<li><p><b>Borders Style</b> is used to select the border size, color, style as well as background color.</p></li>
<li><p><b>Rows & Columns</b> is used to perform some operations with the table: select, delete, insert rows and columns, merge cells, split a cell.</p></li>
<li><p><b>Rows & Columns Size</b> is used to adjust the width and height of the currently selected cell. In this section, you can also <b>Distribute rows</b> so that all the selected cells have equal height or <b>Distribute columns</b> so that all the selected cells have equal width.</p></li>
<li><p><b>Add formula</b> is used to <ahref="../UsageInstructions/AddFormulasInTables.htm"onclick="onhyperlinkclick(this)">insert a formula</a> into the selected table cell.</p></li>
<li><p><b>Repeat as header row at the top of each page</b> is used to insert the same header row at the top of each page in long tables.</p></li>
<p>To change the advanced table properties, click the table with the right mouse button and select the <b>Table Advanced Settings</b> option from the right-click menu or use the <b>Show advanced settings</b> link on the right sidebar. The table properties window will open:</p>
<li>The <b>Table Size</b> section contains the following parameters:
<ul>
<li>
<b>Width</b> - by default, the table width is automatically adjusted to fit the page width, i.e. the table occupies all the space between the left and right page margin. You can check this box and specify the necessary table width manually.
<li><b>Measure in</b> allows specifying the table width in absolute units i.e. <b>Centimeters</b>/<b>Points</b>/<b>Inches</b> (depending on the option specified on the <b>File</b> -> <b>Advanced Settings...</b> tab) or in <b>Percent</b> of the overall page width.
<pclass="note"><b>Note</b>: you can also adjust the table size manually changing the row height and column width. Move the mouse cursor over a row/column border until it turns into the bidirectional arrow and drag the border. You can also use the <imgalt="Table - Column Width Marker"src="../images/columnwidthmarker.png"/> markers on the horizontal ruler to change the column width and the <imgalt="Table - Row Height Marker"src="../images/rowheightmarker.png"/> markers on the vertical ruler to change the row height.</p>
<li><b>Automatically resize to fit contents</b> - allows automatically change the width of each column in accordance with the text within its cells.</li>
<p>The <b>Cell</b> tab allows changing the properties of individual cells. First you need to select the required cell or select the entire table to change the properties of all its cells.</p>
<li><b>Preferred width</b> - allows setting the preferred cell width. This is the size that a cell strives to fit, but in some cases, it may not be possible to fit this exact value. For example, if the text within a cell exceeds the specified width, it will be broken into the next line so that the preferred cell width remains unchanged, but if you insert a new column, the preferred width will be reduced.</li>
<li><b>Measure in</b> - allows specifying the cell width in absolute units i.e. <b>Centimeters</b>/<b>Points</b>/<b>Inches</b> (depending on the option specified on the <b>File</b> -> <b>Advanced Settings...</b> tab) or in <b>Percent</b> of the overall table width.
<pclass="note"><b>Note</b>: you can also adjust the cell width manually. To make a single cell in a column wider or narrower than the overall column width, select the necessary cell and move the mouse cursor over its right border until it turns into the bidirectional arrow, then drag the border. To change the width of all the cells in a column, use the <imgalt="Table - Column Width Marker"src="../images/columnwidthmarker.png"/> markers on the horizontal ruler to change the column width.</p>
<li>The <b>Cell Margins</b> allows adjusting the space between the text within the cells and the cell border. By default, the standard values are used (the default, these values can also be altered on the <b>Table</b> tab), but you can uncheck the <b>Use default margins</b> box and enter the necessary values manually.</li>
<li>The <b>Wrap text</b> option is enabled by default. It allows wrapping the text within a cell that exceeds its width onto the next line expanding the row height and keeping the column width unchanged.</li>
<p>The <b>Borders & Background</b> tab contains the following parameters:</p>
<ul>
<li>
<b>Border</b> parameters (size, color and presence or absence) - set the border size, select its color and choose the way it will be displayed in the cells.
<b>Note</b>: in case you choose not to show the table borders by clicking the <imgalt="No borders"src="../images/noborders.png"/> button or deselecting all the borders manually on the diagram, they will be indicated with a dotted line in the document.
To make them disappear at all, click the <b>Nonprinting characters</b><imgalt="Nonprinting characters"src="../images/nonprintingcharacters.png"/> icon on the <b>Home</b> tab of the top toolbar and select the <b>Hidden Table Borders</b> option.
<li><b>Cell Background</b> - the color for the background within the cells (available only if one or more cells are selected or the <b>Allow spacing between cells</b> option is selected at the <b>Table</b> tab).</li>
<li><b>Table Background</b> - the color for the table background or the space background between the cells in case the <b>Allow spacing between cells</b> option is selected on the <b>Table</b> tab.</li>
<p>The <b>Table Position</b> tab is available only if the <b>Flow table</b> option on the <b>Text Wrapping</b> tab is selected and contains the following parameters:</p>
<li><b>Horizontal</b> parameters include the table <b>alignment</b> (left, center, right) <b>relative to</b> margin, page or text as well as the table <b>position to the right of</b> margin, page or text.</li>
<li><b>Vertical</b> parameters include the table <b>alignment</b> (top, center, bottom) <b>relative to</b> margin, page or text as well as the table <b>position below</b> margin, page or text.</li>
<li>Text <b>wrapping style</b> - <b>Inline table</b> or <b>Flow table</b>. Use the necessary option to change the way the table is positioned relative to the text: it will either be a part of the text (in case you select the inline table) or bypassed by it from all sides (if you select the flow table).</li>
<p>The <b>Alternative Text</b> tab allows specifying the <b>Title</b> and <b>Description</b> which will be read to people with vision or cognitive impairments to help them better understand the contents of the table.</p>