DataGrid REALbasic Plugin

DataGrid.GetMeasure Method

Retrieves a measurement from a given measurement constant from the DataGrid.

GetMeasure(
   part as Integer) as Integer

Parameters

part
Possible values here are 0 - HeaderHeight, 1 ContentAreaHeight, 2 ContentAreaWidth. (If using REALbasic 5.5 or later then the constants that are defined in TypeLib can be used, like GridMeasure.HeaderHeight.

Returns

Integer

Remarks

Example how to get header height in REALbasic 5.5 and later:

Dim myHeaderHeight as Integer

myHeaderHeight = DataGrid1.GetMeasure(GridMeasure.HeaderHeight)


Example how to get header height in REALbasic older than 5.5:

Dim myHeaderHeight as Integer

myHeaderHeight = DataGrid1.GetMeasure(0)

See Also

DataGrid Control