Spread.Sheets Documentation
fixedPosition Method
The value indicates whether the position of the floating object is fixed.
Gets or sets whether the position of the floating object is fixed. When fixedPosition is true, dynamicMove and dynamicSize are disabled.
Syntax
var instance = new GC.Spread.Sheets.FloatingObjects.FloatingObject(name, x, y, width, height);
var returnValue; // Type: any
returnValue = instance.fixedPosition(value);
function fixedPosition( 
   value : boolean
) : any;

Parameters

value
The value indicates whether the position of the floating object is fixed.

Return Value

If no value is set, returns whether the position of the floating object is fixed; otherwise, returns the floating object.
Example
This example sets the position of the object to fixed.
var customFloatingObject = new GC.Spread.Sheets.FloatingObjects.FloatingObject("f1", 10, 10, 60, 64);
customFloatingObject.fixedPosition(true);
var btn = document.createElement('button');
btn.style.width = "60px";
btn.style.height = "30px";
btn.innerText = "button";
customFloatingObject.content(btn);
activeSheet.floatingObjects.add(customFloatingObject);
Remarks
When the fixedPosition method of a floating object (Picture or CustomFloatingObject) is true, the floating object's position is not changed after scrolling, hiding, showing, resizing, or moving rows or columns. The dynamicMove and dynamicSize methods are disabled if the fixedPosition method is true. If the fixedPosition method is true, the floating object can be moved or resized.
See Also

Reference

FloatingObject type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.