ComponentOne ASP.NET MVC Controls
XlsxFormatItemEventArgs Class
File
wijmo.grid.xlsx.js
Module
wijmo.grid.xlsx
Base Class
CellRangeEventArgs

Represents arguments of the IFlexGridXlsxOptions.formatItem callback.

Constructor

Properties

Methods

Events

Constructor

constructor

constructor(p: GridPanel, rng: CellRange, data?: any): CellRangeEventArgs

Initializes a new instance of the CellRangeEventArgs class.

Parameters
Optional

Data related to the event.

Inherited From
CellRangeEventArgs
Returns
CellRangeEventArgs

Properties

cancel

Gets or sets a value that indicates whether the event should be canceled.

Inherited From
CancelEventArgs
Type
boolean

cell

If IFlexGridXlsxOptions.includeCellStyles is set to true then contains a reference to the element that represents the formatted grid cell; otherwise, a null value.

Type
HTMLElement

col

Gets the column affected by this event.

Inherited From
CellRangeEventArgs
Type
number

data

Gets or sets the data associated with the event.

Inherited From
CellRangeEventArgs
Type
any

panel

Gets the GridPanel affected by this event.

Inherited From
CellRangeEventArgs
Type
GridPanel

range

Gets the CellRange affected by this event.

Inherited From
CellRangeEventArgs
Type
CellRange

row

Gets the row affected by this event.

Inherited From
CellRangeEventArgs
Type
number

xlsxCell

Contains an exporting cell representation. Initially it contains a default cell representation created by FlexGrid export, and can be modified by the event handler to customize its final content. For example, the xlsxCell.value property can be updated to modify a cell content, xlsxCell.style to modify cell's style, and so on.

Type
IWorkbookCell

Methods

getFormattedCell

getFormattedCell(): HTMLElement

Returns a cell with a custom formatting applied (formatItem event, cell templates). This method is useful when export of custom formatting is disabled (IFlexGridXlsxOptions.includeCellStyles=false), but you need to export a custom content and/or style for a certain cells.

Returns
HTMLElement

Events

 

Static empty

Provides a value to use with events that do not have event data.

Inherited From
EventArgs
Arguments
EventArgs