AreaRetrievalGetColumnNumber Method |
Retrieves the column number clicked onto
Namespace: Altaxo.WorksheetAssembly: AltaxoBase (in AltaxoBase.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax 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
Int32Either -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