SpreadJS Documentation
DragFillExtent Constructor
The start range.
The fill range.
The auto fill type.
The fill direction.
Represents the extend information for drag fill actions.
Syntax
var instance = new GcSpread.Sheets.UndoRedo.DragFillExtent(startRange, fillRange, autoFillType, fillDirection);
function DragFillExtent( 
   startRange : Range,
   fillRange : Range,
   autoFillType : AutoFillType,
   fillDirection : FillDirection
) : DragFillExtent;

Parameters

startRange
The start range.
fillRange
The fill range.
autoFillType
The auto fill type.
fillDirection
The fill direction.
Example
This example fills a range with the cell formatting.
activeSheet.getCell(0, 0).backColor("yellow");
activeSheet.getCell(0, 0).value(10);
activeSheet.setValue(0, 2, 15);            
var sourceRange = new GcSpread.Sheets.Range(0, 0, 1, 1);
var targetRange = new GcSpread.Sheets.Range(0, 1, 1, 3);
var dragFillOption = new GcSpread.Sheets.UndoRedo.DragFillExtent(sourceRange, targetRange, GcSpread.Sheets.AutoFillType.FillFormattingOnly, GcSpread.Sheets.FillDirection.Right);
var fillAction = new GcSpread.Sheets.UndoRedo.DragFillUndoAction(activeSheet, dragFillOption);
fillAction.execute();
See Also

Reference

DragFillExtent type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.