Online Documentation for Advanced Data Export .NET

QExportBase.GetCellParams


 

public class GetCellParamsEventArgs : EventArgs

{

 // Methods

 public GetCellParamsEventArgs(int RecNo, int ColNo, string Value, QExportColAlign Align, Font Font, Color Background);

 

 // Properties

 public QExportColAlign Align { get; set; }

 public Color Background { get; set; }

 public int ColNo { get; }

 public Font Font { get; }

 public int RecNo { get; }

 public string Value { get; }

 

 // Fields

 private QExportColAlign _align;

 private Color _background;

 private int _colNo;

 private Font _font;

 private int _recNo;

 private string _value;

}

 

public delegate void GetCellParamsEvent(object Sender, GetCellParamsEventArgs e);                

 

protected event SqlManager.QExport.Delegates.GetCellParamsEvent GetCellParams

 

Description

The GetCellParams event takes place after the parameters of the record (including record value) are recieved. Depending on the record (GetCellParamsEventArgs.RecNo) and column (GetCellParamsEventArgs.ColNo) number, and on the value (GetCellParamsEventArgs.Value), you can change the format of the result table cell: alignment (GetCellParamsEventArgs.Align), font (GetCellParamsEventArgs.Font), and background (GetCellParamsEventArgs.Background) color.