var instance = new GC.Spread.Sheets.FormulaTextBox.FormulaTextBox(host, options);
function FormulaTextBox;
var instance = new GC.Spread.Sheets.FormulaTextBox.FormulaTextBox(host, options);
function FormulaTextBox;
window.onload = function(){ var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"), { sheetCount: 1 }); rangeSelector = new GC.Spread.Sheets.FormulaTextBox.FormulaTextBox(document.getElementById("ftb"), {rangeSelectMode: true}); rangeSelector.workbook(spread); } function buttonClick(){ alert(rangeSelector.text()); }
Object
GC.Spread.Sheets.FormulaTextBox.FormulaTextBox
Name | Description | |
---|---|---|
FormulaTextBox Constructor | Represents a formula text box. |
Name | Description | |
---|---|---|
add | Adds a custom function description. | |
autoComplete | Gets or sets whether the text box uses automatic complete. | |
bind | Binds an event. | |
caret | Gets or sets the cursor position. | |
destroy | Removes host from formula text box and removes all binding events. | |
refresh | refresh the formula text box with the active cell. | |
remove | Removes a custom function description. | |
showHelp | Gets or sets whether to display the function's help tip. | |
text | Gets or sets the text. | |
unbind | Removes the binding of an event. | |
unbindAll | Removes the binding of all events. | |
workbook | Gets or sets the Workbook component to work with the formula text box. |