GC.Spread.Sheets 名前空間 > FloatingObjects タイプ : FloatingObject メソッド |
Javascript (Usage) | |
---|---|
var value; // Type: any value = GC.Spread.Sheets.FloatingObjects.FloatingObject(name, x, y, width, height); |
Javascript (Specification) | |
---|---|
function FloatingObject( name : string, x : number, y : number, width : number, height : number ) : any; |
// 次のサンプルコードは、フローティングオブジェクトを作成します。 var customFloatingObject = new GC.Spread.Sheets.FloatingObjects.FloatingObject("f1", 10, 10, 60, 64); var btn = document.createElement('button'); btn.style.width = "60px"; btn.style.height = "30px"; btn.innerText = "button"; customFloatingObject.content(btn); activeSheet.floatingObjects.add(customFloatingObject);