ColumnAlignments
是低层函数 GridBox 的一个选项,指定每一列中的项应当如何对齐.
更多信息
- 可以给出下面的设置:
-
Center 居中(缺省) Left 左对齐 Right 右对齐 "." 按小数点对齐 "c" 在字符 c 第一次出现处对齐 {pos1,pos2,…} 对网格中的每一列单独设置 - 如果网格中的列数多于列表中的元素数,则设置列表循环使用.
- 在设置 ColumnAlignments->"c" 时,如果列中没有字符 c ,该列将右对齐.
- 可以在网格的项中插入不可见的字符 \[AlignmentMarker]以指定这些项应当如何对齐.
相关的工作流程
- 以网格形式显示输出数据
历史
1996年引入 (3.0)
文本
Wolfram Research (1996),ColumnAlignments,Wolfram 语言函数,https://reference.wolfram.com/language/ref/ColumnAlignments.html.
CMS
Wolfram 语言. 1996. "ColumnAlignments." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/ColumnAlignments.html.
APA
Wolfram 语言. (1996). ColumnAlignments. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/ColumnAlignments.html 年
BibTeX
@misc{reference.wolfram_2025_columnalignments, author="Wolfram Research", title="{ColumnAlignments}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/ColumnAlignments.html}", note=[Accessed: 19-April-2026]}
BibLaTeX
@online{reference.wolfram_2025_columnalignments, organization={Wolfram Research}, title={ColumnAlignments}, year={1996}, url={https://reference.wolfram.com/language/ref/ColumnAlignments.html}, note=[Accessed: 19-April-2026]}