Class OlapGridTemplateCellModel
This class defines the renderer part of a OlapGrid template cell.
Inheritance
System.Object
OlapGridTemplateCellModel
Implements
System.IDisposable
Inherited Members
Namespace: Syncfusion.Windows.Grid.Olap
Assembly: Syncfusion.OlapGrid.WPF.dll
Syntax
public class OlapGridTemplateCellModel : GridCellModel<OlapGridTemplateCellRenderer>, IDisposable
Constructors
OlapGridTemplateCellModel()
Declaration
public OlapGridTemplateCellModel()
Methods
CalculatePreferredCellSize(Int32, Int32, GridStyleInfo, GridQueryBounds)
Calculates the preferred size of the cell based on its contents, including margins and any buttons.
Declaration
public override Size CalculatePreferredCellSize(int rowIndex, int colIndex, GridStyleInfo style, GridQueryBounds queryBounds)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | The row index. |
System.Int32 | colIndex | The column index. |
GridStyleInfo | style | The GridStyleInfo object that holds cell information. |
GridQueryBounds | queryBounds | Vertical or horizontal |
Returns
Type | Description |
---|---|
System.Windows.Size | The optimal size of the cell. |
GetFormattedText(GridStyleInfo, Object, Int32)
Gets the formatted text.
Declaration
public override string GetFormattedText(GridStyleInfo style, object value, int textInfo)
Parameters
Type | Name | Description |
---|---|---|
GridStyleInfo | style | The style. |
System.Object | value | The value. |
System.Int32 | textInfo | The text info. |
Returns
Type |
---|
System.String |
Overrides
Implements
System.IDisposable