SpreadJS Documentation
backgroundImageLayout Field
Indicates the background image layout.
Syntax
var instance = new GcSpread.Sheets.Style(backColor,
                                        foreColor,
                                        hAlign,
                                        vAlign,
                                        font,
                                        themeFont,
                                        formatter,
                                        borderLeft,
                                        borderTop,
                                        borderRight,
                                        borderBottom,
                                        locked,
                                        textIndent,
                                        wordWrap,
                                        shrinkToFit,
                                        backgroundImage,
                                        cellType,
                                        backgroundImageLayout,
                                        tabStop,
                                        textDecoration,
                                        imeMode,
                                        name,
                                        parentName,
                                        watermark);
var value; // Type: GcSpread.Sheets.BackgroundImageLayout
value = instance.backgroundImageLayout;
var backgroundImageLayout : GcSpread.Sheets.BackgroundImageLayout;
Example
This example sets the backgroundImageLayout property.
var style = new GcSpread.Sheets.Style();
style.backColor = "lightgreen";
style.backgroundImage = "./css/images/quarter1.png";
style.backgroundImageLayout  = GcSpread.Sheets.ImageLayout.Center;
activeSheet.setStyle(1,1,style,GcSpread.Sheets.SheetArea.viewport);
See Also

Reference

Style class

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.