New to Telerik UI for WinForms? Start a free 30-day trial

Provides the cell model, coordinates, and worksheet bounds for a cell-formatting callback.

Definition

Namespace:Telerik.WinControls.Export

Assembly:Telerik.WinControls.PivotGrid.dll

Syntax:

C#
public class PivotGridSpreadExportCellFormattingEventArgs : EventArgs

Inheritance: objectEventArgsPivotGridSpreadExportCellFormattingEventArgs

Inherited Members EventArgs.Empty

Constructors

Initializes event data for one exported cell.

C#
public PivotGridSpreadExportCellFormattingEventArgs(int columnIndex, int rowIndex, PivotGridSpreadExportCellElement exportCell, int columnsCount, int rowsCount, string dataType)
Parameters:columnIndexint

The zero-based column index of the cell.

rowIndexint

The zero-based row index of the cell.

exportCellPivotGridSpreadExportCellElement

The cell model being formatted.

columnsCountint

The column-bound value supplied for the worksheet.

rowsCountint

The row-bound value supplied for the worksheet.

dataTypestring

The string representation of the cell's detected data type.

Properties

Gets or sets the cell model presented to the handler. Modify this instance to affect the current export; assigning a different instance does not replace the cell written by the exporter.

C#
public PivotGridSpreadExportCellElement Cell { get; set; }

Gets the zero-based column index of the cell being formatted.

C#
public int ColumnIndex { get; }

Gets the worksheet column-bound value supplied to this event. The current exporter passes the last zero-based column index, not the total column count.

C#
public int ColumnsCount { get; }

Gets or sets the string representation of the detected data type. The current exporter reads the type from Cell; changing this value alone does not change the exported cell type.

C#
public string DataType { get; set; }

Gets the zero-based row index of the cell being formatted.

C#
public int RowIndex { get; }

Gets the worksheet row-bound value supplied to this event. The current exporter passes the last zero-based row index, not the total row count.

C#
public int RowsCount { get; }