[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.UniversalCellType.GetPreferredWidth

GetPreferredWidth Method

GetPreferredWidth(PaintingContext, object, ref CfExecutedResult, double)

Gets the preferred cell width to display cell content fully.

Declaration
protected override sealed int GetPreferredWidth(PaintingContext paintingContext, object cellValue, ref CfExecutedResult cellFormat, double height)
Protected NotOverridable Overrides Function GetPreferredWidth(paintingContext As PaintingContext, cellValue As Object, ByRef cellFormat As CfExecutedResult, height 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 height

The current cell height.

Returns
Type Description
int

The preferred cell width that allow displaying cell content fully.

Overrides