Click or drag to resize

AreaRetrievalGetRowNumber Method

Returns the row number of the clicked cell.

Namespace: Altaxo.Worksheet
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static int GetRowNumber(
	double positionY,
	WorksheetLayout layout,
	int VertScrollPos,
	out double top,
	out double height,
	out bool bPropertyCol
)

Parameters

positionY  Double
The vertical position value.
layout  WorksheetLayout
The worksheet area.
VertScrollPos  Int32
Value of the vertical scroll bar.
top  Double
Returns the top value of the clicked cell.
height  Double
Returns the height value of the clicked cell.
bPropertyCol  Boolean
True if clicked on either the property column header or a property column, else false.

Return Value

Int32
The row number of the clicked cell, or -1 if clicked on the column header.
Remarks
If clicked onto a property cell, the function returns the property column number.
See Also