Class SpreadsheetHeaderCellRenderer
Represents a class which holds the cell renderer that displays GridHeaderCell in a GridCell. Override the methods for initializing content of the cell and arranging the cell visuals.
Inheritance
Inherited Members
Namespace: Syncfusion.UI.Xaml.Spreadsheet.CellRenderer
Assembly: Syncfusion.SfSpreadsheet.WPF.dll
Syntax
public class SpreadsheetHeaderCellRenderer : SpreadsheetVirtualizingCellRendererBase<GridHeaderCell, GridHeaderCell>, ISpreadsheetCellRenderer, IDisposable
Constructors
SpreadsheetHeaderCellRenderer()
Initializes a new instance of the SpreadsheetHeaderCellRenderer class.
Declaration
public SpreadsheetHeaderCellRenderer()
Methods
OnInitializeDisplayElement(RowColumnIndex, GridHeaderCell, SpreadsheetColumn)
Invoked when display element of header cell is initialized on the cell.
Declaration
protected override void OnInitializeDisplayElement(RowColumnIndex rowColumnIndex, GridHeaderCell uiElement, SpreadsheetColumn column)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | rowColumnIndex | Coordinates of a cell. |
GridHeaderCell | uiElement | An instance of GridHeaderCell. |
SpreadsheetColumn | column | An instance of SpreadsheetColumn. |
Overrides
OnInitializeEditElement(RowColumnIndex, GridHeaderCell, SpreadsheetColumn)
Invoked when edit element of header cell is initialized on the cell.
Declaration
protected override void OnInitializeEditElement(RowColumnIndex rowColumnIndex, GridHeaderCell uiElement, SpreadsheetColumn column)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | rowColumnIndex | Coordinates of a cell. |
GridHeaderCell | uiElement | An instance of GridHeaderCell. |
SpreadsheetColumn | column | An instance of SpreadsheetColumn. |
Overrides
OnRender(RowColumnIndex, DrawingContext, Rect, SpreadsheetColumn, Object)
Used to render the content of the cell. It must be override in derived class, and use their own logic to render the content.
Declaration
protected override void OnRender(RowColumnIndex cellRowColumnIndex, DrawingContext dc, Rect cellRect, SpreadsheetColumn column, object textElement)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cellRowColumnIndex | |
System.Windows.Media.DrawingContext | dc | An instance of System.Windows.Media.DrawingContext. |
System.Windows.Rect | cellRect | An instance System.Windows.Rect of cell. |
SpreadsheetColumn | column | An instance of SpreadsheetColumn. |
System.Object | textElement | Drawing Text |
Overrides
OnUpdateEditCellStyle(RowColumnIndex, GridHeaderCell, SpreadsheetColumn)
Update the cell style and content of the edit element.
Declaration
protected override void OnUpdateEditCellStyle(RowColumnIndex cellRowColumnIndex, GridHeaderCell uiElement, SpreadsheetColumn column)
Parameters
Type | Name | Description |
---|---|---|
RowColumnIndex | cellRowColumnIndex | Coordinates of a cell. |
GridHeaderCell | uiElement | An instance of System.Windows.Controls.ComboBox. |
SpreadsheetColumn | column | An instance of SpreadsheetColumn. |