Create and format

Layout and structure rules

Align content, set margins, merge cells, size graphics, and clear formatting

Use these rules to control the structure of a Grunt object. For one-time changes to native slide shapes, use workflow tools.

#Alignment rule

Align text, graphics, or both to the left, center, right, top, middle, or bottom of their container. Choose the content type under Apply to.

Alignment settings for graphics and text
Alignment settings for graphics and text

If content does not reach the cell edge, check its margins.

#Margin rule

Use Margin for text or to apply consistent spacing to graphics produced by several different rules. Most visual rules also have their own margin controls, which are convenient when you only want to adjust that rule's output.

Margins control the space around text and graphics
Margins control the space around text and graphics

Grunt uses a 4-pixel margin around most elements by default. Set margins to 0 to extend content to the cell boundary. Adjust horizontal and vertical margins together, or set all four sides independently. Check Apply to so the rule affects the intended text or graphics.

Margin settings
Independent margin controls and the Apply to selection
Independent margin controls and the Apply to selection

#Merge rule

Merge cells dynamically while keeping the underlying data intact. The top-left cell supplies the displayed content. Disabling or deleting the rule restores the original grid and values.

Merge mode and direction settings
Merge mode and direction settings
ModeBehavior
Adjacent cellsMerges the targeted cells in the chosen direction.
Similar valuesMerges adjacent cells with matching content; useful for repeated labels or pivot data.
Empty cellsExtends the top-left populated cell into adjacent empty cells.
Repeated values combined with the Similar values merge mode
Repeated values combined with the Similar values merge mode

Excel's merged-cell formatting does not carry over when pasted into Grunt. Apply Similar values when your data contains the repeated labels you want to merge. Splitting cells is not supported.

#Choose a merge direction

When several merges are possible, Direction determines which ones take priority. Rows, then columns is the default. Choose Columns, then rows to prioritize downward merging.

Compare merge directions
Original cells before a directional merge
Original cells before a directional merge
Rows, then columns prioritizes merging across each row
Rows, then columns prioritizes merging across each row
Columns, then rows prioritizes merging down each column
Columns, then rows prioritizes merging down each column

#Size rule

Use Size when graphics created by different rules should share a width or height. For example, target a whole row to size its shapes, icons, and gauges consistently.

A Size rule harmonizes graphics generated by different rules
A Size rule harmonizes graphics generated by different rules

Width and height each support Fixed, Relative, and Fill Cell modes. To change just one visual's size, you can often use the size controls in the rule that creates it.

Size rule settings
Width and height modes in the Size rule
Width and height modes in the Size rule

#Clear rule

Use Clear to remove particular formatting properties from a target area. Expand groups such as Interior, Size and position, or Font, then choose the properties to clear. Options include fill, alignment, margins, fonts, borders, and date formatting.

Clear rule groups let you remove specific formatting properties
Clear rule groups let you remove specific formatting properties

Check the rule stack order when combining a Clear rule with other rules: higher rules can apply those properties again.