[]
        
首页
开发者学堂
文档
论坛
市场
生态机会
活动
在线咨询 立即试用
(Showing Draft Content)

GC.Spread.Sheets.FormulaPanel.Commands

Namespace: Commands

Sheets.FormulaPanel.Commands

Table of contents

Variables

Variables

closeHints

• closeHints: Object

表示用于关闭提示的命令。

property execute - 执行操作。

example

//此示例展示如何将closeHints命令绑定到esc快捷键。
spread.commandManager().setShortcutKey("closeHints", 27);

Type declaration

Name Type
execute (context: FormulaEditor) => any

commitContentToActiveCell

• commitContentToActiveCell: Object

表示用于将内容提交到活动单元格的命令。

property execute - 执行操作。

example

//此示例展示如何将commitContentToActiveCell命令绑定到ctrl-s快捷键。
spread.commandManager().setShortcutKey("commitContentToActiveCell", 83, true);

Type declaration

Name Type
execute (context: FormulaEditor) => any

exitEdit

• exitEdit: Object

表示用于退出编辑的命令。

property execute - 执行操作。

example

//此示例展示如何将exitEdit命令绑定到esc快捷键。
spread.commandManager().setShortcutKey("exitEdit", 27);

Type declaration

Name Type
execute (context: FormulaEditor) => any

formatDocument

• formatDocument: Object

表示用于格式化文档的命令。

property execute - 执行操作。

example

//此示例展示如何将formatDocument命令绑定到alt-shift-f快捷键。
spread.commandManager().setShortcutKey("formatDocument", 70, false, true, true);

Type declaration

Name Type
execute (context: FormulaEditor) => any

showHints

• showHints: Object

表示用于显示提示的命令。

property execute - 执行操作。

example

//此示例展示如何将showHints命令绑定到ctrl-shift-空格快捷键。
spread.commandManager().setShortcutKey("showHints", 32, true, true);

Type declaration

Name Type
execute (context: FormulaEditor) => any

toggleAbsoluteRelativeReferences

• toggleAbsoluteRelativeReferences: Object

表示用于切换绝对/相对引用的命令。

property execute - 执行操作。

example

//此示例展示如何将toggleAbsoluteRelativeReferences命令绑定到f4快捷键。
spread.commandManager().setShortcutKey("toggleAbsoluteRelativeReferences", 115);

Type declaration

Name Type
execute (context: FormulaEditor) => any