Table of Contents

Method GetColumnAtPixel

Namespace
DocWright.Spreadsheet.Rendering
Assembly
DocWright.Spreadsheet.Rendering.dll

GetColumnAtPixel(long)

Gets the column a horizontal position in screen pixels falls in.

public int GetColumnAtPixel(long x)

Parameters

x long

The distance from the left edge of column A, in pixels of 1/96 inch.

Returns

int

The one-based column: the first for a position left of the sheet, the last for one right of it.