Invisible

Invisible[expr]

displays as space that is the same size as the formatted version of expr.

Details

  • Invisible[expr] spans both the horizontal and vertical dimensions of expr.
  • Invisible[expr] has the same baseline alignment as expr.
  • Invisible["M"] gives space that is one em wide in the current font.

Examples

open allclose all

Basic Examples  (2)

Display a blank space the same size as the formatted form of a given expression:

In[1]:=
Click for copyable input
Out[1]=

Here is the expression in visible form:

In[2]:=
Click for copyable input
Out[2]=

Use Invisible objects as column-width regulators in a grid:

In[1]:=
Click for copyable input
Out[1]=

Properties & Relations  (1)

See Also

Spacer  HoldForm  ShowContents

Tutorials

Introduced in 2007
(6.0)