SelectedCells

SelectedCells[notebook]

返回对应当前 notebook 中选定单元的 CellObject 表达式列表.

SelectedCells[]

返回笔记本中当前选定的单元,单元中的函数正被计算.

更多信息和选项

范例

打开所有单元关闭所有单元

基本范例  (3)

返回一个给定的选择单元:

如果没有选择单元,则返回空列表:

返回给定笔记本中的选定单元:

选项  (1)

AllowInlineCells  (1)

默认情况下,SelectedCells 返回选择的内联单元,例如样式为 "Output2" 的单元:

AllowInlineCells->False 返回最外层的 CellObject:

Wolfram Research (2014),SelectedCells,Wolfram 语言函数,https://reference.wolfram.com/language/ref/SelectedCells.html.

文本

Wolfram Research (2014),SelectedCells,Wolfram 语言函数,https://reference.wolfram.com/language/ref/SelectedCells.html.

CMS

Wolfram 语言. 2014. "SelectedCells." Wolfram 语言与系统参考资料中心. Wolfram Research. https://reference.wolfram.com/language/ref/SelectedCells.html.

APA

Wolfram 语言. (2014). SelectedCells. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/SelectedCells.html 年

BibTeX

@misc{reference.wolfram_2024_selectedcells, author="Wolfram Research", title="{SelectedCells}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/SelectedCells.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_selectedcells, organization={Wolfram Research}, title={SelectedCells}, year={2014}, url={https://reference.wolfram.com/language/ref/SelectedCells.html}, note=[Accessed: 22-November-2024 ]}