[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.UniversalCellType.GetPreferredHeight

GetPreferredHeight Method

GetPreferredHeight(PaintingContext, object, ref CfExecutedResult, double)

Gets the preferred cell height to display cell content fully.

Declaration
protected override sealed int GetPreferredHeight(PaintingContext paintingContext, object cellValue, ref CfExecutedResult cellFormat, double width)
Protected NotOverridable Overrides Function GetPreferredHeight(paintingContext As PaintingContext, cellValue As Object, ByRef cellFormat As CfExecutedResult, width As Double) As Integer
Parameters
Type Name Description
PaintingContext paintingContext

The painting context.

object cellValue

The cell value.

CfExecutedResult cellFormat

The format settings of cell.

double width

The current cell width.

Returns
Type Description
int

The preferred cell height that allow displaying cell content fully.

Overrides