[]
▸ findControl(host
): FormulaTextBox
通过宿主元素获取公式文本框
代码示例
window.onload = function(){
var spread = new GC.Spread.Sheets.Workbook(document.getElementById("ss"), { sheetCount: 1 });
var rangeSelector = new GC.Spread.Sheets.FormulaTextBox.FormulaTextBox(document.getElementById("ftb"), {rangeSelectMode: true});
rangeSelector.workbook(spread);
var rangeSelectorInstance = GC.Spread.Sheets.FormulaTextBox.findControl("ftb");
}
属性名 | 类型 | 说明 |
---|---|---|
host |
string | HTMLElement |
宿主元素或宿主元素id |
公式文本框实例