SpreadJS 13
GC.Spread.Sheets.CellTypes Namespace / Base class / 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. See the Remarks for more information.
In This Topic
    paintContent Method
    In This Topic
    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. See the Remarks for more information.
    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 class