Spread.Sheets Documentation
paintContent Method
The canvas's two-dimensional context.
The cell's value.
x-coordinate relative to the canvas.
y-coordinate relative to the canvas.
The cell content area's width.
The cell content area's height.
The cell's actual style.
The context associated with the cell type.
Paints the cell content area on the canvas.
Syntax
var instance = new GC.Spread.Sheets.CellTypes.Base();
var returnValue; // Type: any
returnValue = instance.paintContent(ctx, value, x, y, w, h, style, context);
function paintContent( 
   ctx : CanvasRenderingContext2D,
   value : object,
   x : number,
   y : number,
   w : number,
   h : number,
   style : Style,
   context : object
) : any;

Parameters

ctx
The canvas's two-dimensional context.
value
The cell's value.
x
x-coordinate relative to the canvas.
y
y-coordinate relative to the canvas.
w
The cell content area's width.
h
The cell content area's height.
style
The cell's actual style.
context
The context associated with the cell type.
Remarks

The context parameter can include the following items:

Item Type Description
context.sheet GC.Spread.Sheets.Sheet instance Indicates the current sheet.
context.row number The row index.
context.col number The column index.
context.sheetArea GC.Spread.Sheets.SheetArea The current sheet area.
See Also

Reference

Base type

 

 


Copyright © GrapeCity, inc. All rights reserved.

Send comments on this topic.