CellFrameRoundingRadius
Details
- The radius specification can have the following forms:
-
r apply radius r to all corners {rx,ry} specify different rounding radii in the
and
directions{spec,rules} use rules to override the default specification spec for specific corners - rules can be used to specify different radii for specific corners. A rule specification can be of the form {sidex,sidey}spec, where sidex can be Left or Right, and sidey can be Top or Bottom. A rule can also be specified as sidespec, which will set the radii for both corners of the given side.
- The default value CellFrameRoundingRadius0 specifies non-rounded corners.
- The effective radius used for any corner is limited to the half-length of each adjacent side.
Examples
open all close allBasic Examples (1)
CellFrame by default has squared corners:
CellPrint[ExpressionCell[Range[40], "Print", CellFrame -> True]]CellPrint[ExpressionCell[Range[40], "Print", CellFrame -> True, CellFrameRoundingRadius -> 5]]Scope (5)
Table[ExpressionCell[r, CellFrame -> True, CellFrameRoundingRadius -> r], {r, 0, 10, 1}] Specify different rounding radii in the
and
directions:
ExpressionCell[{a, b, c}, CellFrame -> True, CellFrameRoundingRadius -> {3, 6}]Specify different rounding values for different corners:
ExpressionCell["abc", CellFrame -> True, CellFrameRoundingRadius -> {0, {Left, Top} -> 15, {Right, Bottom} -> 5}]Override both corners on the left side:
ExpressionCell[{a, b, c}, CellFrame -> True, CellFrameRoundingRadius -> {0, Left -> 5}]The effective radius used for any corner is limited to the half-length of each adjacent side:
ExpressionCell["abc", CellFrame -> True, CellFrameRoundingRadius -> 50]Properties & Relations (2)
The background color is correctly contained within the rounding radius:
ExpressionCell["abc", CellFrame -> True, CellFrameRoundingRadius -> 5, Background -> StandardOrange]Rounding may be transformed in graphics by GeometricTransformation:
Graphics[{GeometricTransformation[Inset[ExpressionCell["abcd", Background -> StandardGreen, CellFrame -> 1, CellFrameColor -> StandardBlue, CellFrameRoundingRadius -> 5]], ShearingTransform[Pi / 8, {1, 0}, {0, 1}]]}]Possible Issues (3)
A large rounding radius may lead to contents bleeding past the corners:
ExpressionCell[Graphics[{StandardBlue, Rectangle[]}, ImageSize -> 80], CellFrame -> True, CellFrameRoundingRadius -> 45]Increase the cell frame margins to resolve the issue:
ExpressionCell[Graphics[{StandardBlue, Rectangle[]}, ImageSize -> 80], CellFrame -> True, CellFrameRoundingRadius -> 45, CellFrameMargins -> 15]Alternatively, reducing the rounding radius:
ExpressionCell[Graphics[{StandardBlue, Rectangle[]}, ImageSize -> 80], CellFrame -> True, CellFrameRoundingRadius -> 10]Cell frames can be specified to different thicknesses on different edges:
ExpressionCell[Range[5], CellFrame -> {{5, 0}, {1, 6}}]Rounding such corners will produce an uneven and probably undesirable appearance:
ExpressionCell[Range[5], CellFrame -> {{5, 0}, {1, 6}}, CellFrameRoundingRadius -> 5]The rounding radius is unused when the CellFrame is disabled:
ExpressionCell[Range[5], CellFrame -> False, CellFrameRoundingRadius -> 5]Related Guides
History
Text
Wolfram Research (2026), CellFrameRoundingRadius, Wolfram Language function, https://reference.wolfram.com/language/ref/CellFrameRoundingRadius.html.
CMS
Wolfram Language. 2026. "CellFrameRoundingRadius." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/CellFrameRoundingRadius.html.
APA
Wolfram Language. (2026). CellFrameRoundingRadius. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CellFrameRoundingRadius.html
BibTeX
@misc{reference.wolfram_2026_cellframeroundingradius, author="Wolfram Research", title="{CellFrameRoundingRadius}", year="2026", howpublished="\url{https://reference.wolfram.com/language/ref/CellFrameRoundingRadius.html}", note=[Accessed: 12-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_cellframeroundingradius, organization={Wolfram Research}, title={CellFrameRoundingRadius}, year={2026}, url={https://reference.wolfram.com/language/ref/CellFrameRoundingRadius.html}, note=[Accessed: 12-June-2026]}