Click or drag to resize

AreaRetrievalGetColumnNumber Method

Retrieves the column number clicked onto

Namespace: Altaxo.Worksheet
Assembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public static int GetColumnNumber(
	double positionX,
	WorksheetLayout layout,
	int HorzScrollPos,
	out double left,
	out double width
)

Parameters

positionX  Double
Clicked position.
layout  WorksheetLayout
Worksheet layout referring to.
HorzScrollPos  Int32
Value of the horizontal scroll bar.
left  Double
Returns the left position of the clicked cell.
width  Double
Returns the width of the clicked cell.

Return Value

Int32
Either -1 when clicked on the row header area, column number when clicked in the column range, or int.MinValue when clicked outside of all.
See Also